diff --git a/CHANGELOG.md b/CHANGELOG.md index 218006f51b4..903324d19d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.98.0]- 2024-03-26 + +### Changed + +- Weekly generation. + ## [0.97.0]- 2024-03-07 ### Changed diff --git a/admin/windows_updates_products_count_request_builder.go b/admin/windows_updates_products_count_request_builder.go new file mode 100644 index 00000000000..9700a8cd9d6 --- /dev/null +++ b/admin/windows_updates_products_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesProductsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesProductsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesProductsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsCountRequestBuilderInternal instantiates a new WindowsUpdatesProductsCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsCountRequestBuilder) { + m := &WindowsUpdatesProductsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsCountRequestBuilder instantiates a new WindowsUpdatesProductsCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsCountRequestBuilderInternal(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 *WindowsUpdatesProductsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsCountRequestBuilderGetRequestConfiguration)(*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 *WindowsUpdatesProductsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *WindowsUpdatesProductsCountRequestBuilder when successful +func (m *WindowsUpdatesProductsCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsCountRequestBuilder) { + return NewWindowsUpdatesProductsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_editions_count_request_builder.go b/admin/windows_updates_products_item_editions_count_request_builder.go new file mode 100644 index 00000000000..38a10fd2816 --- /dev/null +++ b/admin/windows_updates_products_item_editions_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemEditionsCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesProductsItemEditionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemEditionsCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesProductsItemEditionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesProductsItemEditionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemEditionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemEditionsCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsItemEditionsCountRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemEditionsCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemEditionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemEditionsCountRequestBuilder) { + m := &WindowsUpdatesProductsItemEditionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/editions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemEditionsCountRequestBuilder instantiates a new WindowsUpdatesProductsItemEditionsCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemEditionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemEditionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemEditionsCountRequestBuilderInternal(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 *WindowsUpdatesProductsItemEditionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsCountRequestBuilderGetRequestConfiguration)(*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 *WindowsUpdatesProductsItemEditionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *WindowsUpdatesProductsItemEditionsCountRequestBuilder when successful +func (m *WindowsUpdatesProductsItemEditionsCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemEditionsCountRequestBuilder) { + return NewWindowsUpdatesProductsItemEditionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_editions_edition_item_request_builder.go b/admin/windows_updates_products_item_editions_edition_item_request_builder.go new file mode 100644 index 00000000000..7aacdfc4b4f --- /dev/null +++ b/admin/windows_updates_products_item_editions_edition_item_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder provides operations to manage the editions property of the microsoft.graph.windowsUpdates.product entity. +type WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetQueryParameters represents an edition of a particular Windows product. +type WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) { + m := &WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/editions/{edition%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilder instantiates a new WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property editions for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderDeleteRequestConfiguration)(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 represents an edition of a particular Windows product. +// returns a Editionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateEditionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable), nil +} +// Patch update the navigation property editions in admin +// returns a Editionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, requestConfiguration *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateEditionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable), nil +} +// ToDeleteRequestInformation delete navigation property editions for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/editions/{edition%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation represents an edition of a particular Windows product. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 editions in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, requestConfiguration *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/editions/{edition%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder when successful +func (m *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) { + return NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_editions_request_builder.go b/admin/windows_updates_products_item_editions_request_builder.go new file mode 100644 index 00000000000..1d2ec2493e1 --- /dev/null +++ b/admin/windows_updates_products_item_editions_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemEditionsRequestBuilder provides operations to manage the editions property of the microsoft.graph.windowsUpdates.product entity. +type WindowsUpdatesProductsItemEditionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemEditionsRequestBuilderGetQueryParameters represents an edition of a particular Windows product. +type WindowsUpdatesProductsItemEditionsRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesProductsItemEditionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemEditionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemEditionsRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemEditionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemEditionsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByEditionId provides operations to manage the editions property of the microsoft.graph.windowsUpdates.product entity. +// returns a *WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder when successful +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) ByEditionId(editionId string)(*WindowsUpdatesProductsItemEditionsEditionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if editionId != "" { + urlTplParams["edition%2Did"] = editionId + } + return NewWindowsUpdatesProductsItemEditionsEditionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesProductsItemEditionsRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemEditionsRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemEditionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemEditionsRequestBuilder) { + m := &WindowsUpdatesProductsItemEditionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/editions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemEditionsRequestBuilder instantiates a new WindowsUpdatesProductsItemEditionsRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemEditionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemEditionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemEditionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesProductsItemEditionsCountRequestBuilder when successful +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) Count()(*WindowsUpdatesProductsItemEditionsCountRequestBuilder) { + return NewWindowsUpdatesProductsItemEditionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get represents an edition of a particular Windows product. +// returns a EditionCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.EditionCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateEditionCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.EditionCollectionResponseable), nil +} +// Post create new navigation property to editions for admin +// returns a Editionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, requestConfiguration *WindowsUpdatesProductsItemEditionsRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateEditionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable), nil +} +// ToGetRequestInformation represents an edition of a particular Windows product. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemEditionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 editions for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Editionable, requestConfiguration *WindowsUpdatesProductsItemEditionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/products/{product%2Did}/editions", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemEditionsRequestBuilder when successful +func (m *WindowsUpdatesProductsItemEditionsRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemEditionsRequestBuilder) { + return NewWindowsUpdatesProductsItemEditionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_known_issues_count_request_builder.go b/admin/windows_updates_products_item_known_issues_count_request_builder.go new file mode 100644 index 00000000000..a161d7e98c9 --- /dev/null +++ b/admin/windows_updates_products_item_known_issues_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) { + m := &WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilder instantiates a new WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilderInternal(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 *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetRequestConfiguration)(*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 *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_known_issues_item_originating_knowledge_base_article_request_builder.go b/admin/windows_updates_products_item_known_issues_item_originating_knowledge_base_article_request_builder.go new file mode 100644 index 00000000000..060c1705e9f --- /dev/null +++ b/admin/windows_updates_products_item_known_issues_item_originating_knowledge_base_article_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder provides operations to manage the originatingKnowledgeBaseArticle property of the microsoft.graph.windowsUpdates.knownIssue entity. +type WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetQueryParameters knowledge base article associated with the release when the known issue was first reported. +type WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) { + m := &WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}/originatingKnowledgeBaseArticle{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder instantiates a new WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property originatingKnowledgeBaseArticle for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration)(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 knowledge base article associated with the release when the known issue was first reported. +// returns a KnowledgeBaseArticleable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnowledgeBaseArticleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable), nil +} +// Patch update the navigation property originatingKnowledgeBaseArticle in admin +// returns a KnowledgeBaseArticleable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnowledgeBaseArticleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable), nil +} +// ToDeleteRequestInformation delete navigation property originatingKnowledgeBaseArticle for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}/originatingKnowledgeBaseArticle", 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 knowledge base article associated with the release when the known issue was first reported. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 originatingKnowledgeBaseArticle in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}/originatingKnowledgeBaseArticle", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_known_issues_item_resolving_knowledge_base_article_request_builder.go b/admin/windows_updates_products_item_known_issues_item_resolving_knowledge_base_article_request_builder.go new file mode 100644 index 00000000000..03887bf6e51 --- /dev/null +++ b/admin/windows_updates_products_item_known_issues_item_resolving_knowledge_base_article_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder provides operations to manage the resolvingKnowledgeBaseArticle property of the microsoft.graph.windowsUpdates.knownIssue entity. +type WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetQueryParameters knowledge base article associated with the release when the known issue was resolved or mitigated. +type WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) { + m := &WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}/resolvingKnowledgeBaseArticle{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder instantiates a new WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property resolvingKnowledgeBaseArticle for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration)(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 knowledge base article associated with the release when the known issue was resolved or mitigated. +// returns a KnowledgeBaseArticleable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnowledgeBaseArticleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable), nil +} +// Patch update the navigation property resolvingKnowledgeBaseArticle in admin +// returns a KnowledgeBaseArticleable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnowledgeBaseArticleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable), nil +} +// ToDeleteRequestInformation delete navigation property resolvingKnowledgeBaseArticle for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}/resolvingKnowledgeBaseArticle", 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 knowledge base article associated with the release when the known issue was resolved or mitigated. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 resolvingKnowledgeBaseArticle in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}/resolvingKnowledgeBaseArticle", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_known_issues_known_issue_item_request_builder.go b/admin/windows_updates_products_item_known_issues_known_issue_item_request_builder.go new file mode 100644 index 00000000000..42258898899 --- /dev/null +++ b/admin/windows_updates_products_item_known_issues_known_issue_item_request_builder.go @@ -0,0 +1,167 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder provides operations to manage the knownIssues property of the microsoft.graph.windowsUpdates.product entity. +type WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetQueryParameters represents a known issue related to a Windows product. +type WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) { + m := &WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder instantiates a new WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property knownIssues for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderDeleteRequestConfiguration)(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 represents a known issue related to a Windows product. +// returns a KnownIssueable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnownIssueFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable), nil +} +// OriginatingKnowledgeBaseArticle provides operations to manage the originatingKnowledgeBaseArticle property of the microsoft.graph.windowsUpdates.knownIssue entity. +// returns a *WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) OriginatingKnowledgeBaseArticle()(*WindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesItemOriginatingKnowledgeBaseArticleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property knownIssues in admin +// returns a KnownIssueable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnownIssueFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable), nil +} +// ResolvingKnowledgeBaseArticle provides operations to manage the resolvingKnowledgeBaseArticle property of the microsoft.graph.windowsUpdates.knownIssue entity. +// returns a *WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) ResolvingKnowledgeBaseArticle()(*WindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesItemResolvingKnowledgeBaseArticleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property knownIssues for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation represents a known issue related to a Windows product. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 knownIssues in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues/{knownIssue%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_known_issues_request_builder.go b/admin/windows_updates_products_item_known_issues_request_builder.go new file mode 100644 index 00000000000..80ac52f2bfa --- /dev/null +++ b/admin/windows_updates_products_item_known_issues_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemKnownIssuesRequestBuilder provides operations to manage the knownIssues property of the microsoft.graph.windowsUpdates.product entity. +type WindowsUpdatesProductsItemKnownIssuesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetQueryParameters represents a known issue related to a Windows product. +type WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemKnownIssuesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemKnownIssuesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByKnownIssueId provides operations to manage the knownIssues property of the microsoft.graph.windowsUpdates.product entity. +// returns a *WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) ByKnownIssueId(knownIssueId string)(*WindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if knownIssueId != "" { + urlTplParams["knownIssue%2Did"] = knownIssueId + } + return NewWindowsUpdatesProductsItemKnownIssuesKnownIssueItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesProductsItemKnownIssuesRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemKnownIssuesRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesRequestBuilder) { + m := &WindowsUpdatesProductsItemKnownIssuesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemKnownIssuesRequestBuilder instantiates a new WindowsUpdatesProductsItemKnownIssuesRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemKnownIssuesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemKnownIssuesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemKnownIssuesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) Count()(*WindowsUpdatesProductsItemKnownIssuesCountRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get represents a known issue related to a Windows product. +// returns a KnownIssueCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnownIssueCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueCollectionResponseable), nil +} +// Post create new navigation property to knownIssues for admin +// returns a KnownIssueable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnownIssueFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable), nil +} +// ToGetRequestInformation represents a known issue related to a Windows product. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 knownIssues for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, requestConfiguration *WindowsUpdatesProductsItemKnownIssuesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/products/{product%2Did}/knownIssues", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemKnownIssuesRequestBuilder when successful +func (m *WindowsUpdatesProductsItemKnownIssuesRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemKnownIssuesRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_response.go b/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_response.go new file mode 100644 index 00000000000..58f5f45d532 --- /dev/null +++ b/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_response.go @@ -0,0 +1,90 @@ +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" +) + +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse instantiates a new WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse and sets the default values. +func NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse()(*WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse) { + m := &WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnownIssueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []KnownIssueable when successful +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse) GetValue()([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable) + } + return nil +} +// Serialize serializes information the current object +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse) 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 *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse) SetValue(value []i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable) + SetValue(value []i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnownIssueable)() +} diff --git a/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_response.go b/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_response.go new file mode 100644 index 00000000000..1bfe182daec --- /dev/null +++ b/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_response.go @@ -0,0 +1,27 @@ +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable instead. +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse struct { + WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse +} +// NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse instantiates a new WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse and sets the default values. +func NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse()(*WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse) { + m := &WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse{ + WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse: *NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse(), + } + return m +} +// CreateWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponse(), nil +} +// Deprecated: This class is obsolete. Use WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable instead. +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable +} diff --git a/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_request_builder.go b/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_request_builder.go new file mode 100644 index 00000000000..05275fb4998 --- /dev/null +++ b/admin/windows_updates_products_item_microsoft_graph_windows_updates_get_known_issues_by_time_range_with_days_in_past_with_include_all_active_request_builder.go @@ -0,0 +1,119 @@ +package admin + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder provides operations to call the getKnownIssuesByTimeRange method. +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetQueryParameters invoke function getKnownIssuesByTimeRange +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetQueryParameters 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"` + // Usage: includeAllActive=@includeAllActive + IncludeAllActive *bool `uriparametername:"includeAllActive"` + // 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"` +} +// WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, daysInPast *int32)(*WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) { + m := &WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/microsoft.graph.windowsUpdates.getKnownIssuesByTimeRange(daysInPast={daysInPast},includeAllActive=@includeAllActive){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,includeAllActive*}", pathParameters), + } + if daysInPast != nil { + m.BaseRequestBuilder.PathParameters["daysInPast"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*daysInPast), 10) + } + return m +} +// NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder instantiates a new WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function getKnownIssuesByTimeRange +// Deprecated: This method is obsolete. Use GetAsGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse instead. +// returns a WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetRequestConfiguration)(WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveResponseable), nil +} +// GetAsGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse invoke function getKnownIssuesByTimeRange +// returns a WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) GetAsGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponse(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetRequestConfiguration)(WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveGetResponseable), nil +} +// ToGetRequestInformation invoke function getKnownIssuesByTimeRange +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder when successful +func (m *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) { + return NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_revisions_count_request_builder.go b/admin/windows_updates_products_item_revisions_count_request_builder.go new file mode 100644 index 00000000000..0239415dcb7 --- /dev/null +++ b/admin/windows_updates_products_item_revisions_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemRevisionsCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesProductsItemRevisionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsItemRevisionsCountRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemRevisionsCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsCountRequestBuilder) { + m := &WindowsUpdatesProductsItemRevisionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemRevisionsCountRequestBuilder instantiates a new WindowsUpdatesProductsItemRevisionsCountRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemRevisionsCountRequestBuilderInternal(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 *WindowsUpdatesProductsItemRevisionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetRequestConfiguration)(*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 *WindowsUpdatesProductsItemRevisionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *WindowsUpdatesProductsItemRevisionsCountRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemRevisionsCountRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_revisions_item_catalog_entry_request_builder.go b/admin/windows_updates_products_item_revisions_item_catalog_entry_request_builder.go new file mode 100644 index 00000000000..ab8fee60db2 --- /dev/null +++ b/admin/windows_updates_products_item_revisions_item_catalog_entry_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.productRevision entity. +type WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetQueryParameters get catalogEntry from admin +type WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) { + m := &WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}/catalogEntry{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder instantiates a new WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property catalogEntry for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderDeleteRequestConfiguration)(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 catalogEntry from admin +// returns a CatalogEntryable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateCatalogEntryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable), nil +} +// Patch update the navigation property catalogEntry in admin +// returns a CatalogEntryable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateCatalogEntryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable), nil +} +// ToDeleteRequestInformation delete navigation property catalogEntry for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}/catalogEntry", 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 catalogEntry from admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 catalogEntry in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}/catalogEntry", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_revisions_item_knowledge_base_article_request_builder.go b/admin/windows_updates_products_item_revisions_item_knowledge_base_article_request_builder.go new file mode 100644 index 00000000000..728e03d448c --- /dev/null +++ b/admin/windows_updates_products_item_revisions_item_knowledge_base_article_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder provides operations to manage the knowledgeBaseArticle property of the microsoft.graph.windowsUpdates.productRevision entity. +type WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetQueryParameters the knowledge base article associated with the product revision. +type WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) { + m := &WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}/knowledgeBaseArticle{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder instantiates a new WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property knowledgeBaseArticle for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration)(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 knowledge base article associated with the product revision. +// returns a KnowledgeBaseArticleable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnowledgeBaseArticleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable), nil +} +// Patch update the navigation property knowledgeBaseArticle in admin +// returns a KnowledgeBaseArticleable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateKnowledgeBaseArticleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable), nil +} +// ToDeleteRequestInformation delete navigation property knowledgeBaseArticle for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}/knowledgeBaseArticle", 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 knowledge base article associated with the product revision. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 knowledgeBaseArticle in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.KnowledgeBaseArticleable, requestConfiguration *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}/knowledgeBaseArticle", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_revisions_product_revision_item_request_builder.go b/admin/windows_updates_products_item_revisions_product_revision_item_request_builder.go new file mode 100644 index 00000000000..1b86e508063 --- /dev/null +++ b/admin/windows_updates_products_item_revisions_product_revision_item_request_builder.go @@ -0,0 +1,167 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder provides operations to manage the revisions property of the microsoft.graph.windowsUpdates.product entity. +type WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetQueryParameters represents a product revision. +type WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CatalogEntry provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.productRevision entity. +// returns a *WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) CatalogEntry()(*WindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsItemCatalogEntryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) { + m := &WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder instantiates a new WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property revisions for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderDeleteRequestConfiguration)(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 represents a product revision. +// returns a ProductRevisionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductRevisionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable), nil +} +// KnowledgeBaseArticle provides operations to manage the knowledgeBaseArticle property of the microsoft.graph.windowsUpdates.productRevision entity. +// returns a *WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) KnowledgeBaseArticle()(*WindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsItemKnowledgeBaseArticleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property revisions in admin +// returns a ProductRevisionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, requestConfiguration *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductRevisionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable), nil +} +// ToDeleteRequestInformation delete navigation property revisions for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation represents a product revision. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 revisions in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, requestConfiguration *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions/{productRevision%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_item_revisions_request_builder.go b/admin/windows_updates_products_item_revisions_request_builder.go new file mode 100644 index 00000000000..fc932ecdeaf --- /dev/null +++ b/admin/windows_updates_products_item_revisions_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsItemRevisionsRequestBuilder provides operations to manage the revisions property of the microsoft.graph.windowsUpdates.product entity. +type WindowsUpdatesProductsItemRevisionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsItemRevisionsRequestBuilderGetQueryParameters represents a product revision. +type WindowsUpdatesProductsItemRevisionsRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesProductsItemRevisionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsItemRevisionsRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsItemRevisionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsItemRevisionsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByProductRevisionId provides operations to manage the revisions property of the microsoft.graph.windowsUpdates.product entity. +// returns a *WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) ByProductRevisionId(productRevisionId string)(*WindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if productRevisionId != "" { + urlTplParams["productRevision%2Did"] = productRevisionId + } + return NewWindowsUpdatesProductsItemRevisionsProductRevisionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesProductsItemRevisionsRequestBuilderInternal instantiates a new WindowsUpdatesProductsItemRevisionsRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsRequestBuilder) { + m := &WindowsUpdatesProductsItemRevisionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsItemRevisionsRequestBuilder instantiates a new WindowsUpdatesProductsItemRevisionsRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsItemRevisionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsItemRevisionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsItemRevisionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesProductsItemRevisionsCountRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) Count()(*WindowsUpdatesProductsItemRevisionsCountRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get represents a product revision. +// returns a ProductRevisionCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductRevisionCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionCollectionResponseable), nil +} +// Post create new navigation property to revisions for admin +// returns a ProductRevisionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, requestConfiguration *WindowsUpdatesProductsItemRevisionsRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductRevisionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable), nil +} +// ToGetRequestInformation represents a product revision. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsItemRevisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 revisions for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductRevisionable, requestConfiguration *WindowsUpdatesProductsItemRevisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/products/{product%2Did}/revisions", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsItemRevisionsRequestBuilder when successful +func (m *WindowsUpdatesProductsItemRevisionsRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsItemRevisionsRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_find_by_catalog_id_with_catalog_i_d_get_response.go b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_find_by_catalog_id_with_catalog_i_d_get_response.go new file mode 100644 index 00000000000..601e05c1a8c --- /dev/null +++ b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_find_by_catalog_id_with_catalog_i_d_get_response.go @@ -0,0 +1,90 @@ +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" +) + +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse()(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse) { + m := &WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Productable when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse) GetValue()([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) + } + return nil +} +// Serialize serializes information the current object +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse) 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 *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse) SetValue(value []i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) + SetValue(value []i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable)() +} diff --git a/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_find_by_catalog_id_with_catalog_i_d_response.go b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_find_by_catalog_id_with_catalog_i_d_response.go new file mode 100644 index 00000000000..7ded5adb2f5 --- /dev/null +++ b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_find_by_catalog_id_with_catalog_i_d_response.go @@ -0,0 +1,27 @@ +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable instead. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse struct { + WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse()(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse) { + m := &WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse{ + WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse: *NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponse(), + } + return m +} +// CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponse(), nil +} +// Deprecated: This class is obsolete. Use WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable instead. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable +} diff --git a/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_request_builder.go b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_request_builder.go new file mode 100644 index 00000000000..6ad5a38678a --- /dev/null +++ b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_catalog_id_with_catalog_i_d_request_builder.go @@ -0,0 +1,116 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder provides operations to call the findByCatalogId method. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetQueryParameters invoke function findByCatalogId +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderInternal instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, catalogID *string)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) { + m := &WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/microsoft.graph.windowsUpdates.findByCatalogId(catalogID='{catalogID}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + if catalogID != nil { + m.BaseRequestBuilder.PathParameters["catalogID"] = *catalogID + } + return m +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function findByCatalogId +// Deprecated: This method is obsolete. Use GetAsFindByCatalogIdWithCatalogIDGetResponse instead. +// returns a WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetRequestConfiguration)(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDResponseable), nil +} +// GetAsFindByCatalogIdWithCatalogIDGetResponse invoke function findByCatalogId +// returns a WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) GetAsFindByCatalogIdWithCatalogIDGetResponse(ctx context.Context, requestConfiguration *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetRequestConfiguration)(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDFindByCatalogIdWithCatalogIDGetResponseable), nil +} +// ToGetRequestInformation invoke function findByCatalogId +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_find_by_kb_number_with_kb_number_get_response.go b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_find_by_kb_number_with_kb_number_get_response.go new file mode 100644 index 00000000000..c2c15916627 --- /dev/null +++ b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_find_by_kb_number_with_kb_number_get_response.go @@ -0,0 +1,90 @@ +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" +) + +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse()(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse) { + m := &WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Productable when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse) GetValue()([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) + } + return nil +} +// Serialize serializes information the current object +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse) 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 *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse) SetValue(value []i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable) + SetValue(value []i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable)() +} diff --git a/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_find_by_kb_number_with_kb_number_response.go b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_find_by_kb_number_with_kb_number_response.go new file mode 100644 index 00000000000..08a9d9cb9dc --- /dev/null +++ b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_find_by_kb_number_with_kb_number_response.go @@ -0,0 +1,27 @@ +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable instead. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse struct { + WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse()(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse) { + m := &WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse{ + WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse: *NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponse(), + } + return m +} +// CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponse(), nil +} +// Deprecated: This class is obsolete. Use WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable instead. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable +} diff --git a/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_request_builder.go b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_request_builder.go new file mode 100644 index 00000000000..da559222807 --- /dev/null +++ b/admin/windows_updates_products_microsoft_graph_windows_updates_find_by_kb_number_with_kb_number_request_builder.go @@ -0,0 +1,117 @@ +package admin + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder provides operations to call the findByKbNumber method. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetQueryParameters invoke function findByKbNumber +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderInternal instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, kbNumber *int32)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) { + m := &WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/microsoft.graph.windowsUpdates.findByKbNumber(kbNumber={kbNumber}){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + if kbNumber != nil { + m.BaseRequestBuilder.PathParameters["kbNumber"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*kbNumber), 10) + } + return m +} +// NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder instantiates a new WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function findByKbNumber +// Deprecated: This method is obsolete. Use GetAsFindByKbNumberWithKbNumberGetResponse instead. +// returns a WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetRequestConfiguration)(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberResponseable), nil +} +// GetAsFindByKbNumberWithKbNumberGetResponse invoke function findByKbNumber +// returns a WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) GetAsFindByKbNumberWithKbNumberGetResponse(ctx context.Context, requestConfiguration *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetRequestConfiguration)(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberFindByKbNumberWithKbNumberGetResponseable), nil +} +// ToGetRequestInformation invoke function findByKbNumber +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder when successful +func (m *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_product_item_request_builder.go b/admin/windows_updates_products_product_item_request_builder.go new file mode 100644 index 00000000000..4045fb9aa4b --- /dev/null +++ b/admin/windows_updates_products_product_item_request_builder.go @@ -0,0 +1,177 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsProductItemRequestBuilder provides operations to manage the products property of the microsoft.graph.adminWindowsUpdates entity. +type WindowsUpdatesProductsProductItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsProductItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsProductItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesProductsProductItemRequestBuilderGetQueryParameters a collection of Windows products. +type WindowsUpdatesProductsProductItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesProductsProductItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsProductItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsProductItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsProductItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsProductItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesProductsProductItemRequestBuilderInternal instantiates a new WindowsUpdatesProductsProductItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsProductItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsProductItemRequestBuilder) { + m := &WindowsUpdatesProductsProductItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products/{product%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsProductItemRequestBuilder instantiates a new WindowsUpdatesProductsProductItemRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsProductItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsProductItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsProductItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property products for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsProductItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesProductsProductItemRequestBuilderDeleteRequestConfiguration)(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 +} +// Editions provides operations to manage the editions property of the microsoft.graph.windowsUpdates.product entity. +// returns a *WindowsUpdatesProductsItemEditionsRequestBuilder when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) Editions()(*WindowsUpdatesProductsItemEditionsRequestBuilder) { + return NewWindowsUpdatesProductsItemEditionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get a collection of Windows products. +// returns a Productable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsProductItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsProductItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable), nil +} +// KnownIssues provides operations to manage the knownIssues property of the microsoft.graph.windowsUpdates.product entity. +// returns a *WindowsUpdatesProductsItemKnownIssuesRequestBuilder when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) KnownIssues()(*WindowsUpdatesProductsItemKnownIssuesRequestBuilder) { + return NewWindowsUpdatesProductsItemKnownIssuesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// MicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActive provides operations to call the getKnownIssuesByTimeRange method. +// returns a *WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) MicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActive(daysInPast *int32)(*WindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilder) { + return NewWindowsUpdatesProductsItemMicrosoftGraphWindowsUpdatesGetKnownIssuesByTimeRangeWithDaysInPastWithIncludeAllActiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, daysInPast) +} +// Patch update the navigation property products in admin +// returns a Productable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsProductItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, requestConfiguration *WindowsUpdatesProductsProductItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable), nil +} +// Revisions provides operations to manage the revisions property of the microsoft.graph.windowsUpdates.product entity. +// returns a *WindowsUpdatesProductsItemRevisionsRequestBuilder when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) Revisions()(*WindowsUpdatesProductsItemRevisionsRequestBuilder) { + return NewWindowsUpdatesProductsItemRevisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property products for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsProductItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/products/{product%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation a collection of Windows products. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsProductItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 products in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, requestConfiguration *WindowsUpdatesProductsProductItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/products/{product%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsProductItemRequestBuilder when successful +func (m *WindowsUpdatesProductsProductItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsProductItemRequestBuilder) { + return NewWindowsUpdatesProductsProductItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_products_request_builder.go b/admin/windows_updates_products_request_builder.go new file mode 100644 index 00000000000..73af726946a --- /dev/null +++ b/admin/windows_updates_products_request_builder.go @@ -0,0 +1,162 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesProductsRequestBuilder provides operations to manage the products property of the microsoft.graph.adminWindowsUpdates entity. +type WindowsUpdatesProductsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesProductsRequestBuilderGetQueryParameters a collection of Windows products. +type WindowsUpdatesProductsRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesProductsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesProductsRequestBuilderGetQueryParameters +} +// WindowsUpdatesProductsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesProductsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByProductId provides operations to manage the products property of the microsoft.graph.adminWindowsUpdates entity. +// returns a *WindowsUpdatesProductsProductItemRequestBuilder when successful +func (m *WindowsUpdatesProductsRequestBuilder) ByProductId(productId string)(*WindowsUpdatesProductsProductItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if productId != "" { + urlTplParams["product%2Did"] = productId + } + return NewWindowsUpdatesProductsProductItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesProductsRequestBuilderInternal instantiates a new WindowsUpdatesProductsRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsRequestBuilder) { + m := &WindowsUpdatesProductsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/products{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesProductsRequestBuilder instantiates a new WindowsUpdatesProductsRequestBuilder and sets the default values. +func NewWindowsUpdatesProductsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesProductsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesProductsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesProductsCountRequestBuilder when successful +func (m *WindowsUpdatesProductsRequestBuilder) Count()(*WindowsUpdatesProductsCountRequestBuilder) { + return NewWindowsUpdatesProductsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get a collection of Windows products. +// returns a ProductCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesProductsRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ProductCollectionResponseable), nil +} +// MicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogID provides operations to call the findByCatalogId method. +// returns a *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder when successful +func (m *WindowsUpdatesProductsRequestBuilder) MicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogID(catalogID *string)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilder) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByCatalogIdWithCatalogIDRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, catalogID) +} +// MicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumber provides operations to call the findByKbNumber method. +// returns a *WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder when successful +func (m *WindowsUpdatesProductsRequestBuilder) MicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumber(kbNumber *int32)(*WindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilder) { + return NewWindowsUpdatesProductsMicrosoftGraphWindowsUpdatesFindByKbNumberWithKbNumberRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, kbNumber) +} +// Post create new navigation property to products for admin +// returns a Productable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesProductsRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, requestConfiguration *WindowsUpdatesProductsRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, 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, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateProductFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable), nil +} +// ToGetRequestInformation a collection of Windows products. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesProductsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 products for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesProductsRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.Productable, requestConfiguration *WindowsUpdatesProductsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/products", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesProductsRequestBuilder when successful +func (m *WindowsUpdatesProductsRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesProductsRequestBuilder) { + return NewWindowsUpdatesProductsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_request_builder.go b/admin/windows_updates_request_builder.go index 554a810f9fb..c8ef92b2db8 100644 --- a/admin/windows_updates_request_builder.go +++ b/admin/windows_updates_request_builder.go @@ -125,6 +125,11 @@ func (m *WindowsUpdatesRequestBuilder) Patch(ctx context.Context, body ie233ee76 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminWindowsUpdatesable), nil } +// Products provides operations to manage the products property of the microsoft.graph.adminWindowsUpdates entity. +// returns a *WindowsUpdatesProductsRequestBuilder when successful +func (m *WindowsUpdatesRequestBuilder) Products()(*WindowsUpdatesProductsRequestBuilder) { + return NewWindowsUpdatesProductsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ResourceConnections provides operations to manage the resourceConnections property of the microsoft.graph.adminWindowsUpdates entity. // returns a *WindowsUpdatesResourceConnectionsRequestBuilder when successful func (m *WindowsUpdatesRequestBuilder) ResourceConnections()(*WindowsUpdatesResourceConnectionsRequestBuilder) { 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 d9f0d337c61..407284170ef 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0 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 f1f19248215..c4380b80f01 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 and relationships of an updatableAssetGroup object. +// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties and relationships of an updatableAsset 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 and relationships of an updatableAssetGroup object. +// Get read the properties and relationships of an updatableAsset 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-updatableassetgroup-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-1.0 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 and relationships of an updatableAssetGroup object. +// ToGetRequestInformation read the properties and relationships of an updatableAsset 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 e95369ca448..40cc394bffa 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 @@ -18,7 +18,7 @@ type WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters read the properties and relationships of a complianceChange object. +// WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters read the properties and relationships of a contentApproval object. type WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,12 +73,12 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return nil } -// Get read the properties and relationships of a complianceChange object. +// Get read the properties and relationships of a contentApproval object. // returns a ComplianceChangeable 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-compliancechange-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,12 +96,12 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// Patch update the properties of a contentApproval object. +// Patch update the properties of a complianceChange object. // returns a ComplianceChangeable 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-contentapproval-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, 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, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}", m.BaseRequestBuilder.PathParameters) @@ -130,7 +130,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a complianceChange object. +// ToGetRequestInformation read the properties and relationships of a contentApproval object. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a contentApproval object. +// ToPatchRequestInformation update the properties of a complianceChange object. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_keep_alive_request_builder.go b/app/calls_item_keep_alive_request_builder.go index 7444b806866..2980af7442d 100644 --- a/app/calls_item_keep_alive_request_builder.go +++ b/app/calls_item_keep_alive_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemKeepAliveRequestBuilder(rawUrl string, requestAdapter i2ae4187f urlParams["request-raw-url"] = rawUrl return NewCallsItemKeepAliveRequestBuilderInternal(urlParams, requestAdapter) } -// Post make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. +// Post make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that doesn't receive this request within 45 minutes is considered inactive and ends. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that ended results in a 404 Not Found error. The resources related to the call should be cleaned up on the application side. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemKeepAliveRequestBuilder) Post(ctx context.Context, requestConf } return nil } -// ToPostRequestInformation make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. +// ToPostRequestInformation make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that doesn't receive this request within 45 minutes is considered inactive and ends. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that ended results in a 404 Not Found error. The resources related to the call should be cleaned up on the application side. // returns a *RequestInformation when successful func (m *CallsItemKeepAliveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *CallsItemKeepAliveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_mute_request_builder.go b/app/calls_item_mute_request_builder.go index dac54254e1b..923968d297f 100644 --- a/app/calls_item_mute_request_builder.go +++ b/app/calls_item_mute_request_builder.go @@ -31,7 +31,7 @@ func NewCallsItemMuteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee urlParams["request-raw-url"] = rawUrl return NewCallsItemMuteRequestBuilderInternal(urlParams, requestAdapter) } -// Post allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation +// Post allows the application to mute itself. This is a server mute, meaning that the server drops all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. // returns a MuteParticipantOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *CallsItemMuteRequestBuilder) Post(ctx context.Context, body CallsItemMu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MuteParticipantOperationable), nil } -// ToPostRequestInformation allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation +// ToPostRequestInformation allows the application to mute itself. This is a server mute, meaning that the server drops all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. // returns a *RequestInformation when successful func (m *CallsItemMuteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemMutePostRequestBodyable, requestConfiguration *CallsItemMuteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_participants_invite_request_builder.go b/app/calls_item_participants_invite_request_builder.go index e54d92ceb4c..6ef2676f9aa 100644 --- a/app/calls_item_participants_invite_request_builder.go +++ b/app/calls_item_participants_invite_request_builder.go @@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. +// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. // returns a InviteParticipantsOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. +// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. // returns a *RequestInformation when successful func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_record_response_request_builder.go b/app/calls_item_record_response_request_builder.go index 04e8dfeb440..1fd31d5045b 100644 --- a/app/calls_item_record_response_request_builder.go +++ b/app/calls_item_record_response_request_builder.go @@ -31,7 +31,7 @@ func NewCallsItemRecordResponseRequestBuilder(rawUrl string, requestAdapter i2ae urlParams["request-raw-url"] = rawUrl return NewCallsItemRecordResponseRequestBuilderInternal(urlParams, requestAdapter) } -// Post record a short audio response from the caller. A bot can use this to capture a voice response from a caller after they are prompted for a response. For more information about how to handle operations, see commsOperation This action isn't intended to record the entire call. The maximum length of recording is 2 minutes. The recording isn't saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. +// Post record a short audio response from the caller. A bot can use this API to capture a voice response from a caller after they're prompted for a response. For more information about how to handle operations, see commsOperation. This action isn't intended to record the entire call. The maximum length of recording is 2 minutes.The Cloud Communications Platform doesn't save the recording permanently and discards it shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value provided in the completed notification. // returns a RecordOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *CallsItemRecordResponseRequestBuilder) Post(ctx context.Context, body C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RecordOperationable), nil } -// ToPostRequestInformation record a short audio response from the caller. A bot can use this to capture a voice response from a caller after they are prompted for a response. For more information about how to handle operations, see commsOperation This action isn't intended to record the entire call. The maximum length of recording is 2 minutes. The recording isn't saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. +// ToPostRequestInformation record a short audio response from the caller. A bot can use this API to capture a voice response from a caller after they're prompted for a response. For more information about how to handle operations, see commsOperation. This action isn't intended to record the entire call. The maximum length of recording is 2 minutes.The Cloud Communications Platform doesn't save the recording permanently and discards it shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value provided in the completed notification. // returns a *RequestInformation when successful func (m *CallsItemRecordResponseRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemRecordResponsePostRequestBodyable, requestConfiguration *CallsItemRecordResponseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_redirect_request_builder.go b/app/calls_item_redirect_request_builder.go index 5d5b147e244..7839a3269eb 100644 --- a/app/calls_item_redirect_request_builder.go +++ b/app/calls_item_redirect_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemRedirectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 urlParams["request-raw-url"] = rawUrl return NewCallsItemRedirectRequestBuilderInternal(urlParams, requestAdapter) } -// Post redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. +// Post redirect an incoming call that wasn't answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemRedirectRequestBuilder) Post(ctx context.Context, body CallsIt } return nil } -// ToPostRequestInformation redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. +// ToPostRequestInformation redirect an incoming call that wasn't answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. // returns a *RequestInformation when successful func (m *CallsItemRedirectRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemRedirectPostRequestBodyable, requestConfiguration *CallsItemRedirectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_reject_request_builder.go b/app/calls_item_reject_request_builder.go index 48d6b50448d..11249b2dee0 100644 --- a/app/calls_item_reject_request_builder.go +++ b/app/calls_item_reject_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemRejectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewCallsItemRejectRequestBuilderInternal(urlParams, requestAdapter) } -// Post enable a bot to reject 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 will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. +// Post enable a bot to reject 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 or reject the call before the call times out. The current timeout value is 15 seconds. This API doesn't end existing calls that have already been answered. Use delete call to end a call. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemRejectRequestBuilder) Post(ctx context.Context, body CallsItem } return nil } -// ToPostRequestInformation enable a bot to reject 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 will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. +// ToPostRequestInformation enable a bot to reject 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 or reject the call before the call times out. The current timeout value is 15 seconds. This API doesn't end existing calls that have already been answered. Use delete call to end a call. // returns a *RequestInformation when successful func (m *CallsItemRejectRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemRejectPostRequestBodyable, requestConfiguration *CallsItemRejectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_subscribe_to_tone_request_builder.go b/app/calls_item_subscribe_to_tone_request_builder.go index d1cd7aba635..93effdd645f 100644 --- a/app/calls_item_subscribe_to_tone_request_builder.go +++ b/app/calls_item_subscribe_to_tone_request_builder.go @@ -31,7 +31,7 @@ func NewCallsItemSubscribeToToneRequestBuilder(rawUrl string, requestAdapter i2a urlParams["request-raw-url"] = rawUrl return NewCallsItemSubscribeToToneRequestBuilderInternal(urlParams, requestAdapter) } -// Post subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a 'Dialpad'. +// Post subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a dialpad. This action is supported only for calls that are initiated with serviceHostedMediaConfig. // returns a SubscribeToToneOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *CallsItemSubscribeToToneRequestBuilder) Post(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SubscribeToToneOperationable), nil } -// ToPostRequestInformation subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a 'Dialpad'. +// ToPostRequestInformation subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a dialpad. This action is supported only for calls that are initiated with serviceHostedMediaConfig. // returns a *RequestInformation when successful func (m *CallsItemSubscribeToToneRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemSubscribeToTonePostRequestBodyable, requestConfiguration *CallsItemSubscribeToToneRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/appcatalogs/teams_apps_request_builder.go b/appcatalogs/teams_apps_request_builder.go index 82c0deeeb2f..b1bf19815d5 100644 --- a/appcatalogs/teams_apps_request_builder.go +++ b/appcatalogs/teams_apps_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamsAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamsAppsRequestBuilderGetQueryParameters list apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. +// TeamsAppsRequestBuilderGetQueryParameters list apps from the Microsoft Teams app catalog.It includes apps from the Microsoft Teams store, and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. type TeamsAppsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewTeamsAppsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2633 func (m *TeamsAppsRequestBuilder) Count()(*TeamsAppsCountRequestBuilder) { return NewTeamsAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. +// Get list apps from the Microsoft Teams app catalog.It includes apps from the Microsoft Teams store, and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. // returns a TeamsAppCollectionResponseable 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 *TeamsAppsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable), nil } -// ToGetRequestInformation list apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. +// ToGetRequestInformation list apps from the Microsoft Teams app catalog.It includes apps from the Microsoft Teams store, and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. // returns a *RequestInformation when successful func (m *TeamsAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/applications/application_item_request_builder.go b/applications/application_item_request_builder.go index 62743f92599..0c81cf749d6 100644 --- a/applications/application_item_request_builder.go +++ b/applications/application_item_request_builder.go @@ -171,12 +171,12 @@ func (m *ApplicationItemRequestBuilder) Logo()(*ItemLogoRequestBuilder) { func (m *ApplicationItemRequestBuilder) Owners()(*ItemOwnersRequestBuilder) { return NewItemOwnersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an application object. +// Patch create a new application object if it doesn't exist, or update the properties of an existing application object. // returns a Applicationable 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/application-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/application-upsert?view=graph-rest-1.0 func (m *ApplicationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -254,7 +254,7 @@ func (m *ApplicationItemRequestBuilder) TokenIssuancePolicies()(*ItemTokenIssuan func (m *ApplicationItemRequestBuilder) TokenLifetimePolicies()(*ItemTokenLifetimePoliciesRequestBuilder) { return NewItemTokenLifetimePoliciesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToPatchRequestInformation update the properties of an application object. +// ToPatchRequestInformation create a new application object if it doesn't exist, or update the properties of an existing application object. // returns a *RequestInformation when successful func (m *ApplicationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/applications/{application%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/applicationswithappid/applications_with_app_id_request_builder.go b/applicationswithappid/applications_with_app_id_request_builder.go index c2fdcdfdf0a..b1aed7b27f4 100644 --- a/applicationswithappid/applications_with_app_id_request_builder.go +++ b/applicationswithappid/applications_with_app_id_request_builder.go @@ -99,12 +99,12 @@ func (m *ApplicationsWithAppIdRequestBuilder) Get(ctx context.Context, requestCo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable), nil } -// Patch update the properties of an application object. +// Patch create a new application object if it doesn't exist, or update the properties of an existing application object. // returns a Applicationable 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/application-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/application-upsert?view=graph-rest-1.0 func (m *ApplicationsWithAppIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -147,7 +147,7 @@ func (m *ApplicationsWithAppIdRequestBuilder) ToGetRequestInformation(ctx contex requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an application object. +// ToPatchRequestInformation create a new application object if it doesn't exist, or update the properties of an existing application object. // returns a *RequestInformation when successful func (m *ApplicationsWithAppIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/applications(appId='{appId}')", m.BaseRequestBuilder.PathParameters) diff --git a/applicationswithuniquename/applications_with_unique_name_request_builder.go b/applicationswithuniquename/applications_with_unique_name_request_builder.go index c70965b7c58..4604a9b0286 100644 --- a/applicationswithuniquename/applications_with_unique_name_request_builder.go +++ b/applicationswithuniquename/applications_with_unique_name_request_builder.go @@ -99,12 +99,12 @@ func (m *ApplicationsWithUniqueNameRequestBuilder) Get(ctx context.Context, requ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable), nil } -// Patch update the properties of an application object. +// Patch create a new application object if it doesn't exist, or update the properties of an existing application object. // returns a Applicationable 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/application-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/application-upsert?view=graph-rest-1.0 func (m *ApplicationsWithUniqueNameRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -147,7 +147,7 @@ func (m *ApplicationsWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an application object. +// ToPatchRequestInformation create a new application object if it doesn't exist, or update the properties of an existing application object. // returns a *RequestInformation when successful func (m *ApplicationsWithUniqueNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, requestConfiguration *ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/applications(uniqueName='{uniqueName}')", m.BaseRequestBuilder.PathParameters) diff --git a/applicationtemplates/item_instantiate_request_builder.go b/applicationtemplates/item_instantiate_request_builder.go index 6774bf8a3d8..003fa1663ce 100644 --- a/applicationtemplates/item_instantiate_request_builder.go +++ b/applicationtemplates/item_instantiate_request_builder.go @@ -31,7 +31,7 @@ func NewItemInstantiateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewItemInstantiateRequestBuilderInternal(urlParams, requestAdapter) } -// Post add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. +// Post add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. // returns a ApplicationServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemInstantiateRequestBuilder) Post(ctx context.Context, body ItemInsta } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationServicePrincipalable), nil } -// ToPostRequestInformation add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. +// ToPostRequestInformation add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. // returns a *RequestInformation when successful func (m *ItemInstantiateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInstantiatePostRequestBodyable, requestConfiguration *ItemInstantiateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/chats/item_messages_request_builder.go b/chats/item_messages_request_builder.go index f3c38984d94..19ad023694c 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 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, "{+baseurl}/chats/{chat%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_keep_alive_request_builder.go b/communications/calls_item_keep_alive_request_builder.go index b7253d9b4b6..81a51f2e5f0 100644 --- a/communications/calls_item_keep_alive_request_builder.go +++ b/communications/calls_item_keep_alive_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemKeepAliveRequestBuilder(rawUrl string, requestAdapter i2ae4187f urlParams["request-raw-url"] = rawUrl return NewCallsItemKeepAliveRequestBuilderInternal(urlParams, requestAdapter) } -// Post make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. +// Post make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that doesn't receive this request within 45 minutes is considered inactive and ends. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that ended results in a 404 Not Found error. The resources related to the call should be cleaned up on the application side. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemKeepAliveRequestBuilder) Post(ctx context.Context, requestConf } return nil } -// ToPostRequestInformation make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. +// ToPostRequestInformation make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that doesn't receive this request within 45 minutes is considered inactive and ends. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that ended results in a 404 Not Found error. The resources related to the call should be cleaned up on the application side. // returns a *RequestInformation when successful func (m *CallsItemKeepAliveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *CallsItemKeepAliveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_mute_request_builder.go b/communications/calls_item_mute_request_builder.go index 410613530d3..82dd6ebc1b4 100644 --- a/communications/calls_item_mute_request_builder.go +++ b/communications/calls_item_mute_request_builder.go @@ -31,7 +31,7 @@ func NewCallsItemMuteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee urlParams["request-raw-url"] = rawUrl return NewCallsItemMuteRequestBuilderInternal(urlParams, requestAdapter) } -// Post allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation +// Post allows the application to mute itself. This is a server mute, meaning that the server drops all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. // returns a MuteParticipantOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *CallsItemMuteRequestBuilder) Post(ctx context.Context, body CallsItemMu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MuteParticipantOperationable), nil } -// ToPostRequestInformation allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation +// ToPostRequestInformation allows the application to mute itself. This is a server mute, meaning that the server drops all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. // returns a *RequestInformation when successful func (m *CallsItemMuteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemMutePostRequestBodyable, requestConfiguration *CallsItemMuteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index e5931ce1578..b3fbfcfb4cd 100644 --- a/communications/calls_item_participants_invite_request_builder.go +++ b/communications/calls_item_participants_invite_request_builder.go @@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. +// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. // returns a InviteParticipantsOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. +// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. // returns a *RequestInformation when successful func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_record_response_request_builder.go b/communications/calls_item_record_response_request_builder.go index b2f7ced1374..bc5163aad0a 100644 --- a/communications/calls_item_record_response_request_builder.go +++ b/communications/calls_item_record_response_request_builder.go @@ -31,7 +31,7 @@ func NewCallsItemRecordResponseRequestBuilder(rawUrl string, requestAdapter i2ae urlParams["request-raw-url"] = rawUrl return NewCallsItemRecordResponseRequestBuilderInternal(urlParams, requestAdapter) } -// Post record a short audio response from the caller. A bot can use this to capture a voice response from a caller after they are prompted for a response. For more information about how to handle operations, see commsOperation This action isn't intended to record the entire call. The maximum length of recording is 2 minutes. The recording isn't saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. +// Post record a short audio response from the caller. A bot can use this API to capture a voice response from a caller after they're prompted for a response. For more information about how to handle operations, see commsOperation. This action isn't intended to record the entire call. The maximum length of recording is 2 minutes.The Cloud Communications Platform doesn't save the recording permanently and discards it shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value provided in the completed notification. // returns a RecordOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *CallsItemRecordResponseRequestBuilder) Post(ctx context.Context, body C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RecordOperationable), nil } -// ToPostRequestInformation record a short audio response from the caller. A bot can use this to capture a voice response from a caller after they are prompted for a response. For more information about how to handle operations, see commsOperation This action isn't intended to record the entire call. The maximum length of recording is 2 minutes. The recording isn't saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. +// ToPostRequestInformation record a short audio response from the caller. A bot can use this API to capture a voice response from a caller after they're prompted for a response. For more information about how to handle operations, see commsOperation. This action isn't intended to record the entire call. The maximum length of recording is 2 minutes.The Cloud Communications Platform doesn't save the recording permanently and discards it shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value provided in the completed notification. // returns a *RequestInformation when successful func (m *CallsItemRecordResponseRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemRecordResponsePostRequestBodyable, requestConfiguration *CallsItemRecordResponseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_redirect_request_builder.go b/communications/calls_item_redirect_request_builder.go index 7ba8f214636..43cd7ce60ef 100644 --- a/communications/calls_item_redirect_request_builder.go +++ b/communications/calls_item_redirect_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemRedirectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 urlParams["request-raw-url"] = rawUrl return NewCallsItemRedirectRequestBuilderInternal(urlParams, requestAdapter) } -// Post redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. +// Post redirect an incoming call that wasn't answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemRedirectRequestBuilder) Post(ctx context.Context, body CallsIt } return nil } -// ToPostRequestInformation redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. +// ToPostRequestInformation redirect an incoming call that wasn't answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. // returns a *RequestInformation when successful func (m *CallsItemRedirectRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemRedirectPostRequestBodyable, requestConfiguration *CallsItemRedirectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_reject_request_builder.go b/communications/calls_item_reject_request_builder.go index 76780afcd8b..732646db40e 100644 --- a/communications/calls_item_reject_request_builder.go +++ b/communications/calls_item_reject_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemRejectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewCallsItemRejectRequestBuilderInternal(urlParams, requestAdapter) } -// Post enable a bot to reject 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 will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. +// Post enable a bot to reject 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 or reject the call before the call times out. The current timeout value is 15 seconds. This API doesn't end existing calls that have already been answered. Use delete call to end a call. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemRejectRequestBuilder) Post(ctx context.Context, body CallsItem } return nil } -// ToPostRequestInformation enable a bot to reject 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 will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. +// ToPostRequestInformation enable a bot to reject 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 or reject the call before the call times out. The current timeout value is 15 seconds. This API doesn't end existing calls that have already been answered. Use delete call to end a call. // returns a *RequestInformation when successful func (m *CallsItemRejectRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemRejectPostRequestBodyable, requestConfiguration *CallsItemRejectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_subscribe_to_tone_request_builder.go b/communications/calls_item_subscribe_to_tone_request_builder.go index 22538690b11..2f33beb6818 100644 --- a/communications/calls_item_subscribe_to_tone_request_builder.go +++ b/communications/calls_item_subscribe_to_tone_request_builder.go @@ -31,7 +31,7 @@ func NewCallsItemSubscribeToToneRequestBuilder(rawUrl string, requestAdapter i2a urlParams["request-raw-url"] = rawUrl return NewCallsItemSubscribeToToneRequestBuilderInternal(urlParams, requestAdapter) } -// Post subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a 'Dialpad'. +// Post subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a dialpad. This action is supported only for calls that are initiated with serviceHostedMediaConfig. // returns a SubscribeToToneOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *CallsItemSubscribeToToneRequestBuilder) Post(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SubscribeToToneOperationable), nil } -// ToPostRequestInformation subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a 'Dialpad'. +// ToPostRequestInformation subscribe to DTMF (dual-tone multi-frequency signaling) to allow you to be notified when the user presses keys on a dialpad. This action is supported only for calls that are initiated with serviceHostedMediaConfig. // returns a *RequestInformation when successful func (m *CallsItemSubscribeToToneRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemSubscribeToTonePostRequestBodyable, requestConfiguration *CallsItemSubscribeToToneRequestBuilderPostRequestConfiguration)(*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 2222433903f..3d84bd2ade4 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 will 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. // 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 will 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. // 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, "{+baseurl}/communications/calls", m.BaseRequestBuilder.PathParameters) diff --git a/connections/item_schema_request_builder.go b/connections/item_schema_request_builder.go index 5c6f6540ae1..b9e04201760 100644 --- a/connections/item_schema_request_builder.go +++ b/connections/item_schema_request_builder.go @@ -70,12 +70,12 @@ func (m *ItemSchemaRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable), nil } -// Patch update the properties of a schema for an externalConnection. +// Patch create the 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0 func (m *ItemSchemaRequestBuilder) Patch(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ItemSchemaRequestBuilderPatchRequestConfiguration)(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -107,7 +107,7 @@ func (m *ItemSchemaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a schema for an externalConnection. +// ToPatchRequestInformation create the schema for a Microsoft Search connection. // returns a *RequestInformation when successful func (m *ItemSchemaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ItemSchemaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/connections/{externalConnection%2Did}/schema", m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/device_app_management_request_builder.go b/deviceappmanagement/device_app_management_request_builder.go index 9bf02651bd0..cd76d4a9cce 100644 --- a/deviceappmanagement/device_app_management_request_builder.go +++ b/deviceappmanagement/device_app_management_request_builder.go @@ -127,6 +127,11 @@ func (m *DeviceAppManagementRequestBuilder) ManagedEBooks()(*ManagedEBooksReques func (m *DeviceAppManagementRequestBuilder) MdmWindowsInformationProtectionPolicies()(*MdmWindowsInformationProtectionPoliciesRequestBuilder) { return NewMdmWindowsInformationProtectionPoliciesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MobileAppCatalogPackages provides operations to manage the mobileAppCatalogPackages property of the microsoft.graph.deviceAppManagement entity. +// returns a *MobileAppCatalogPackagesRequestBuilder when successful +func (m *DeviceAppManagementRequestBuilder) MobileAppCatalogPackages()(*MobileAppCatalogPackagesRequestBuilder) { + return NewMobileAppCatalogPackagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MobileAppCategories provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity. // returns a *MobileAppCategoriesRequestBuilder when successful func (m *DeviceAppManagementRequestBuilder) MobileAppCategories()(*MobileAppCategoriesRequestBuilder) { diff --git a/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_ios_lob_app_provisioning_configuration_assignment_item_request_builder.go b/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_ios_lob_app_provisioning_configuration_assignment_item_request_builder.go index 8365cc3cc6c..2745fb7be41 100644 --- a/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_ios_lob_app_provisioning_configuration_assignment_item_request_builder.go +++ b/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_ios_lob_app_provisioning_configuration_assignment_item_request_builder.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/ios_lob_app_provisioning_configurations_item_assignments_request_builder.go b/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_request_builder.go index 043a981455e..8940b5046b7 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_app_catalog_packages_count_request_builder.go b/deviceappmanagement/mobile_app_catalog_packages_count_request_builder.go new file mode 100644 index 00000000000..7603dc50348 --- /dev/null +++ b/deviceappmanagement/mobile_app_catalog_packages_count_request_builder.go @@ -0,0 +1,80 @@ +package deviceappmanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MobileAppCatalogPackagesCountRequestBuilder provides operations to count the resources in the collection. +type MobileAppCatalogPackagesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MobileAppCatalogPackagesCountRequestBuilderGetQueryParameters get the number of the resource +type MobileAppCatalogPackagesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// MobileAppCatalogPackagesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppCatalogPackagesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MobileAppCatalogPackagesCountRequestBuilderGetQueryParameters +} +// NewMobileAppCatalogPackagesCountRequestBuilderInternal instantiates a new MobileAppCatalogPackagesCountRequestBuilder and sets the default values. +func NewMobileAppCatalogPackagesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppCatalogPackagesCountRequestBuilder) { + m := &MobileAppCatalogPackagesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppCatalogPackages/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewMobileAppCatalogPackagesCountRequestBuilder instantiates a new MobileAppCatalogPackagesCountRequestBuilder and sets the default values. +func NewMobileAppCatalogPackagesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppCatalogPackagesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMobileAppCatalogPackagesCountRequestBuilderInternal(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 *MobileAppCatalogPackagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesCountRequestBuilderGetRequestConfiguration)(*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 *MobileAppCatalogPackagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *MobileAppCatalogPackagesCountRequestBuilder when successful +func (m *MobileAppCatalogPackagesCountRequestBuilder) WithUrl(rawUrl string)(*MobileAppCatalogPackagesCountRequestBuilder) { + return NewMobileAppCatalogPackagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/deviceappmanagement/mobile_app_catalog_packages_mobile_app_catalog_package_item_request_builder.go b/deviceappmanagement/mobile_app_catalog_packages_mobile_app_catalog_package_item_request_builder.go new file mode 100644 index 00000000000..9b5176a76ab --- /dev/null +++ b/deviceappmanagement/mobile_app_catalog_packages_mobile_app_catalog_package_item_request_builder.go @@ -0,0 +1,157 @@ +package deviceappmanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder provides operations to manage the mobileAppCatalogPackages property of the microsoft.graph.deviceAppManagement entity. +type MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetQueryParameters mobileAppCatalogPackage entities. +type MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetQueryParameters +} +// MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderInternal instantiates a new MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder and sets the default values. +func NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) { + m := &MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppCatalogPackages/{mobileAppCatalogPackage%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder instantiates a new MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder and sets the default values. +func NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property mobileAppCatalogPackages for deviceAppManagement +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderDeleteRequestConfiguration)(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 mobileAppCatalogPackage entities. +// returns a MobileAppCatalogPackageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMobileAppCatalogPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable), nil +} +// Patch update the navigation property mobileAppCatalogPackages in deviceAppManagement +// returns a MobileAppCatalogPackageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, requestConfiguration *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, 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.CreateMobileAppCatalogPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable), nil +} +// ToDeleteRequestInformation delete navigation property mobileAppCatalogPackages for deviceAppManagement +// returns a *RequestInformation when successful +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/deviceAppManagement/mobileAppCatalogPackages/{mobileAppCatalogPackage%2Did}", 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 mobileAppCatalogPackage entities. +// returns a *RequestInformation when successful +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 mobileAppCatalogPackages in deviceAppManagement +// returns a *RequestInformation when successful +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, requestConfiguration *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/deviceAppManagement/mobileAppCatalogPackages/{mobileAppCatalogPackage%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder when successful +func (m *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) WithUrl(rawUrl string)(*MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) { + return NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/deviceappmanagement/mobile_app_catalog_packages_request_builder.go b/deviceappmanagement/mobile_app_catalog_packages_request_builder.go new file mode 100644 index 00000000000..8264777ae23 --- /dev/null +++ b/deviceappmanagement/mobile_app_catalog_packages_request_builder.go @@ -0,0 +1,152 @@ +package deviceappmanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MobileAppCatalogPackagesRequestBuilder provides operations to manage the mobileAppCatalogPackages property of the microsoft.graph.deviceAppManagement entity. +type MobileAppCatalogPackagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MobileAppCatalogPackagesRequestBuilderGetQueryParameters mobileAppCatalogPackage entities. +type MobileAppCatalogPackagesRequestBuilderGetQueryParameters 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"` +} +// MobileAppCatalogPackagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppCatalogPackagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MobileAppCatalogPackagesRequestBuilderGetQueryParameters +} +// MobileAppCatalogPackagesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppCatalogPackagesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByMobileAppCatalogPackageId provides operations to manage the mobileAppCatalogPackages property of the microsoft.graph.deviceAppManagement entity. +// returns a *MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder when successful +func (m *MobileAppCatalogPackagesRequestBuilder) ByMobileAppCatalogPackageId(mobileAppCatalogPackageId string)(*MobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if mobileAppCatalogPackageId != "" { + urlTplParams["mobileAppCatalogPackage%2Did"] = mobileAppCatalogPackageId + } + return NewMobileAppCatalogPackagesMobileAppCatalogPackageItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewMobileAppCatalogPackagesRequestBuilderInternal instantiates a new MobileAppCatalogPackagesRequestBuilder and sets the default values. +func NewMobileAppCatalogPackagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppCatalogPackagesRequestBuilder) { + m := &MobileAppCatalogPackagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppCatalogPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewMobileAppCatalogPackagesRequestBuilder instantiates a new MobileAppCatalogPackagesRequestBuilder and sets the default values. +func NewMobileAppCatalogPackagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppCatalogPackagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMobileAppCatalogPackagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *MobileAppCatalogPackagesCountRequestBuilder when successful +func (m *MobileAppCatalogPackagesRequestBuilder) Count()(*MobileAppCatalogPackagesCountRequestBuilder) { + return NewMobileAppCatalogPackagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get mobileAppCatalogPackage entities. +// returns a MobileAppCatalogPackageCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MobileAppCatalogPackagesRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMobileAppCatalogPackageCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageCollectionResponseable), nil +} +// Post create new navigation property to mobileAppCatalogPackages for deviceAppManagement +// returns a MobileAppCatalogPackageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MobileAppCatalogPackagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, requestConfiguration *MobileAppCatalogPackagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, 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.CreateMobileAppCatalogPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable), nil +} +// ToGetRequestInformation mobileAppCatalogPackage entities. +// returns a *RequestInformation when successful +func (m *MobileAppCatalogPackagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppCatalogPackagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 mobileAppCatalogPackages for deviceAppManagement +// returns a *RequestInformation when successful +func (m *MobileAppCatalogPackagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppCatalogPackageable, requestConfiguration *MobileAppCatalogPackagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/deviceAppManagement/mobileAppCatalogPackages", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MobileAppCatalogPackagesRequestBuilder when successful +func (m *MobileAppCatalogPackagesRequestBuilder) WithUrl(rawUrl string)(*MobileAppCatalogPackagesRequestBuilder) { + return NewMobileAppCatalogPackagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/deviceappmanagement/mobile_apps_convert_from_mobile_app_catalog_package_with_mobile_app_catalog_package_id_request_builder.go b/deviceappmanagement/mobile_apps_convert_from_mobile_app_catalog_package_with_mobile_app_catalog_package_id_request_builder.go new file mode 100644 index 00000000000..ef466a3982a --- /dev/null +++ b/deviceappmanagement/mobile_apps_convert_from_mobile_app_catalog_package_with_mobile_app_catalog_package_id_request_builder.go @@ -0,0 +1,72 @@ +package deviceappmanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder provides operations to call the convertFromMobileAppCatalogPackage method. +type MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderInternal instantiates a new MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder and sets the default values. +func NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, mobileAppCatalogPackageId *string)(*MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) { + m := &MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/convertFromMobileAppCatalogPackage(mobileAppCatalogPackageId='{mobileAppCatalogPackageId}')", pathParameters), + } + if mobileAppCatalogPackageId != nil { + m.BaseRequestBuilder.PathParameters["mobileAppCatalogPackageId"] = *mobileAppCatalogPackageId + } + return m +} +// NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder instantiates a new MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder and sets the default values. +func NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function convertFromMobileAppCatalogPackage +// returns a MobileAppable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMobileAppFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppable), nil +} +// ToGetRequestInformation invoke function convertFromMobileAppCatalogPackage +// returns a *RequestInformation when successful +func (m *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder when successful +func (m *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) WithUrl(rawUrl string)(*MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) { + return NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_mobile_app_content_item_request_builder.go index db76dc96c4f..aa48a840cb6 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestB // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequ func (m *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphAndroidLobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphAndroidLobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_request_builder.go index 55ee4957814..debce066432 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilder(rawUrl str func (m *MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphAndroidLobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphAndroidLobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_content_versions_mobile_app_content_item_request_builder.go index 53eb5b6974e..0594bdad611 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestB func (m *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphIosLobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphIosLobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_content_versions_request_builder.go index 408473d957a..5b589abc737 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphIosLobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphIosLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphIosLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphIosLobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphIosLobAppContentVersionsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphIosLobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphIosLobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphIosLobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosLobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphIosLobAppContentVersionsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosLobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_content_versions_mobile_app_content_item_request_builder.go index b170bf16a76..40260ca25da 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemReques func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphMacOSDmgAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphMacOSDmgAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_content_versions_request_builder.go index 4a38ec9c510..49cbc06ee70 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphMacOSDmgAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphMacOSDmgAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_content_versions_mobile_app_content_item_request_builder.go index f89666beb60..e8291097b37 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemReques func (m *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphMacOSLobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphMacOSLobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_content_versions_request_builder.go index c9cd32ae551..4e91f151a6b 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphMacOSLobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphMacOSLobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_content_versions_mobile_app_content_item_request_builder.go index e262465c6ac..6869c20f078 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemReques func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphMacOSPkgAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphMacOSPkgAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_content_versions_request_builder.go index e09a9eb69f4..f924eb375db 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphMacOSPkgAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphMacOSPkgAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_content_versions_mobile_app_content_item_request_builder.go index 0932e6fd064..d5edff433fb 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentI func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphManagedAndroidLobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphManagedAndroidLobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_content_versions_request_builder.go index e8ae77a09d4..71471151e21 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilder(raw func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphManagedAndroidLobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphManagedAndroidLobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilder) P } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_content_versions_mobile_app_content_item_request_builder.go index 3d01bb72f79..1b5bc615b2d 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemR func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphManagedIOSLobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphManagedIOSLobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_content_versions_request_builder.go index 87fbb893a3d..176e39f32c2 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilder(rawUrl func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphManagedIOSLobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphManagedIOSLobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilder) Post( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_content_versions_mobile_app_content_item_request_builder.go index 78c0eb81c37..eaeca5bd4a0 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentIt func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphManagedMobileLobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphManagedMobileLobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentIt requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_content_versions_request_builder.go index 8d245897143..f3a37f21597 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilder(rawU func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphManagedMobileLobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphManagedMobileLobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilder) Po } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_content_versions_mobile_app_content_item_request_builder.go index c65345a507c..980e38f8bae 100644 --- a/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemReques func (m *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphWin32LobAppContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphWin32LobAppContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_content_versions_request_builder.go index 5d4712f625f..236e7149839 100644 --- a/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWin32LobAppContentVersionsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphWin32LobAppContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphWin32LobAppContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_content_versions_mobile_app_content_item_request_builder.go index cd244f0b979..5578d1f889c 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_app_x_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemReques func (m *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphWindowsAppXContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphWindowsAppXContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_content_versions_request_builder.go index 9dc24bfea78..2bb0ad70349 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_app_x_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsAppXContentVersionsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphWindowsAppXContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsAppXContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXContentVersionsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_content_versions_mobile_app_content_item_request_builder.go index b6db5ca50fc..6b3ccf2adc4 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemR func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphWindowsMobileMSIContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphWindowsMobileMSIContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_content_versions_request_builder.go index 6a03eb735c9..38881c91839 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilder(rawUrl func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphWindowsMobileMSIContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsMobileMSIContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilder) Post( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIContentVersionsRequestBuilderGetRequestConfiguration)(*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_committed_contained_apps_mobile_contained_app_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_committed_contained_apps_mobile_contained_app_item_request_builder.go index ed71edae17c..9f5a6965a3b 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_committed_contained_apps_mobile_contained_app_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_committed_contained_apps_mobile_contained_app_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContaine // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilderGetQueryParameters the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilderGetQueryParameters the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. type MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileCont } return nil } -// Get the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// Get the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. // returns a MobileContainedAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileContainedAppable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileCont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// ToGetRequestInformation the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsMobileContainedAppItemRequestBuilderGetRequestConfiguration)(*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_committed_contained_apps_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_committed_contained_apps_request_builder.go index 54d3688a79f..2e0b8712e78 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_committed_contained_apps_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_committed_contained_apps_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilderGetQueryParameters the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilderGetQueryParameters the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. type MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuil func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilder) Count()(*MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// Get the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. // returns a MobileContainedAppCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileContainedAppCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileContainedAppable), nil } -// ToGetRequestInformation the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// ToGetRequestInformation the collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXCommittedContainedAppsRequestBuilderGetRequestConfiguration)(*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_content_versions_mobile_app_content_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_content_versions_mobile_app_content_item_request_builder.go index 95c33b2a33f..571c2179c1f 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_content_versions_mobile_app_content_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_content_versions_mobile_app_content_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentI func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilder) Files()(*MobileAppsItemGraphWindowsUniversalAppXContentVersionsItemFilesRequestBuilder) { return NewMobileAppsItemGraphWindowsUniversalAppXContentVersionsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable, error) { @@ -131,7 +131,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXContentVersionsMobileAppContentItemRequestBuilderGetRequestConfiguration)(*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_content_versions_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_content_versions_request_builder.go index dc5a8d9d850..f9127139962 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_content_versions_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_content_versions_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. +// MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilderGetQueryParameters the list of content versions for this app. This property is read-only. type MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilder(raw func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilder) Count()(*MobileAppsItemGraphWindowsUniversalAppXContentVersionsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsUniversalAppXContentVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of content versions for this app. +// Get the list of content versions for this app. This property is read-only. // returns a MobileAppContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilder) P } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppContentable), nil } -// ToGetRequestInformation the list of content versions for this app. +// ToGetRequestInformation the list of content versions for this app. This property is read-only. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXContentVersionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_request_builder.go b/deviceappmanagement/mobile_apps_request_builder.go index d4c5ab6a281..d6f8021be6f 100644 --- a/deviceappmanagement/mobile_apps_request_builder.go +++ b/deviceappmanagement/mobile_apps_request_builder.go @@ -71,6 +71,11 @@ func NewMobileAppsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 urlParams["request-raw-url"] = rawUrl return NewMobileAppsRequestBuilderInternal(urlParams, requestAdapter) } +// ConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageId provides operations to call the convertFromMobileAppCatalogPackage method. +// returns a *MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder when successful +func (m *MobileAppsRequestBuilder) ConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageId(mobileAppCatalogPackageId *string)(*MobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilder) { + return NewMobileAppsConvertFromMobileAppCatalogPackageWithMobileAppCatalogPackageIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, mobileAppCatalogPackageId) +} // Count provides operations to count the resources in the collection. // returns a *MobileAppsCountRequestBuilder when successful func (m *MobileAppsRequestBuilder) Count()(*MobileAppsCountRequestBuilder) { diff --git a/devicemanagement/configuration_policies_device_management_configuration_policy_item_request_builder.go b/devicemanagement/configuration_policies_device_management_configuration_policy_item_request_builder.go index 6d94a48d405..5856e9dae41 100644 --- a/devicemanagement/configuration_policies_device_management_configuration_policy_item_request_builder.go +++ b/devicemanagement/configuration_policies_device_management_configuration_policy_item_request_builder.go @@ -46,6 +46,11 @@ type ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilderP func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) Assign()(*ConfigurationPoliciesItemAssignRequestBuilder) { return NewConfigurationPoliciesItemAssignRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AssignJustInTimeConfiguration provides operations to call the assignJustInTimeConfiguration method. +// returns a *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder when successful +func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) AssignJustInTimeConfiguration()(*ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + return NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Assignments provides operations to manage the assignments property of the microsoft.graph.deviceManagementConfigurationPolicy entity. // returns a *ConfigurationPoliciesItemAssignmentsRequestBuilder when successful func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) Assignments()(*ConfigurationPoliciesItemAssignmentsRequestBuilder) { @@ -130,6 +135,11 @@ func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuil func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) Reorder()(*ConfigurationPoliciesItemReorderRequestBuilder) { return NewConfigurationPoliciesItemReorderRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RetrieveJustInTimeConfiguration provides operations to call the retrieveJustInTimeConfiguration method. +// returns a *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder when successful +func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) RetrieveJustInTimeConfiguration()(*ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + return NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // RetrieveLatestUpgradeDefaultBaselinePolicy provides operations to call the retrieveLatestUpgradeDefaultBaselinePolicy method. // returns a *ConfigurationPoliciesItemRetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder when successful func (m *ConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) RetrieveLatestUpgradeDefaultBaselinePolicy()(*ConfigurationPoliciesItemRetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder) { diff --git a/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_post_request_body.go b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_post_request_body.go new file mode 100644 index 00000000000..55577d13146 --- /dev/null +++ b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_post_request_body.go @@ -0,0 +1,114 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody instantiates a new ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody and sets the default values. +func NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody()(*ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) { + m := &ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justInTimeAssignments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDeviceManagementConfigurationJustInTimeAssignmentPolicyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetJustInTimeAssignments(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable)) + } + return nil + } + return res +} +// GetJustInTimeAssignments gets the justInTimeAssignments property value. The justInTimeAssignments property +// returns a DeviceManagementConfigurationJustInTimeAssignmentPolicyable when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetJustInTimeAssignments()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable) { + val, err := m.GetBackingStore().Get("justInTimeAssignments") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("justInTimeAssignments", m.GetJustInTimeAssignments()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustInTimeAssignments sets the justInTimeAssignments property value. The justInTimeAssignments property +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) SetJustInTimeAssignments(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable)() { + err := m.GetBackingStore().Set("justInTimeAssignments", value) + if err != nil { + panic(err) + } +} +type ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustInTimeAssignments()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustInTimeAssignments(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable)() +} diff --git a/groups/item_sites_item_sites_add_post_request_body.go b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_post_response.go similarity index 50% rename from groups/item_sites_item_sites_add_post_request_body.go rename to devicemanagement/configuration_policies_item_assign_just_in_time_configuration_post_response.go index 5f5cd7d1373..17d5cffc6b5 100644 --- a/groups/item_sites_item_sites_add_post_request_body.go +++ b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_post_response.go @@ -1,31 +1,30 @@ -package groups +package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -type ItemSitesItemSitesAddPostRequestBody struct { +type ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewItemSitesItemSitesAddPostRequestBody instantiates a new ItemSitesItemSitesAddPostRequestBody and sets the default values. -func NewItemSitesItemSitesAddPostRequestBody()(*ItemSitesItemSitesAddPostRequestBody) { - m := &ItemSitesItemSitesAddPostRequestBody{ +// NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse instantiates a new ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse and sets the default values. +func NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse()(*ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) { + m := &ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateItemSitesItemSitesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesItemSitesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesItemSitesAddPostRequestBody(), nil +func CreateConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. // returns a map[string]any when successful -func (m *ItemSitesItemSitesAddPostRequestBody) GetAdditionalData()(map[string]any) { +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -38,53 +37,41 @@ func (m *ItemSitesItemSitesAddPostRequestBody) GetAdditionalData()(map[string]an } // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful -func (m *ItemSitesItemSitesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + val, err := n.GetBoolValue() if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - } - } - m.SetValue(res) + m.SetValue(val) } return nil } return res } // GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesItemSitesAddPostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { +// returns a *bool when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetValue()(*bool) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.(*bool) } return nil } // Serialize serializes information the current object -func (m *ItemSitesItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - 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) +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("value", m.GetValue()) if err != nil { return err } @@ -98,29 +85,29 @@ func (m *ItemSitesItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d return nil } // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemSitesItemSitesAddPostRequestBody) SetAdditionalData(value map[string]any)() { +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) if err != nil { panic(err) } } // SetBackingStore sets the BackingStore property value. Stores model information. -func (m *ItemSitesItemSitesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } // SetValue sets the value property value. The value property -func (m *ItemSitesItemSitesAddPostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) SetValue(value *bool)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ItemSitesItemSitesAddPostRequestBodyable interface { +type ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + GetValue()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + SetValue(value *bool)() } diff --git a/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_request_builder.go b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_request_builder.go new file mode 100644 index 00000000000..393d0e51158 --- /dev/null +++ b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_request_builder.go @@ -0,0 +1,93 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder provides operations to call the assignJustInTimeConfiguration method. +type ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal instantiates a new ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder and sets the default values. +func NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + m := &ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/configurationPolicies/{deviceManagementConfigurationPolicy%2Did}/assignJustInTimeConfiguration", pathParameters), + } + return m +} +// NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder instantiates a new ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder and sets the default values. +func NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action assignJustInTimeConfiguration +// Deprecated: This method is obsolete. Use PostAsAssignJustInTimeConfigurationPostResponse instead. +// returns a ConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) Post(ctx context.Context, body ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable, requestConfiguration *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(ConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable, 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, CreateConfigurationPoliciesItemAssignJustInTimeConfigurationResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable), nil +} +// PostAsAssignJustInTimeConfigurationPostResponse invoke action assignJustInTimeConfiguration +// returns a ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) PostAsAssignJustInTimeConfigurationPostResponse(ctx context.Context, body ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable, requestConfiguration *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable, 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, CreateConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable), nil +} +// ToPostRequestInformation invoke action assignJustInTimeConfiguration +// returns a *RequestInformation when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable, requestConfiguration *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder when successful +func (m *ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) WithUrl(rawUrl string)(*ConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + return NewConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_response.go b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_response.go new file mode 100644 index 00000000000..58c913cf7fe --- /dev/null +++ b/devicemanagement/configuration_policies_item_assign_just_in_time_configuration_response.go @@ -0,0 +1,27 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable instead. +type ConfigurationPoliciesItemAssignJustInTimeConfigurationResponse struct { + ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse +} +// NewConfigurationPoliciesItemAssignJustInTimeConfigurationResponse instantiates a new ConfigurationPoliciesItemAssignJustInTimeConfigurationResponse and sets the default values. +func NewConfigurationPoliciesItemAssignJustInTimeConfigurationResponse()(*ConfigurationPoliciesItemAssignJustInTimeConfigurationResponse) { + m := &ConfigurationPoliciesItemAssignJustInTimeConfigurationResponse{ + ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse: *NewConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse(), + } + return m +} +// CreateConfigurationPoliciesItemAssignJustInTimeConfigurationResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConfigurationPoliciesItemAssignJustInTimeConfigurationResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConfigurationPoliciesItemAssignJustInTimeConfigurationResponse(), nil +} +// Deprecated: This class is obsolete. Use ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable instead. +type ConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable interface { + ConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/devicemanagement/configuration_policies_item_retrieve_just_in_time_configuration_request_builder.go b/devicemanagement/configuration_policies_item_retrieve_just_in_time_configuration_request_builder.go new file mode 100644 index 00000000000..62f325c4d8f --- /dev/null +++ b/devicemanagement/configuration_policies_item_retrieve_just_in_time_configuration_request_builder.go @@ -0,0 +1,69 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder provides operations to call the retrieveJustInTimeConfiguration method. +type ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal instantiates a new ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder and sets the default values. +func NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + m := &ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/configurationPolicies/{deviceManagementConfigurationPolicy%2Did}/retrieveJustInTimeConfiguration", pathParameters), + } + return m +} +// NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder instantiates a new ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder and sets the default values. +func NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action retrieveJustInTimeConfiguration +// returns a DeviceManagementConfigurationJustInTimeAssignmentPolicyable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) Post(ctx context.Context, requestConfiguration *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable, 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, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDeviceManagementConfigurationJustInTimeAssignmentPolicyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable), nil +} +// ToPostRequestInformation invoke action retrieveJustInTimeConfiguration +// returns a *RequestInformation when successful +func (m *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder when successful +func (m *ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) WithUrl(rawUrl string)(*ConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + return NewConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_device_compliance_scheduled_action_for_rule_item_request_builder.go b/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_device_compliance_scheduled_action_for_rule_item_request_builder.go index 7d5758f321e..760fa557863 100644 --- a/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_device_compliance_scheduled_action_for_rule_item_request_builder.go +++ b/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_device_compliance_scheduled_action_for_rule_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceSchedule // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters the list of scheduled action for this rule +// DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters the list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. type DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceSche } return nil } -// Get the list of scheduled action for this rule +// Get the list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. // returns a DeviceComplianceScheduledActionForRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceComplianceScheduledActionForRuleable, error) { @@ -126,7 +126,7 @@ func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceSche requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the list of scheduled action for this rule +// ToGetRequestInformation the list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesItemScheduledActionsForRuleDeviceComplianceScheduledActionForRuleItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_request_builder.go b/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_request_builder.go index 48f8e0e4fcf..9d41c0b2723 100644 --- a/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_request_builder.go +++ b/devicemanagement/device_compliance_policies_item_scheduled_actions_for_rule_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderGetQueryParameters the list of scheduled action for this rule +// DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderGetQueryParameters the list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. type DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewDeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder(rawUrl func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder) Count()(*DeviceCompliancePoliciesItemScheduledActionsForRuleCountRequestBuilder) { return NewDeviceCompliancePoliciesItemScheduledActionsForRuleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the list of scheduled action for this rule +// Get the list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. // returns a DeviceComplianceScheduledActionForRuleCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceComplianceScheduledActionForRuleCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder) Post } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceComplianceScheduledActionForRuleable), nil } -// ToGetRequestInformation the list of scheduled action for this rule +// ToGetRequestInformation the list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go b/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go index 9057db315aa..1559194d6c8 100644 --- a/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go +++ b/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters the collection property of AppLogUploadRequest. +// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. type MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollect } return nil } -// Get the collection property of AppLogUploadRequest. +// Get indicates collection of App Log Upload Request. // 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 the collection property of AppLogUploadRequest. +// ToGetRequestInformation indicates collection of App Log Upload Request. // 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/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 509698adf1e..f6708e10cc2 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 the collection property of AppLogUploadRequest. +// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. 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 the collection property of AppLogUploadRequest. +// Get indicates collection of App Log Upload Request. // 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 the collection property of AppLogUploadRequest. +// ToGetRequestInformation indicates collection of App Log Upload Request. // 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/reusable_policy_settings_item_referencing_configuration_policies_device_management_configuration_policy_item_request_builder.go b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_device_management_configuration_policy_item_request_builder.go index 5194f2889aa..89f15eb4aac 100644 --- a/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_device_management_configuration_policy_item_request_builder.go +++ b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_device_management_configuration_policy_item_request_builder.go @@ -46,6 +46,11 @@ type ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementC func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) Assign()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignRequestBuilder) { return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AssignJustInTimeConfiguration provides operations to call the assignJustInTimeConfiguration method. +// returns a *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) AssignJustInTimeConfiguration()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Assignments provides operations to manage the assignments property of the microsoft.graph.deviceManagementConfigurationPolicy entity. // returns a *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignmentsRequestBuilder when successful func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) Assignments()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignmentsRequestBuilder) { @@ -130,6 +135,11 @@ func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagem func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) Reorder()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemReorderRequestBuilder) { return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemReorderRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RetrieveJustInTimeConfiguration provides operations to call the retrieveJustInTimeConfiguration method. +// returns a *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) RetrieveJustInTimeConfiguration()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // RetrieveLatestUpgradeDefaultBaselinePolicy provides operations to call the retrieveLatestUpgradeDefaultBaselinePolicy method. // returns a *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder when successful func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesDeviceManagementConfigurationPolicyItemRequestBuilder) RetrieveLatestUpgradeDefaultBaselinePolicy()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder) { diff --git a/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_post_request_body.go b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_post_request_body.go new file mode 100644 index 00000000000..7c846a06150 --- /dev/null +++ b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_post_request_body.go @@ -0,0 +1,114 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) { + m := &ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justInTimeAssignments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDeviceManagementConfigurationJustInTimeAssignmentPolicyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetJustInTimeAssignments(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable)) + } + return nil + } + return res +} +// GetJustInTimeAssignments gets the justInTimeAssignments property value. The justInTimeAssignments property +// returns a DeviceManagementConfigurationJustInTimeAssignmentPolicyable when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) GetJustInTimeAssignments()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable) { + val, err := m.GetBackingStore().Get("justInTimeAssignments") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("justInTimeAssignments", m.GetJustInTimeAssignments()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustInTimeAssignments sets the justInTimeAssignments property value. The justInTimeAssignments property +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBody) SetJustInTimeAssignments(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable)() { + err := m.GetBackingStore().Set("justInTimeAssignments", value) + if err != nil { + panic(err) + } +} +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustInTimeAssignments()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustInTimeAssignments(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable)() +} diff --git a/groups/item_sites_item_sites_remove_post_request_body.go b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_post_response.go similarity index 60% rename from groups/item_sites_item_sites_remove_post_request_body.go rename to devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_post_response.go index 9ff2e621e4a..2ac9ec5dc44 100644 --- a/groups/item_sites_item_sites_remove_post_request_body.go +++ b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_post_response.go @@ -1,31 +1,30 @@ -package groups +package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -type ItemSitesItemSitesRemovePostRequestBody struct { +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewItemSitesItemSitesRemovePostRequestBody instantiates a new ItemSitesItemSitesRemovePostRequestBody and sets the default values. -func NewItemSitesItemSitesRemovePostRequestBody()(*ItemSitesItemSitesRemovePostRequestBody) { - m := &ItemSitesItemSitesRemovePostRequestBody{ +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) { + m := &ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateItemSitesItemSitesRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesItemSitesRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesItemSitesRemovePostRequestBody(), nil +func CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. // returns a map[string]any when successful -func (m *ItemSitesItemSitesRemovePostRequestBody) GetAdditionalData()(map[string]any) { +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -38,53 +37,41 @@ func (m *ItemSitesItemSitesRemovePostRequestBody) GetAdditionalData()(map[string } // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful -func (m *ItemSitesItemSitesRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesItemSitesRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + val, err := n.GetBoolValue() if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - } - } - m.SetValue(res) + m.SetValue(val) } return nil } return res } // GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesItemSitesRemovePostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { +// returns a *bool when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) GetValue()(*bool) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.(*bool) } return nil } // Serialize serializes information the current object -func (m *ItemSitesItemSitesRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - 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) +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("value", m.GetValue()) if err != nil { return err } @@ -98,29 +85,29 @@ func (m *ItemSitesItemSitesRemovePostRequestBody) Serialize(writer i878a80d2330e return nil } // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemSitesItemSitesRemovePostRequestBody) SetAdditionalData(value map[string]any)() { +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) if err != nil { panic(err) } } // SetBackingStore sets the BackingStore property value. Stores model information. -func (m *ItemSitesItemSitesRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } // SetValue sets the value property value. The value property -func (m *ItemSitesItemSitesRemovePostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse) SetValue(value *bool)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ItemSitesItemSitesRemovePostRequestBodyable interface { +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + GetValue()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + SetValue(value *bool)() } diff --git a/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_request_builder.go b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_request_builder.go new file mode 100644 index 00000000000..27550330bc2 --- /dev/null +++ b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_request_builder.go @@ -0,0 +1,93 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder provides operations to call the assignJustInTimeConfiguration method. +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + m := &ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/reusablePolicySettings/{deviceManagementReusablePolicySetting%2Did}/referencingConfigurationPolicies/{deviceManagementConfigurationPolicy%2Did}/assignJustInTimeConfiguration", pathParameters), + } + return m +} +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action assignJustInTimeConfiguration +// Deprecated: This method is obsolete. Use PostAsAssignJustInTimeConfigurationPostResponse instead. +// returns a ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) Post(ctx context.Context, body ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable, requestConfiguration *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable, 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, CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable), nil +} +// PostAsAssignJustInTimeConfigurationPostResponse invoke action assignJustInTimeConfiguration +// returns a ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) PostAsAssignJustInTimeConfigurationPostResponse(ctx context.Context, body ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable, requestConfiguration *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable, 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, CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable), nil +} +// ToPostRequestInformation invoke action assignJustInTimeConfiguration +// returns a *RequestInformation when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostRequestBodyable, requestConfiguration *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) WithUrl(rawUrl string)(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_response.go b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_response.go new file mode 100644 index 00000000000..585360ac11b --- /dev/null +++ b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_assign_just_in_time_configuration_response.go @@ -0,0 +1,27 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable instead. +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse struct { + ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse +} +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse()(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse) { + m := &ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse{ + ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse: *NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponse(), + } + return m +} +// CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponse(), nil +} +// Deprecated: This class is obsolete. Use ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable instead. +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReusablePolicySettingsItemReferencingConfigurationPoliciesItemAssignJustInTimeConfigurationPostResponseable +} diff --git a/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_retrieve_just_in_time_configuration_request_builder.go b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_retrieve_just_in_time_configuration_request_builder.go new file mode 100644 index 00000000000..9d02c85208a --- /dev/null +++ b/devicemanagement/reusable_policy_settings_item_referencing_configuration_policies_item_retrieve_just_in_time_configuration_request_builder.go @@ -0,0 +1,69 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder provides operations to call the retrieveJustInTimeConfiguration method. +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + m := &ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/reusablePolicySettings/{deviceManagementReusablePolicySetting%2Did}/referencingConfigurationPolicies/{deviceManagementConfigurationPolicy%2Did}/retrieveJustInTimeConfiguration", pathParameters), + } + return m +} +// NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder instantiates a new ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder and sets the default values. +func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action retrieveJustInTimeConfiguration +// returns a DeviceManagementConfigurationJustInTimeAssignmentPolicyable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) Post(ctx context.Context, requestConfiguration *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable, 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, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDeviceManagementConfigurationJustInTimeAssignmentPolicyFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementConfigurationJustInTimeAssignmentPolicyable), nil +} +// ToPostRequestInformation invoke action retrieveJustInTimeConfiguration +// returns a *RequestInformation when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder when successful +func (m *ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) WithUrl(rawUrl string)(*ReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder) { + return NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemRetrieveJustInTimeConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/virtual_endpoint_on_premises_connections_item_run_health_checks_request_builder.go b/devicemanagement/virtual_endpoint_on_premises_connections_item_run_health_checks_request_builder.go index e941ff75764..5906ff0b310 100644 --- a/devicemanagement/virtual_endpoint_on_premises_connections_item_run_health_checks_request_builder.go +++ b/devicemanagement/virtual_endpoint_on_premises_connections_item_run_health_checks_request_builder.go @@ -30,7 +30,7 @@ func NewVirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilderInternal(urlParams, requestAdapter) } -// Post run health checks on the cloudPcOnPremisesConnection object. This will trigger a new health check for this cloudPcOnPremisesConnection object and change the healthCheckStatus and healthCheckStatusDetails properties when check finished. +// Post run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for this cloudPcOnPremisesConnection object and change the healthCheckStatus and healthCheckStatusDetails properties when check finished. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *VirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilder) } return nil } -// ToPostRequestInformation run health checks on the cloudPcOnPremisesConnection object. This will trigger a new health check for this cloudPcOnPremisesConnection object and change the healthCheckStatus and healthCheckStatusDetails properties when check finished. +// ToPostRequestInformation run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for this cloudPcOnPremisesConnection object and change the healthCheckStatus and healthCheckStatusDetails properties when check finished. // returns a *RequestInformation when successful func (m *VirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_activities_item_drive_item_content_request_builder.go b/drives/item_activities_item_drive_item_content_request_builder.go index 041109c4e00..760017163c7 100644 --- a/drives/item_activities_item_drive_item_content_request_builder.go +++ b/drives/item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from drives type ItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemActivitiesItemDriveItemContentRequestBuilder(rawUrl string, requestA urlParams["request-raw-url"] = rawUrl return NewItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Conte } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from drives // returns a *RequestInformation when successful func (m *ItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformati requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in drives // returns a *RequestInformation when successful func (m *ItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/activities/{itemActivityOLD%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_activities_item_drive_item_content_stream_request_builder.go b/drives/item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..eafa7a7a00c --- /dev/null +++ b/drives/item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_activities_item_drive_item_request_builder.go b/drives/item_activities_item_drive_item_request_builder.go index 21cfe2b3ac6..57f4e92439f 100644 --- a/drives/item_activities_item_drive_item_request_builder.go +++ b/drives/item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemActivitiesItemDriveItemRequestBuilder(rawUrl string, requestAdapter func (m *ItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get driveItem from drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_bundles_drive_item_item_request_builder.go b/drives/item_bundles_drive_item_item_request_builder.go index 2af133ced7d..36d91687658 100644 --- a/drives/item_bundles_drive_item_item_request_builder.go +++ b/drives/item_bundles_drive_item_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemBundlesDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2a func (m *ItemBundlesDriveItemItemRequestBuilder) Content()(*ItemBundlesItemContentRequestBuilder) { return NewItemBundlesItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemBundlesItemContentStreamRequestBuilder when successful +func (m *ItemBundlesDriveItemItemRequestBuilder) ContentStream()(*ItemBundlesItemContentStreamRequestBuilder) { + return NewItemBundlesItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_bundles_item_content_request_builder.go b/drives/item_bundles_item_content_request_builder.go index 2e8ab9abf13..35fca06edd4 100644 --- a/drives/item_bundles_item_content_request_builder.go +++ b/drives/item_bundles_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemBundlesItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemBundlesItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemBundlesItemContentRequestBuilderGetQueryParameters get content for the navigation property bundles from drives type ItemBundlesItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemBundlesItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4 urlParams["request-raw-url"] = rawUrl return NewItemBundlesItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property bundles from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemBundlesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemBundlesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemBundlesItemContentRequestBuilder) Get(ctx context.Context, requestC } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property bundles in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemBundlesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemBundlesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemBundlesItemContentRequestBuilder) Put(ctx context.Context, body []b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property bundles from drives // returns a *RequestInformation when successful func (m *ItemBundlesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemBundlesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemBundlesItemContentRequestBuilder) ToGetRequestInformation(ctx conte requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property bundles in drives // returns a *RequestInformation when successful func (m *ItemBundlesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemBundlesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_bundles_item_content_stream_request_builder.go b/drives/item_bundles_item_content_stream_request_builder.go new file mode 100644 index 00000000000..d66a4d2b7f7 --- /dev/null +++ b/drives/item_bundles_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemBundlesItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemBundlesItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemBundlesItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemBundlesItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemBundlesItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemBundlesItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemBundlesItemContentStreamRequestBuilderInternal instantiates a new ItemBundlesItemContentStreamRequestBuilder and sets the default values. +func NewItemBundlesItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemBundlesItemContentStreamRequestBuilder) { + m := &ItemBundlesItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}/contentStream", pathParameters), + } + return m +} +// NewItemBundlesItemContentStreamRequestBuilder instantiates a new ItemBundlesItemContentStreamRequestBuilder and sets the default values. +func NewItemBundlesItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemBundlesItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemBundlesItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemBundlesItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemBundlesItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemBundlesItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemBundlesItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemBundlesItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemBundlesItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemBundlesItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemBundlesItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemBundlesItemContentStreamRequestBuilder when successful +func (m *ItemBundlesItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemBundlesItemContentStreamRequestBuilder) { + return NewItemBundlesItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_following_drive_item_item_request_builder.go b/drives/item_following_drive_item_item_request_builder.go index e0f093f3bfe..848a4c03be8 100644 --- a/drives/item_following_drive_item_item_request_builder.go +++ b/drives/item_following_drive_item_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemFollowingDriveItemItemRequestBuilder(rawUrl string, requestAdapter i func (m *ItemFollowingDriveItemItemRequestBuilder) Content()(*ItemFollowingItemContentRequestBuilder) { return NewItemFollowingItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemFollowingItemContentStreamRequestBuilder when successful +func (m *ItemFollowingDriveItemItemRequestBuilder) ContentStream()(*ItemFollowingItemContentStreamRequestBuilder) { + return NewItemFollowingItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get the list of items the user is following. Only in OneDrive for Business. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_following_item_content_request_builder.go b/drives/item_following_item_content_request_builder.go index 9de0e36cd2e..94b8d25ff05 100644 --- a/drives/item_following_item_content_request_builder.go +++ b/drives/item_following_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemFollowingItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemFollowingItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemFollowingItemContentRequestBuilderGetQueryParameters get content for the navigation property following from drives type ItemFollowingItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemFollowingItemContentRequestBuilder(rawUrl string, requestAdapter i2a urlParams["request-raw-url"] = rawUrl return NewItemFollowingItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property following from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemFollowingItemContentRequestBuilder) Get(ctx context.Context, reques } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property following in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemFollowingItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemFollowingItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemFollowingItemContentRequestBuilder) Put(ctx context.Context, body [ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property following from drives // returns a *RequestInformation when successful func (m *ItemFollowingItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowingItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemFollowingItemContentRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property following in drives // returns a *RequestInformation when successful func (m *ItemFollowingItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemFollowingItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_following_item_content_stream_request_builder.go b/drives/item_following_item_content_stream_request_builder.go new file mode 100644 index 00000000000..2f92d022fef --- /dev/null +++ b/drives/item_following_item_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemFollowingItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemFollowingItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemFollowingItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemFollowingItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemFollowingItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemFollowingItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemFollowingItemContentStreamRequestBuilderInternal instantiates a new ItemFollowingItemContentStreamRequestBuilder and sets the default values. +func NewItemFollowingItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemFollowingItemContentStreamRequestBuilder) { + m := &ItemFollowingItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}/contentStream", pathParameters), + } + return m +} +// NewItemFollowingItemContentStreamRequestBuilder instantiates a new ItemFollowingItemContentStreamRequestBuilder and sets the default values. +func NewItemFollowingItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemFollowingItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemFollowingItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/drive-list-following?view=graph-rest-1.0 +func (m *ItemFollowingItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemFollowingItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemFollowingItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemFollowingItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemFollowingItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowingItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemFollowingItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemFollowingItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemFollowingItemContentStreamRequestBuilder when successful +func (m *ItemFollowingItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemFollowingItemContentStreamRequestBuilder) { + return NewItemFollowingItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_following_request_builder.go b/drives/item_following_request_builder.go index f7206983c55..31c07fda5ec 100644 --- a/drives/item_following_request_builder.go +++ b/drives/item_following_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemFollowingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemFollowingRequestBuilderGetQueryParameters list the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. +// ItemFollowingRequestBuilderGetQueryParameters list the items that the signed-in user followed.This collection includes items that are in the user's drive and items they have access to from other drives. type ItemFollowingRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemFollowingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *ItemFollowingRequestBuilder) Count()(*ItemFollowingCountRequestBuilder) { return NewItemFollowingCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. +// Get list the items that the signed-in user followed.This collection includes items that are in the user's drive and items they have access to from other drives. // returns a DriveItemCollectionResponseable 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 *ItemFollowingRequestBuilder) Get(ctx context.Context, requestConfigurat } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemCollectionResponseable), nil } -// ToGetRequestInformation list the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. +// ToGetRequestInformation list the items that the signed-in user followed.This collection includes items that are in the user's drive and items they have access to from other drives. // returns a *RequestInformation when successful func (m *ItemFollowingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_drive_item_item_request_builder.go b/drives/item_items_drive_item_item_request_builder.go index 102dac8ca81..fcfc92c1afd 100644 --- a/drives/item_items_drive_item_item_request_builder.go +++ b/drives/item_items_drive_item_item_request_builder.go @@ -89,6 +89,11 @@ func NewItemItemsDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4 func (m *ItemItemsDriveItemItemRequestBuilder) Content()(*ItemItemsItemContentRequestBuilder) { return NewItemItemsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemItemsItemContentStreamRequestBuilder when successful +func (m *ItemItemsDriveItemItemRequestBuilder) ContentStream()(*ItemItemsItemContentStreamRequestBuilder) { + return NewItemItemsItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Copy provides operations to call the copy method. // returns a *ItemItemsItemCopyRequestBuilder when successful func (m *ItemItemsDriveItemItemRequestBuilder) Copy()(*ItemItemsItemCopyRequestBuilder) { diff --git a/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go b/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go index e01171a940a..e1d081611b0 100644 --- a/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go +++ b/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from drives type ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConten urlParams["request-raw-url"] = rawUrl return NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConte } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from drives // returns a *RequestInformation when successful func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConte requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in drives // returns a *RequestInformation when successful func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go b/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..f2c9276703a --- /dev/null +++ b/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go b/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go index 4282fa3d9ba..e9f6110162c 100644 --- a/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go +++ b/drives/item_items_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemReques func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get exposes the driveItem that was the target of this activity. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_items_item_children_drive_item_item_request_builder.go b/drives/item_items_item_children_drive_item_item_request_builder.go index 79646d0dd9f..eea31e0cdce 100644 --- a/drives/item_items_item_children_drive_item_item_request_builder.go +++ b/drives/item_items_item_children_drive_item_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemItemsItemChildrenDriveItemItemRequestBuilder(rawUrl string, requestA func (m *ItemItemsItemChildrenDriveItemItemRequestBuilder) Content()(*ItemItemsItemChildrenItemContentRequestBuilder) { return NewItemItemsItemChildrenItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemItemsItemChildrenItemContentStreamRequestBuilder when successful +func (m *ItemItemsItemChildrenDriveItemItemRequestBuilder) ContentStream()(*ItemItemsItemChildrenItemContentStreamRequestBuilder) { + return NewItemItemsItemChildrenItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_items_item_children_item_content_request_builder.go b/drives/item_items_item_children_item_content_request_builder.go index e55980a2d99..51d28beb52c 100644 --- a/drives/item_items_item_children_item_content_request_builder.go +++ b/drives/item_items_item_children_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemChildrenItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemChildrenItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemItemsItemChildrenItemContentRequestBuilderGetQueryParameters get content for the navigation property children from drives type ItemItemsItemChildrenItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemItemsItemChildrenItemContentRequestBuilder(rawUrl string, requestAda urlParams["request-raw-url"] = rawUrl return NewItemItemsItemChildrenItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property children from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemItemsItemChildrenItemContentRequestBuilder) Get(ctx context.Context } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property children in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemChildrenItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemChildrenItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemItemsItemChildrenItemContentRequestBuilder) Put(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property children from drives // returns a *RequestInformation when successful func (m *ItemItemsItemChildrenItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemChildrenItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemItemsItemChildrenItemContentRequestBuilder) ToGetRequestInformation requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property children in drives // returns a *RequestInformation when successful func (m *ItemItemsItemChildrenItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemChildrenItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_children_item_content_stream_request_builder.go b/drives/item_items_item_children_item_content_stream_request_builder.go new file mode 100644 index 00000000000..c0da254b18b --- /dev/null +++ b/drives/item_items_item_children_item_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemChildrenItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemItemsItemChildrenItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemChildrenItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemChildrenItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemChildrenItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemChildrenItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemChildrenItemContentStreamRequestBuilderInternal instantiates a new ItemItemsItemChildrenItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemChildrenItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemChildrenItemContentStreamRequestBuilder) { + m := &ItemItemsItemChildrenItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}/contentStream", pathParameters), + } + return m +} +// NewItemItemsItemChildrenItemContentStreamRequestBuilder instantiates a new ItemItemsItemChildrenItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemChildrenItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemChildrenItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemChildrenItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-list-children?view=graph-rest-1.0 +func (m *ItemItemsItemChildrenItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemChildrenItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemChildrenItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemChildrenItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemChildrenItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemChildrenItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemChildrenItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemChildrenItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemChildrenItemContentStreamRequestBuilder when successful +func (m *ItemItemsItemChildrenItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemChildrenItemContentStreamRequestBuilder) { + return NewItemItemsItemChildrenItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_children_request_builder.go b/drives/item_items_item_children_request_builder.go index da35e91480d..8075ff3a5cc 100644 --- a/drives/item_items_item_children_request_builder.go +++ b/drives/item_items_item_children_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemChildrenRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemChildrenRequestBuilderGetQueryParameters return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. +// ItemItemsItemChildrenRequestBuilderGetQueryParameters return a collection of driveItems in the children relationship of a driveItem. DriveItems with a non-null folder or package facet can have one or more child driveItems. type ItemItemsItemChildrenRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemChildrenRequestBuilder(rawUrl string, requestAdapter i2ae41 func (m *ItemItemsItemChildrenRequestBuilder) Count()(*ItemItemsItemChildrenCountRequestBuilder) { return NewItemItemsItemChildrenCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. +// Get return a collection of driveItems in the children relationship of a driveItem. DriveItems with a non-null folder or package facet can have one or more child driveItems. // returns a DriveItemCollectionResponseable 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 *ItemItemsItemChildrenRequestBuilder) Post(ctx context.Context, body ie2 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. +// ToGetRequestInformation return a collection of driveItems in the children relationship of a driveItem. DriveItems with a non-null folder or package facet can have one or more child driveItems. // returns a *RequestInformation when successful func (m *ItemItemsItemChildrenRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemChildrenRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_content_request_builder.go b/drives/item_items_item_content_request_builder.go index 1a6c4558ed8..6f5d9d80650 100644 --- a/drives/item_items_item_content_request_builder.go +++ b/drives/item_items_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemItemsItemContentRequestBuilderGetQueryParameters get content for the navigation property items from drives type ItemItemsItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemItemsItemContentRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemItemsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property items from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemItemsItemContentRequestBuilder) Get(ctx context.Context, requestCon } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property items in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemItemsItemContentRequestBuilder) Put(ctx context.Context, body []byt } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property items from drives // returns a *RequestInformation when successful func (m *ItemItemsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemItemsItemContentRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property items in drives // returns a *RequestInformation when successful func (m *ItemItemsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_content_stream_request_builder.go b/drives/item_items_item_content_stream_request_builder.go new file mode 100644 index 00000000000..31844c55162 --- /dev/null +++ b/drives/item_items_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemItemsItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemContentStreamRequestBuilderInternal instantiates a new ItemItemsItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemContentStreamRequestBuilder) { + m := &ItemItemsItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/contentStream", pathParameters), + } + return m +} +// NewItemItemsItemContentStreamRequestBuilder instantiates a new ItemItemsItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemContentStreamRequestBuilder when successful +func (m *ItemItemsItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemContentStreamRequestBuilder) { + return NewItemItemsItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_create_link_request_builder.go b/drives/item_items_item_create_link_request_builder.go index 4dd7ea7bc2e..f4466132429 100644 --- a/drives/item_items_item_create_link_request_builder.go +++ b/drives/item_items_item_create_link_request_builder.go @@ -31,7 +31,7 @@ func NewItemItemsItemCreateLinkRequestBuilder(rawUrl string, requestAdapter i2ae urlParams["request-raw-url"] = rawUrl return NewItemItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) } -// Post you can use createLink action to share a driveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. +// Post create a link to share a driveItem driveItem.The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link is returned. DriveItem resources inherit sharing permissions from their ancestors. // returns a Permissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemItemsItemCreateLinkRequestBuilder) Post(ctx context.Context, body I } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Permissionable), nil } -// ToPostRequestInformation you can use createLink action to share a driveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. +// ToPostRequestInformation create a link to share a driveItem driveItem.The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link is returned. DriveItem resources inherit sharing permissions from their ancestors. // returns a *RequestInformation when successful func (m *ItemItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemCreateLinkPostRequestBodyable, requestConfiguration *ItemItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_invite_request_builder.go b/drives/item_items_item_invite_request_builder.go index 842a44ffb98..2adc16057bd 100644 --- a/drives/item_items_item_invite_request_builder.go +++ b/drives/item_items_item_invite_request_builder.go @@ -30,7 +30,7 @@ func NewItemItemsItemInviteRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemItemsItemInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post sends a sharing invitation for a DriveItem.A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared. +// Post sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared. // Deprecated: This method is obsolete. Use PostAsInvitePostResponse instead. // returns a ItemItemsItemInviteResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemItemsItemInviteRequestBuilder) Post(ctx context.Context, body ItemI } return res.(ItemItemsItemInviteResponseable), nil } -// PostAsInvitePostResponse sends a sharing invitation for a DriveItem.A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared. +// PostAsInvitePostResponse sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared. // returns a ItemItemsItemInvitePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemItemsItemInviteRequestBuilder) PostAsInvitePostResponse(ctx context } return res.(ItemItemsItemInvitePostResponseable), nil } -// ToPostRequestInformation sends a sharing invitation for a DriveItem.A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared. +// ToPostRequestInformation sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared. // returns a *RequestInformation when successful func (m *ItemItemsItemInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemInvitePostRequestBodyable, requestConfiguration *ItemItemsItemInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_retention_label_request_builder.go b/drives/item_items_item_retention_label_request_builder.go index 628b80351b2..c47a91c28c2 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0 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, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/retentionLabel", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_thumbnails_request_builder.go b/drives/item_items_item_thumbnails_request_builder.go index ef81bc80285..2d73e929526 100644 --- a/drives/item_items_item_thumbnails_request_builder.go +++ b/drives/item_items_item_thumbnails_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemThumbnailsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemThumbnailsRequestBuilderGetQueryParameters retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: +// ItemItemsItemThumbnailsRequestBuilderGetQueryParameters retrieve a collection of thumbnailSet resources for a driveItem resource. Zero or more thumbnailSet resources can represent a driveItem.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There're many ways to work with thumbnails on OneDrive.Here are the most common ones: type ItemItemsItemThumbnailsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemThumbnailsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *ItemItemsItemThumbnailsRequestBuilder) Count()(*ItemItemsItemThumbnailsCountRequestBuilder) { return NewItemItemsItemThumbnailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: +// Get retrieve a collection of thumbnailSet resources for a driveItem resource. Zero or more thumbnailSet resources can represent a driveItem.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There're many ways to work with thumbnails on OneDrive.Here are the most common ones: // returns a ThumbnailSetCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -119,7 +119,7 @@ func (m *ItemItemsItemThumbnailsRequestBuilder) Post(ctx context.Context, body i } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThumbnailSetable), nil } -// ToGetRequestInformation retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: +// ToGetRequestInformation retrieve a collection of thumbnailSet resources for a driveItem resource. Zero or more thumbnailSet resources can represent a driveItem.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There're many ways to work with thumbnails on OneDrive.Here are the most common ones: // returns a *RequestInformation when successful func (m *ItemItemsItemThumbnailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemThumbnailsRequestBuilderGetRequestConfiguration)(*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_request_builder.go b/drives/item_items_item_workbook_names_item_range_request_builder.go index 47d17ad1076..f5727b440df 100644 --- a/drives/item_items_item_workbook_names_item_range_request_builder.go +++ b/drives/item_items_item_workbook_names_item_range_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ 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. +// 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) 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 9ceade98924..09f83e001be 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 @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder(rawUrl s // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { 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 b1b75b14a2e..f07f97302ad 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 @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder(rawUrl stri // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { 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 0c5ec60be7c..2eebe6ae468 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 @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*ItemItem // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { 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 3c59653e48a..40b1222fb18 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 @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Count()(*ItemItemsIt // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_tables_request_builder.go b/drives/item_items_item_workbook_tables_request_builder.go index 6624e9d64e8..7df6bf17cce 100644 --- a/drives/item_items_item_workbook_tables_request_builder.go +++ b/drives/item_items_item_workbook_tables_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookTablesRequestBuilder) Count()(*ItemItemsItemWorkbo // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_add_request_builder.go b/drives/item_items_item_workbook_worksheets_add_request_builder.go index 4ed61991f1c..b420252e7a5 100644 --- a/drives/item_items_item_workbook_worksheets_add_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_add_request_builder.go @@ -31,7 +31,7 @@ func NewItemItemsItemWorkbookWorksheetsAddRequestBuilder(rawUrl string, requestA urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call '.activate() on it. +// Post add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call '.activate() on it. // returns a WorkbookWorksheetable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookWorksheetsAddRequestBuilder) Post(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil } -// ToPostRequestInformation adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call '.activate() on it. +// ToPostRequestInformation add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call '.activate() on it. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go index a187320bea0..f14f5238965 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ 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. +// 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) 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 d5bf6359572..2bd998f24d4 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 @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBu // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { 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 165870bf056..836c9753521 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 @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuild // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { 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 8e0fa01c4e4..15f6d29f8ed 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 @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Cou // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { 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 2d6dc0edc02..c425c70fdf7 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 @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Count( // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_list_columns_request_builder.go b/drives/item_list_columns_request_builder.go index 9b67cc240a3..9d96949652b 100644 --- a/drives/item_list_columns_request_builder.go +++ b/drives/item_list_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ItemListColumnsRequestBuilderGetQueryParameters the collection of field definitions for this list. type ItemListColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *ItemListColumnsRequestBuilder) Count()(*ItemListColumnsCountRequestBuilder) { return NewItemListColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// Get the collection of field definitions for this list. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemListColumnsRequestBuilder) Get(ctx context.Context, requestConfigur } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// Post create columnDefinition // returns a ColumnDefinitionable 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 *ItemListColumnsRequestBuilder) Post(ctx context.Context, body ie233ee76 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ToGetRequestInformation the collection of field definitions for this list. // returns a *RequestInformation when successful func (m *ItemListColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemListColumnsRequestBuilder) ToGetRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition // returns a *RequestInformation when successful func (m *ItemListColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/drives/{drive%2Did}/list/columns", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_add_copy_request_builder.go b/drives/item_list_content_types_add_copy_request_builder.go index 4fdd39c8737..06e7d4bb0c5 100644 --- a/drives/item_list_content_types_add_copy_request_builder.go +++ b/drives/item_list_content_types_add_copy_request_builder.go @@ -31,7 +31,7 @@ func NewItemListContentTypesAddCopyRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) } -// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// Post invoke action addCopy // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemListContentTypesAddCopyRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToPostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// ToPostRequestInformation invoke action addCopy // returns a *RequestInformation when successful func (m *ItemListContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemListContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_associate_with_hub_sites_request_builder.go b/drives/item_list_content_types_item_associate_with_hub_sites_request_builder.go index 0f8158474d0..d3de16ed863 100644 --- a/drives/item_list_content_types_item_associate_with_hub_sites_request_builder.go +++ b/drives/item_list_content_types_item_associate_with_hub_sites_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) } -// Post associate a [content type][contentType] with a list of hub sites. +// Post invoke action associateWithHubSites // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemAssociateWithHubSitesRequestBuilder) Post(ctx c } return nil } -// ToPostRequestInformation associate a [content type][contentType] with a list of hub sites. +// ToPostRequestInformation invoke action associateWithHubSites // returns a *RequestInformation when successful func (m *ItemListContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemListContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_column_links_column_link_item_request_builder.go b/drives/item_list_content_types_item_column_links_column_link_item_request_builder.go index feb86fc0ec2..ccaa69fa8ea 100644 --- a/drives/item_list_content_types_item_column_links_column_link_item_request_builder.go +++ b/drives/item_list_content_types_item_column_links_column_link_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Delete } return nil } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable, error) { @@ -121,7 +121,7 @@ func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToDele requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_column_links_request_builder.go b/drives/item_list_content_types_item_column_links_request_builder.go index 60f6e3fd877..78c53e13908 100644 --- a/drives/item_list_content_types_item_column_links_request_builder.go +++ b/drives/item_list_content_types_item_column_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListContentTypesItemColumnLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemListContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemListContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListContentTypesItemColumnLinksRequestBuilder(rawUrl string, request func (m *ItemListContentTypesItemColumnLinksRequestBuilder) Count()(*ItemListContentTypesItemColumnLinksCountRequestBuilder) { return NewItemListContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemListContentTypesItemColumnLinksRequestBuilder) Post(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable), nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_columns_column_definition_item_request_builder.go b/drives/item_list_content_types_item_columns_column_definition_item_request_builder.go index d69a49e31ac..a46415a8d29 100644 --- a/drives/item_list_content_types_item_columns_column_definition_item_request_builder.go +++ b/drives/item_list_content_types_item_columns_column_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. type ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,7 @@ func NewItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// Delete delete columnDefinition // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -73,7 +73,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Dele } return nil } -// Get retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// Get retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -96,7 +96,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// Patch update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// Patch update columnDefinition // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Patc func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemListContentTypesItemColumnsItemSourceColumnRequestBuilder) { return NewItemListContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// ToDeleteRequestInformation delete columnDefinition // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ToGetRequestInformation retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// ToPatchRequestInformation update columnDefinition // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_columns_request_builder.go b/drives/item_list_content_types_item_columns_request_builder.go index 5d9b19b427c..2fbf4e313ed 100644 --- a/drives/item_list_content_types_item_columns_request_builder.go +++ b/drives/item_list_content_types_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListContentTypesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ItemListContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. type ItemListContentTypesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListContentTypesItemColumnsRequestBuilder(rawUrl string, requestAdap func (m *ItemListContentTypesItemColumnsRequestBuilder) Count()(*ItemListContentTypesItemColumnsCountRequestBuilder) { return NewItemListContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// Get the collection of column definitions for this content type. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemListContentTypesItemColumnsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a content type // returns a ColumnDefinitionable 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 *ItemListContentTypesItemColumnsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ToGetRequestInformation the collection of column definitions for this content type. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemListContentTypesItemColumnsRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a content type // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_copy_to_default_content_location_request_builder.go b/drives/item_list_content_types_item_copy_to_default_content_location_request_builder.go index 2d30f40d1b7..0d94a74e6ea 100644 --- a/drives/item_list_content_types_item_copy_to_default_content_location_request_builder.go +++ b/drives/item_list_content_types_item_copy_to_default_content_location_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemCopyToDefaultContentLocationRequestBuilder(rawUr urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) } -// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// Post invoke action copyToDefaultContentLocation // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemCopyToDefaultContentLocationRequestBuilder) Pos } return nil } -// ToPostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// ToPostRequestInformation invoke action copyToDefaultContentLocation // returns a *RequestInformation when successful func (m *ItemListContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemListContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_publish_request_builder.go b/drives/item_list_content_types_item_publish_request_builder.go index b6fec846e35..ed8c91fe601 100644 --- a/drives/item_list_content_types_item_publish_request_builder.go +++ b/drives/item_list_content_types_item_publish_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemPublishRequestBuilder(rawUrl string, requestAdap urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post publishes a [contentType][] present in a content type hub site. +// Post invoke action publish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemPublishRequestBuilder) Post(ctx context.Context } return nil } -// ToPostRequestInformation publishes a [contentType][] present in a content type hub site. +// ToPostRequestInformation invoke action publish // returns a *RequestInformation when successful func (m *ItemListContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_item_unpublish_request_builder.go b/drives/item_list_content_types_item_unpublish_request_builder.go index ab82d2deee9..89f4c142e07 100644 --- a/drives/item_list_content_types_item_unpublish_request_builder.go +++ b/drives/item_list_content_types_item_unpublish_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemUnpublishRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post unpublish a [contentType][] from a content type hub site. +// Post invoke action unpublish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemUnpublishRequestBuilder) Post(ctx context.Conte } return nil } -// ToPostRequestInformation unpublish a [contentType][] from a content type hub site. +// ToPostRequestInformation invoke action unpublish // returns a *RequestInformation when successful func (m *ItemListContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_content_types_request_builder.go b/drives/item_list_content_types_request_builder.go index 79b65c5b03d..f7edab22c42 100644 --- a/drives/item_list_content_types_request_builder.go +++ b/drives/item_list_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [list][]. +// ItemListContentTypesRequestBuilderGetQueryParameters the collection of content types present in this list. type ItemListContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemListContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ItemListContentTypesRequestBuilder) Count()(*ItemListContentTypesCountRequestBuilder) { return NewItemListContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [list][]. +// Get the collection of content types present in this list. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -134,7 +134,7 @@ func (m *ItemListContentTypesRequestBuilder) Post(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [list][]. +// ToGetRequestInformation the collection of content types present in this list. // returns a *RequestInformation when successful func (m *ItemListContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_items_item_activities_item_drive_item_content_request_builder.go b/drives/item_list_items_item_activities_item_drive_item_content_request_builder.go index 956ba1e2c02..b282042e700 100644 --- a/drives/item_list_items_item_activities_item_drive_item_content_request_builder.go +++ b/drives/item_list_items_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from drives type ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemListItemsItemActivitiesItemDriveItemContentRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemListItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from drives // returns a *RequestInformation when successful func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in drives // returns a *RequestInformation when successful func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_items_item_activities_item_drive_item_content_stream_request_builder.go b/drives/item_list_items_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..1ab60ef8d3e --- /dev/null +++ b/drives/item_list_items_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_list_items_item_activities_item_drive_item_request_builder.go b/drives/item_list_items_item_activities_item_drive_item_request_builder.go index ebb491c66af..ec5007f4b1f 100644 --- a/drives/item_list_items_item_activities_item_drive_item_request_builder.go +++ b/drives/item_list_items_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemListItemsItemActivitiesItemDriveItemRequestBuilder(rawUrl string, re func (m *ItemListItemsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemListItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get driveItem from drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_list_items_item_create_link_request_builder.go b/drives/item_list_items_item_create_link_request_builder.go index 508398f6a81..c10c1e8cd21 100644 --- a/drives/item_list_items_item_create_link_request_builder.go +++ b/drives/item_list_items_item_create_link_request_builder.go @@ -31,7 +31,7 @@ func NewItemListItemsItemCreateLinkRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemListItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) } -// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a Permissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemListItemsItemCreateLinkRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Permissionable), nil } -// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a *RequestInformation when successful func (m *ItemListItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListItemsItemCreateLinkPostRequestBodyable, requestConfiguration *ItemListItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_items_item_drive_item_content_request_builder.go b/drives/item_list_items_item_drive_item_content_request_builder.go index 1ff78f21dcf..9935fae63ad 100644 --- a/drives/item_list_items_item_drive_item_content_request_builder.go +++ b/drives/item_list_items_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListItemsItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListItemsItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemListItemsItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from drives type ItemListItemsItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemListItemsItemDriveItemContentRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemListItemsItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemListItemsItemDriveItemContentRequestBuilder) Get(ctx context.Contex } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemListItemsItemDriveItemContentRequestBuilder) Put(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from drives // returns a *RequestInformation when successful func (m *ItemListItemsItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemListItemsItemDriveItemContentRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in drives // returns a *RequestInformation when successful func (m *ItemListItemsItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_list_items_item_drive_item_content_stream_request_builder.go b/drives/item_list_items_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..f455abcb14e --- /dev/null +++ b/drives/item_list_items_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemListItemsItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemListItemsItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemListItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + m := &ItemListItemsItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemListItemsItemDriveItemContentStreamRequestBuilder instantiates a new ItemListItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemListItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_list_items_item_drive_item_request_builder.go b/drives/item_list_items_item_drive_item_request_builder.go index e8dc47091ab..61bd5c97991 100644 --- a/drives/item_list_items_item_drive_item_request_builder.go +++ b/drives/item_list_items_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemListItemsItemDriveItemRequestBuilder(rawUrl string, requestAdapter i func (m *ItemListItemsItemDriveItemRequestBuilder) Content()(*ItemListItemsItemDriveItemContentRequestBuilder) { return NewItemListItemsItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemListItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemDriveItemRequestBuilder) ContentStream()(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get for document libraries, the driveItem relationship exposes the listItem as a [driveItem][] // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_root_content_request_builder.go b/drives/item_root_content_request_builder.go index 4ba6a4cf2d2..5050e1254ac 100644 --- a/drives/item_root_content_request_builder.go +++ b/drives/item_root_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemRootContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemRootContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemRootContentRequestBuilderGetQueryParameters get content for the navigation property root from drives type ItemRootContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemRootContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewItemRootContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property root from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemRootContentRequestBuilder) Get(ctx context.Context, requestConfigur } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property root in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRootContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemRootContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemRootContentRequestBuilder) Put(ctx context.Context, body []byte, re } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property root from drives // returns a *RequestInformation when successful func (m *ItemRootContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRootContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemRootContentRequestBuilder) ToGetRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property root in drives // returns a *RequestInformation when successful func (m *ItemRootContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemRootContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/root/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_root_content_stream_request_builder.go b/drives/item_root_content_stream_request_builder.go new file mode 100644 index 00000000000..f7dae9bb903 --- /dev/null +++ b/drives/item_root_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemRootContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemRootContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemRootContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemRootContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemRootContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemRootContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemRootContentStreamRequestBuilderInternal instantiates a new ItemRootContentStreamRequestBuilder and sets the default values. +func NewItemRootContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRootContentStreamRequestBuilder) { + m := &ItemRootContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/root/contentStream", pathParameters), + } + return m +} +// NewItemRootContentStreamRequestBuilder instantiates a new ItemRootContentStreamRequestBuilder and sets the default values. +func NewItemRootContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRootContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemRootContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-get?view=graph-rest-1.0 +func (m *ItemRootContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRootContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemRootContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemRootContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemRootContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRootContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemRootContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemRootContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemRootContentStreamRequestBuilder when successful +func (m *ItemRootContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemRootContentStreamRequestBuilder) { + return NewItemRootContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_root_request_builder.go b/drives/item_root_request_builder.go index acfcd7a54d4..3e66d404c6f 100644 --- a/drives/item_root_request_builder.go +++ b/drives/item_root_request_builder.go @@ -45,6 +45,11 @@ func NewItemRootRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26337 func (m *ItemRootRequestBuilder) Content()(*ItemRootContentRequestBuilder) { return NewItemRootContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemRootContentStreamRequestBuilder when successful +func (m *ItemRootRequestBuilder) ContentStream()(*ItemRootContentStreamRequestBuilder) { + return NewItemRootContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get retrieve the metadata for a driveItem in a drive by file system path or ID. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_special_drive_item_item_request_builder.go b/drives/item_special_drive_item_item_request_builder.go index 851dcde0e1a..121066d10e0 100644 --- a/drives/item_special_drive_item_item_request_builder.go +++ b/drives/item_special_drive_item_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemSpecialDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2a func (m *ItemSpecialDriveItemItemRequestBuilder) Content()(*ItemSpecialItemContentRequestBuilder) { return NewItemSpecialItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the drive entity. +// returns a *ItemSpecialItemContentStreamRequestBuilder when successful +func (m *ItemSpecialDriveItemItemRequestBuilder) ContentStream()(*ItemSpecialItemContentStreamRequestBuilder) { + return NewItemSpecialItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/drives/item_special_item_content_request_builder.go b/drives/item_special_item_content_request_builder.go index 266f619e4bc..77e45065dd9 100644 --- a/drives/item_special_item_content_request_builder.go +++ b/drives/item_special_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSpecialItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSpecialItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemSpecialItemContentRequestBuilderGetQueryParameters get content for the navigation property special from drives type ItemSpecialItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemSpecialItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4 urlParams["request-raw-url"] = rawUrl return NewItemSpecialItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property special from drives // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSpecialItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSpecialItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemSpecialItemContentRequestBuilder) Get(ctx context.Context, requestC } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property special in drives // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSpecialItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSpecialItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemSpecialItemContentRequestBuilder) Put(ctx context.Context, body []b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property special from drives // returns a *RequestInformation when successful func (m *ItemSpecialItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSpecialItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemSpecialItemContentRequestBuilder) ToGetRequestInformation(ctx conte requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property special in drives // returns a *RequestInformation when successful func (m *ItemSpecialItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSpecialItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}/content", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_special_item_content_stream_request_builder.go b/drives/item_special_item_content_stream_request_builder.go new file mode 100644 index 00000000000..93d692a2c1b --- /dev/null +++ b/drives/item_special_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSpecialItemContentStreamRequestBuilder provides operations to manage the media for the drive entity. +type ItemSpecialItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSpecialItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSpecialItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSpecialItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSpecialItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSpecialItemContentStreamRequestBuilderInternal instantiates a new ItemSpecialItemContentStreamRequestBuilder and sets the default values. +func NewItemSpecialItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSpecialItemContentStreamRequestBuilder) { + m := &ItemSpecialItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}/contentStream", pathParameters), + } + return m +} +// NewItemSpecialItemContentStreamRequestBuilder instantiates a new ItemSpecialItemContentStreamRequestBuilder and sets the default values. +func NewItemSpecialItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSpecialItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSpecialItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSpecialItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSpecialItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSpecialItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSpecialItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSpecialItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSpecialItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSpecialItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSpecialItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSpecialItemContentStreamRequestBuilder when successful +func (m *ItemSpecialItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemSpecialItemContentStreamRequestBuilder) { + return NewItemSpecialItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/education/classes_item_assignment_settings_grading_schemes_education_grading_scheme_item_request_builder.go b/education/classes_item_assignment_settings_grading_schemes_education_grading_scheme_item_request_builder.go index 26aab877b47..a6d0918924b 100644 --- a/education/classes_item_assignment_settings_grading_schemes_education_grading_scheme_item_request_builder.go +++ b/education/classes_item_assignment_settings_grading_schemes_education_grading_scheme_item_request_builder.go @@ -18,7 +18,7 @@ type ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderGetQueryParameters get gradingSchemes from education +// ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderGetQueryParameters read the properties and relationships of an educationGradingScheme object. type ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,8 +54,11 @@ func NewClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemReq urlParams["request-raw-url"] = rawUrl return NewClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property gradingSchemes for education +// Delete delete an educationGradingScheme 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/educationgradingscheme-delete?view=graph-rest-1.0 func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -70,9 +73,12 @@ func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRe } return nil } -// Get get gradingSchemes from education +// Get read the properties and relationships of an educationGradingScheme object. // returns a EducationGradingSchemeable 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/educationgradingscheme-get?view=graph-rest-1.0 func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -110,7 +116,7 @@ func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeable), nil } -// ToDeleteRequestInformation delete navigation property gradingSchemes for education +// ToDeleteRequestInformation delete an educationGradingScheme object. // returns a *RequestInformation when successful func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}", m.BaseRequestBuilder.PathParameters) @@ -121,7 +127,7 @@ func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get gradingSchemes from education +// ToGetRequestInformation read the properties and relationships of an educationGradingScheme object. // returns a *RequestInformation when successful func (m *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesEducationGradingSchemeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/education/classes_item_assignment_settings_grading_schemes_request_builder.go b/education/classes_item_assignment_settings_grading_schemes_request_builder.go index 9eea7cf37fe..29b7c8cef43 100644 --- a/education/classes_item_assignment_settings_grading_schemes_request_builder.go +++ b/education/classes_item_assignment_settings_grading_schemes_request_builder.go @@ -11,7 +11,7 @@ import ( type ClassesItemAssignmentSettingsGradingSchemesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ClassesItemAssignmentSettingsGradingSchemesRequestBuilderGetQueryParameters get gradingSchemes from education +// ClassesItemAssignmentSettingsGradingSchemesRequestBuilderGetQueryParameters read the properties and relationships of an educationGradingScheme object. type ClassesItemAssignmentSettingsGradingSchemesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewClassesItemAssignmentSettingsGradingSchemesRequestBuilder(rawUrl string, func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) Count()(*ClassesItemAssignmentSettingsGradingSchemesCountRequestBuilder) { return NewClassesItemAssignmentSettingsGradingSchemesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get gradingSchemes from education +// Get read the properties and relationships of an educationGradingScheme object. // returns a EducationGradingSchemeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) Get(ctx context.Context, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeCollectionResponseable, error) { @@ -96,9 +96,12 @@ func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) Get(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeCollectionResponseable), nil } -// Post create new navigation property to gradingSchemes for education +// Post create a new educationGradingScheme object. // returns a EducationGradingSchemeable 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/educationgradingscheme-post?view=graph-rest-1.0 func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeable, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -116,7 +119,7 @@ func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeable), nil } -// ToGetRequestInformation get gradingSchemes from education +// ToGetRequestInformation read the properties and relationships of an educationGradingScheme object. // returns a *RequestInformation when successful func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,7 +133,7 @@ func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) ToGetRequest requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create new navigation property to gradingSchemes for education +// ToPostRequestInformation create a new educationGradingScheme object. // returns a *RequestInformation when successful func (m *ClassesItemAssignmentSettingsGradingSchemesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationGradingSchemeable, requestConfiguration *ClassesItemAssignmentSettingsGradingSchemesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes", m.BaseRequestBuilder.PathParameters) diff --git a/external/connections_item_schema_request_builder.go b/external/connections_item_schema_request_builder.go index 4465fc3491f..ef4f9ca4db5 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 the 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0 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 the 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, "{+baseurl}/external/connections/{externalConnection%2Did}/schema", 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 af959a79ce6..f42c8e845dd 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 @@ -54,11 +54,11 @@ func NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an industryDataConnector object. +// Delete delete an azureDataLakeConnector 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/industrydata-industrydataconnector-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-delete?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patc func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) SourceSystem()(*IndustryDataDataConnectorsItemSourceSystemRequestBuilder) { return NewIndustryDataDataConnectorsItemSourceSystemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete an industryDataConnector object. +// ToDeleteRequestInformation delete an azureDataLakeConnector object. // returns a *RequestInformation when successful func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/external/industryData/dataConnectors/{industryDataConnector%2Did}", 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 5b9d7a6b418..2dba0eefb0e 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 @@ -18,7 +18,7 @@ type IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFileFlow object. +// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFlow object. type IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -59,11 +59,11 @@ func NewIndustryDataInboundFlowsInboundFlowItemRequestBuilder(rawUrl string, req func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) DataConnector()(*IndustryDataInboundFlowsItemDataConnectorRequestBuilder) { return NewIndustryDataInboundFlowsItemDataConnectorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete delete an inboundFlow object. +// Delete delete an inboundFileFlow 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/industrydata-inboundflow-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-delete?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -78,12 +78,12 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx conte } return nil } -// Get read the properties and relationships of an inboundFileFlow object. +// Get read the properties and relationships of an inboundFlow 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-inboundfileflow-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-get?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -101,12 +101,12 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context. } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// Patch update the properties of an inboundFileFlow object. +// Patch update the properties of an inboundFlow 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-inboundfileflow-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-update?view=graph-rest-1.0 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 { @@ -124,7 +124,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx contex } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToDeleteRequestInformation delete an inboundFlow object. +// ToDeleteRequestInformation delete an inboundFileFlow object. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/external/industryData/inboundFlows/{inboundFlow%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. +// ToGetRequestInformation read the properties and relationships of an inboundFlow object. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an inboundFileFlow object. +// ToPatchRequestInformation update the properties of an inboundFlow 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, "{+baseurl}/external/industryData/inboundFlows/{inboundFlow%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_inbound_flows_request_builder.go b/external/industry_data_inbound_flows_request_builder.go index 84a9fbbdbf3..b9798cb666a 100644 --- a/external/industry_data_inbound_flows_request_builder.go +++ b/external/industry_data_inbound_flows_request_builder.go @@ -11,7 +11,7 @@ import ( type IndustryDataInboundFlowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFlow objects and their properties. +// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFileFlow objects and their properties. type IndustryDataInboundFlowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewIndustryDataInboundFlowsRequestBuilder(rawUrl string, requestAdapter i2a func (m *IndustryDataInboundFlowsRequestBuilder) Count()(*IndustryDataInboundFlowsCountRequestBuilder) { return NewIndustryDataInboundFlowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the inboundFlow objects and their properties. +// Get get a list of the inboundFileFlow objects and their properties. // returns a InboundFlowCollectionResponseable 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-inboundflow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-list?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *IndustryDataInboundFlowsRequestBuilder) Post(ctx context.Context, body } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToGetRequestInformation get a list of the inboundFlow objects and their properties. +// ToGetRequestInformation get a list of the inboundFileFlow objects and their properties. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/graph_base_service_client.go b/graph_base_service_client.go index a5ebc01b1ff..7d3ad2e91d1 100644 --- a/graph_base_service_client.go +++ b/graph_base_service_client.go @@ -16,6 +16,7 @@ import ( i0f747ff1f24810ff51160697ed4229c9ca192f7b84644311b88fa3b475cc340d "github.com/microsoftgraph/msgraph-beta-sdk-go/datapolicyoperations" i14752cfec59ab915e7c63922270765abf65744437d9135c191cef3986f08c3bb "github.com/microsoftgraph/msgraph-beta-sdk-go/governanceroleassignments" i15e329825c659329448e12b30278e3a09efd68996edb65e6eb37bbba528b21d7 "github.com/microsoftgraph/msgraph-beta-sdk-go/agreementacceptances" + i164b4c6703708dd1b0670a17a07a4dd64e49cb0c1cb66e50a3146217db57a57a "github.com/microsoftgraph/msgraph-beta-sdk-go/workplace" i178f0aa4e5987fcbfe2e98cbb6dd777ebcdcdf124dd3478d2bf40f83912ca030 "github.com/microsoftgraph/msgraph-beta-sdk-go/programcontrols" i19717748912ff29c95998304f534371c35864a4579ea92608b32aeecf7d18cc4 "github.com/microsoftgraph/msgraph-beta-sdk-go/messageevents" i1b84a2c37ba0bbd175c6da40c8679db7d04dfcb044d8421d26d024db45218e4a "github.com/microsoftgraph/msgraph-beta-sdk-go/schemaextensions" @@ -747,3 +748,8 @@ func (m *GraphBaseServiceClient) TrustFramework()(*i312c0a09d8ded5436957205a14ad func (m *GraphBaseServiceClient) Users()(*icd01c84a90833c55ac2309fd7034cb1962c60f59eb1ee2b2cf7b04c708402b6a.UsersRequestBuilder) { return icd01c84a90833c55ac2309fd7034cb1962c60f59eb1ee2b2cf7b04c708402b6a.NewUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Workplace provides operations to manage the workplace singleton. +// returns a *WorkplaceRequestBuilder when successful +func (m *GraphBaseServiceClient) Workplace()(*i164b4c6703708dd1b0670a17a07a4dd64e49cb0c1cb66e50a3146217db57a57a.WorkplaceRequestBuilder) { + return i164b4c6703708dd1b0670a17a07a4dd64e49cb0c1cb66e50a3146217db57a57a.NewWorkplaceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/graph_request_adapter.go b/graph_request_adapter.go index 1251b78e776..a1191430df7 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.97.0", + GraphServiceLibraryVersion: "0.98.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -85,3 +85,4 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/group_item_request_builder.go b/groups/group_item_request_builder.go index 2d4dd759148..a31a1694036 100644 --- a/groups/group_item_request_builder.go +++ b/groups/group_item_request_builder.go @@ -128,6 +128,11 @@ func (m *GroupItemRequestBuilder) Delete(ctx context.Context, requestConfigurati } return nil } +// DeletePasswordSingleSignOnCredentials provides operations to call the deletePasswordSingleSignOnCredentials method. +// returns a *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder when successful +func (m *GroupItemRequestBuilder) DeletePasswordSingleSignOnCredentials()(*ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) { + return NewItemDeletePasswordSingleSignOnCredentialsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Drive provides operations to manage the drive property of the microsoft.graph.group entity. // returns a *ItemDriveRequestBuilder when successful func (m *GroupItemRequestBuilder) Drive()(*ItemDriveRequestBuilder) { @@ -191,6 +196,11 @@ func (m *GroupItemRequestBuilder) GetMemberGroups()(*ItemGetMemberGroupsRequestB func (m *GroupItemRequestBuilder) GetMemberObjects()(*ItemGetMemberObjectsRequestBuilder) { return NewItemGetMemberObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetPasswordSingleSignOnCredentials provides operations to call the getPasswordSingleSignOnCredentials method. +// returns a *ItemGetPasswordSingleSignOnCredentialsRequestBuilder when successful +func (m *GroupItemRequestBuilder) GetPasswordSingleSignOnCredentials()(*ItemGetPasswordSingleSignOnCredentialsRequestBuilder) { + return NewItemGetPasswordSingleSignOnCredentialsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GroupLifecyclePolicies provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity. // returns a *ItemGroupLifecyclePoliciesRequestBuilder when successful func (m *GroupItemRequestBuilder) GroupLifecyclePolicies()(*ItemGroupLifecyclePoliciesRequestBuilder) { @@ -221,12 +231,12 @@ func (m *GroupItemRequestBuilder) Onenote()(*ItemOnenoteRequestBuilder) { func (m *GroupItemRequestBuilder) Owners()(*ItemOwnersRequestBuilder) { return NewItemOwnersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a group object. +// Patch 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 thethe 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. 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0 func (m *GroupItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -349,7 +359,7 @@ func (m *GroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, r requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a group object. +// ToPatchRequestInformation 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 thethe 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. 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 *GroupItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/groups_request_builder.go b/groups/groups_request_builder.go index 6e0d5b258a9..5589ef4b26e 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 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. +// 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 thethe 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. 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-post-groups?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0 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 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. +// 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 thethe 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. 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, "{+baseurl}/groups", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_item_threads_item_reply_request_builder.go b/groups/item_conversations_item_threads_item_reply_request_builder.go index 23b30a5dcaa..7cb8a489bbf 100644 --- a/groups/item_conversations_item_threads_item_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_reply_request_builder.go @@ -30,11 +30,11 @@ func NewItemConversationsItemThreadsItemReplyRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// 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 reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. // returns a ODataError error 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) Post(ctx context.C } return 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 reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. // returns a *RequestInformation when successful func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index 9f4e30cf54d..fd92ca8e78c 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -97,12 +97,12 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationCollectionResponseable), nil } -// Post create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. +// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a Conversationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemConversationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -134,7 +134,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. +// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/conversations", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_delete_password_single_sign_on_credentials_post_request_body.go b/groups/item_delete_password_single_sign_on_credentials_post_request_body.go new file mode 100644 index 00000000000..bc2797886e1 --- /dev/null +++ b/groups/item_delete_password_single_sign_on_credentials_post_request_body.go @@ -0,0 +1,113 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemDeletePasswordSingleSignOnCredentialsPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemDeletePasswordSingleSignOnCredentialsPostRequestBody instantiates a new ItemDeletePasswordSingleSignOnCredentialsPostRequestBody and sets the default values. +func NewItemDeletePasswordSingleSignOnCredentialsPostRequestBody()(*ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) { + m := &ItemDeletePasswordSingleSignOnCredentialsPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemDeletePasswordSingleSignOnCredentialsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemDeletePasswordSingleSignOnCredentialsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemDeletePasswordSingleSignOnCredentialsPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +// returns a *string when successful +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) GetId()(*string) { + val, err := m.GetBackingStore().Get("id") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetId sets the id property value. The id property +func (m *ItemDeletePasswordSingleSignOnCredentialsPostRequestBody) SetId(value *string)() { + err := m.GetBackingStore().Set("id", value) + if err != nil { + panic(err) + } +} +type ItemDeletePasswordSingleSignOnCredentialsPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetId()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetId(value *string)() +} diff --git a/groups/item_delete_password_single_sign_on_credentials_request_builder.go b/groups/item_delete_password_single_sign_on_credentials_request_builder.go new file mode 100644 index 00000000000..808cf23b832 --- /dev/null +++ b/groups/item_delete_password_single_sign_on_credentials_request_builder.go @@ -0,0 +1,68 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDeletePasswordSingleSignOnCredentialsRequestBuilder provides operations to call the deletePasswordSingleSignOnCredentials method. +type ItemDeletePasswordSingleSignOnCredentialsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDeletePasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDeletePasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemDeletePasswordSingleSignOnCredentialsRequestBuilderInternal instantiates a new ItemDeletePasswordSingleSignOnCredentialsRequestBuilder and sets the default values. +func NewItemDeletePasswordSingleSignOnCredentialsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) { + m := &ItemDeletePasswordSingleSignOnCredentialsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/deletePasswordSingleSignOnCredentials", pathParameters), + } + return m +} +// NewItemDeletePasswordSingleSignOnCredentialsRequestBuilder instantiates a new ItemDeletePasswordSingleSignOnCredentialsRequestBuilder and sets the default values. +func NewItemDeletePasswordSingleSignOnCredentialsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDeletePasswordSingleSignOnCredentialsRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action deletePasswordSingleSignOnCredentials +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) Post(ctx context.Context, body ItemDeletePasswordSingleSignOnCredentialsPostRequestBodyable, requestConfiguration *ItemDeletePasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration)(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 deletePasswordSingleSignOnCredentials +// 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) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder when successful +func (m *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) WithUrl(rawUrl string)(*ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) { + return NewItemDeletePasswordSingleSignOnCredentialsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_sites_item_sites_remove_post_response.go b/groups/item_get_password_single_sign_on_credentials_post_response.go similarity index 56% rename from groups/item_sites_item_sites_remove_post_response.go rename to groups/item_get_password_single_sign_on_credentials_post_response.go index 16f5647813e..2d89dd03a1b 100644 --- a/groups/item_sites_item_sites_remove_post_response.go +++ b/groups/item_get_password_single_sign_on_credentials_post_response.go @@ -5,35 +5,35 @@ import ( ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ) -type ItemSitesItemSitesRemovePostResponse struct { +type ItemGetPasswordSingleSignOnCredentialsPostResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewItemSitesItemSitesRemovePostResponse instantiates a new ItemSitesItemSitesRemovePostResponse and sets the default values. -func NewItemSitesItemSitesRemovePostResponse()(*ItemSitesItemSitesRemovePostResponse) { - m := &ItemSitesItemSitesRemovePostResponse{ +// NewItemGetPasswordSingleSignOnCredentialsPostResponse instantiates a new ItemGetPasswordSingleSignOnCredentialsPostResponse and sets the default values. +func NewItemGetPasswordSingleSignOnCredentialsPostResponse()(*ItemGetPasswordSingleSignOnCredentialsPostResponse) { + m := &ItemGetPasswordSingleSignOnCredentialsPostResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateItemSitesItemSitesRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateItemGetPasswordSingleSignOnCredentialsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesItemSitesRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesItemSitesRemovePostResponse(), nil +func CreateItemGetPasswordSingleSignOnCredentialsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemGetPasswordSingleSignOnCredentialsPostResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesItemSitesRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ItemGetPasswordSingleSignOnCredentialsPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePasswordSingleSignOnCredentialSetFromDiscriminatorValue) if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable) } } m.SetValue(res) @@ -43,19 +43,19 @@ func (m *ItemSitesItemSitesRemovePostResponse) GetFieldDeserializers()(map[strin return res } // GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesItemSitesRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { +// returns a []PasswordSingleSignOnCredentialSetable when successful +func (m *ItemGetPasswordSingleSignOnCredentialsPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable) } return nil } // Serialize serializes information the current object -func (m *ItemSitesItemSitesRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ItemGetPasswordSingleSignOnCredentialsPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -75,15 +75,15 @@ func (m *ItemSitesItemSitesRemovePostResponse) Serialize(writer i878a80d2330e89d return nil } // SetValue sets the value property value. The value property -func (m *ItemSitesItemSitesRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { +func (m *ItemGetPasswordSingleSignOnCredentialsPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ItemSitesItemSitesRemovePostResponseable interface { +type ItemGetPasswordSingleSignOnCredentialsPostResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordSingleSignOnCredentialSetable)() } diff --git a/groups/item_get_password_single_sign_on_credentials_request_builder.go b/groups/item_get_password_single_sign_on_credentials_request_builder.go new file mode 100644 index 00000000000..bb7ee94b9c5 --- /dev/null +++ b/groups/item_get_password_single_sign_on_credentials_request_builder.go @@ -0,0 +1,89 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemGetPasswordSingleSignOnCredentialsRequestBuilder provides operations to call the getPasswordSingleSignOnCredentials method. +type ItemGetPasswordSingleSignOnCredentialsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemGetPasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemGetPasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemGetPasswordSingleSignOnCredentialsRequestBuilderInternal instantiates a new ItemGetPasswordSingleSignOnCredentialsRequestBuilder and sets the default values. +func NewItemGetPasswordSingleSignOnCredentialsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetPasswordSingleSignOnCredentialsRequestBuilder) { + m := &ItemGetPasswordSingleSignOnCredentialsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/getPasswordSingleSignOnCredentials", pathParameters), + } + return m +} +// NewItemGetPasswordSingleSignOnCredentialsRequestBuilder instantiates a new ItemGetPasswordSingleSignOnCredentialsRequestBuilder and sets the default values. +func NewItemGetPasswordSingleSignOnCredentialsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetPasswordSingleSignOnCredentialsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemGetPasswordSingleSignOnCredentialsRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action getPasswordSingleSignOnCredentials +// Deprecated: This method is obsolete. Use PostAsGetPasswordSingleSignOnCredentialsPostResponse instead. +// returns a ItemGetPasswordSingleSignOnCredentialsResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemGetPasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration)(ItemGetPasswordSingleSignOnCredentialsResponseable, 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, CreateItemGetPasswordSingleSignOnCredentialsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemGetPasswordSingleSignOnCredentialsResponseable), nil +} +// PostAsGetPasswordSingleSignOnCredentialsPostResponse invoke action getPasswordSingleSignOnCredentials +// returns a ItemGetPasswordSingleSignOnCredentialsPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) PostAsGetPasswordSingleSignOnCredentialsPostResponse(ctx context.Context, requestConfiguration *ItemGetPasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration)(ItemGetPasswordSingleSignOnCredentialsPostResponseable, 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, CreateItemGetPasswordSingleSignOnCredentialsPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemGetPasswordSingleSignOnCredentialsPostResponseable), nil +} +// ToPostRequestInformation invoke action getPasswordSingleSignOnCredentials +// 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) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemGetPasswordSingleSignOnCredentialsRequestBuilder when successful +func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) WithUrl(rawUrl string)(*ItemGetPasswordSingleSignOnCredentialsRequestBuilder) { + return NewItemGetPasswordSingleSignOnCredentialsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_get_password_single_sign_on_credentials_response.go b/groups/item_get_password_single_sign_on_credentials_response.go new file mode 100644 index 00000000000..56c6a8e39e8 --- /dev/null +++ b/groups/item_get_password_single_sign_on_credentials_response.go @@ -0,0 +1,27 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemGetPasswordSingleSignOnCredentialsPostResponseable instead. +type ItemGetPasswordSingleSignOnCredentialsResponse struct { + ItemGetPasswordSingleSignOnCredentialsPostResponse +} +// NewItemGetPasswordSingleSignOnCredentialsResponse instantiates a new ItemGetPasswordSingleSignOnCredentialsResponse and sets the default values. +func NewItemGetPasswordSingleSignOnCredentialsResponse()(*ItemGetPasswordSingleSignOnCredentialsResponse) { + m := &ItemGetPasswordSingleSignOnCredentialsResponse{ + ItemGetPasswordSingleSignOnCredentialsPostResponse: *NewItemGetPasswordSingleSignOnCredentialsPostResponse(), + } + return m +} +// CreateItemGetPasswordSingleSignOnCredentialsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemGetPasswordSingleSignOnCredentialsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemGetPasswordSingleSignOnCredentialsResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemGetPasswordSingleSignOnCredentialsPostResponseable instead. +type ItemGetPasswordSingleSignOnCredentialsResponseable interface { + ItemGetPasswordSingleSignOnCredentialsPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_photo_request_builder.go b/groups/item_photo_request_builder.go index bec44c3e191..f9a6ebccd80 100644 --- a/groups/item_photo_request_builder.go +++ b/groups/item_photo_request_builder.go @@ -11,6 +11,13 @@ import ( type ItemPhotoRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } +// ItemPhotoRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPhotoRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} // ItemPhotoRequestBuilderGetQueryParameters the group's profile photo. type ItemPhotoRequestBuilderGetQueryParameters struct { // Select properties to be returned @@ -50,6 +57,22 @@ func NewItemPhotoRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2633 func (m *ItemPhotoRequestBuilder) Content()(*ItemPhotoValueContentRequestBuilder) { return NewItemPhotoValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Delete delete navigation property photo for groups +// 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); + 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 group's profile photo. // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -90,6 +113,17 @@ func (m *ItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } +// ToDeleteRequestInformation delete navigation property photo for groups +// returns a *RequestInformation when successful +func (m *ItemPhotoRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/groups/{group%2Did}/photo", 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 group's profile photo. // returns a *RequestInformation when successful func (m *ItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go b/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go index d223494fe90..f3ffbcb0503 100644 --- a/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go +++ b/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from groups type ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConten urlParams["request-raw-url"] = rawUrl return NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from groups // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConte } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in groups // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from groups // returns a *RequestInformation when successful func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemConte requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in groups // returns a *RequestInformation when successful func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go b/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..eb35d06b5b3 --- /dev/null +++ b/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the group entity. +type ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go b/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go index 24bea3ce599..70fdd3877a6 100644 --- a/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go +++ b/groups/item_sites_item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemReques func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the group entity. +// returns a *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemSitesItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get exposes the driveItem that was the target of this activity. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/groups/item_sites_item_analytics_request_builder.go b/groups/item_sites_item_analytics_request_builder.go index d0648241ccf..2fba35385ea 100644 --- a/groups/item_sites_item_analytics_request_builder.go +++ b/groups/item_sites_item_analytics_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemAnalyticsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site. +// ItemSitesItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. type ItemSitesItemAnalyticsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemSitesItemAnalyticsRequestBuilder) Delete(ctx context.Context, reque } return nil } -// Get analytics about the view activities that took place in this site. +// Get analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemAnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAnalyticsable, error) { @@ -136,7 +136,7 @@ func (m *ItemSitesItemAnalyticsRequestBuilder) ToDeleteRequestInformation(ctx co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation analytics about the view activities that took place in this site. +// ToGetRequestInformation analytics about the view activities that took place on this site. // returns a *RequestInformation when successful func (m *ItemSitesItemAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_columns_request_builder.go b/groups/item_sites_item_columns_request_builder.go index a4c7aa59677..c90a542aaad 100644 --- a/groups/item_sites_item_columns_request_builder.go +++ b/groups/item_sites_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ItemSitesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. type ItemSitesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ItemSitesItemColumnsRequestBuilder) Count()(*ItemSitesItemColumnsCountRequestBuilder) { return NewItemSitesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// Get the collection of column definitions reusable across lists under this site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemSitesItemColumnsRequestBuilder) Get(ctx context.Context, requestCon } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a site // returns a ColumnDefinitionable 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 *ItemSitesItemColumnsRequestBuilder) Post(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ToGetRequestInformation the collection of column definitions reusable across lists under this site. // returns a *RequestInformation when successful func (m *ItemSitesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemSitesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a site // returns a *RequestInformation when successful func (m *ItemSitesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_add_copy_request_builder.go b/groups/item_sites_item_content_types_add_copy_request_builder.go index 36953c9cb99..8daa6cc77cb 100644 --- a/groups/item_sites_item_content_types_add_copy_request_builder.go +++ b/groups/item_sites_item_content_types_add_copy_request_builder.go @@ -31,7 +31,7 @@ func NewItemSitesItemContentTypesAddCopyRequestBuilder(rawUrl string, requestAda urlParams["request-raw-url"] = rawUrl return NewItemSitesItemContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) } -// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// Post invoke action addCopy // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemSitesItemContentTypesAddCopyRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToPostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// ToPostRequestInformation invoke action addCopy // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemSitesItemContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_content_type_item_request_builder.go b/groups/item_sites_item_content_types_content_type_item_request_builder.go index 20211ce3c6c..c52c1ca5646 100644 --- a/groups/item_sites_item_content_types_content_type_item_request_builder.go +++ b/groups/item_sites_item_content_types_content_type_item_request_builder.go @@ -136,7 +136,7 @@ func (m *ItemSitesItemContentTypesContentTypeItemRequestBuilder) Get(ctx context func (m *ItemSitesItemContentTypesContentTypeItemRequestBuilder) IsPublished()(*ItemSitesItemContentTypesItemIsPublishedRequestBuilder) { return NewItemSitesItemContentTypesItemIsPublishedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update a [content type][contentType]. +// Patch update contentType // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -189,7 +189,7 @@ func (m *ItemSitesItemContentTypesContentTypeItemRequestBuilder) ToGetRequestInf requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [content type][contentType]. +// ToPatchRequestInformation update contentType // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesContentTypeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable, requestConfiguration *ItemSitesItemContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_associate_with_hub_sites_request_builder.go b/groups/item_sites_item_content_types_item_associate_with_hub_sites_request_builder.go index 755496477c5..6dd5c1a6f73 100644 --- a/groups/item_sites_item_content_types_item_associate_with_hub_sites_request_builder.go +++ b/groups/item_sites_item_content_types_item_associate_with_hub_sites_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemSitesItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) } -// Post associate a [content type][contentType] with a list of hub sites. +// Post invoke action associateWithHubSites // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesRequestBuilder) Post( } return nil } -// ToPostRequestInformation associate a [content type][contentType] with a list of hub sites. +// ToPostRequestInformation invoke action associateWithHubSites // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemSitesItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_column_links_column_link_item_request_builder.go b/groups/item_sites_item_content_types_item_column_links_column_link_item_request_builder.go index 143d0e723a2..f9c3e095cf3 100644 --- a/groups/item_sites_item_content_types_item_column_links_column_link_item_request_builder.go +++ b/groups/item_sites_item_content_types_item_column_links_column_link_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) D } return nil } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable, error) { @@ -121,7 +121,7 @@ func (m *ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_column_links_request_builder.go b/groups/item_sites_item_content_types_item_column_links_request_builder.go index bad098f7fbd..a2e9dd224f9 100644 --- a/groups/item_sites_item_content_types_item_column_links_request_builder.go +++ b/groups/item_sites_item_content_types_item_column_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemContentTypesItemColumnLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemSitesItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemSitesItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemContentTypesItemColumnLinksRequestBuilder(rawUrl string, re func (m *ItemSitesItemContentTypesItemColumnLinksRequestBuilder) Count()(*ItemSitesItemContentTypesItemColumnLinksCountRequestBuilder) { return NewItemSitesItemContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemSitesItemContentTypesItemColumnLinksRequestBuilder) Post(ctx contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable), nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_columns_column_definition_item_request_builder.go b/groups/item_sites_item_content_types_item_columns_column_definition_item_request_builder.go index ba924d75d63..b717be397a0 100644 --- a/groups/item_sites_item_content_types_item_columns_column_definition_item_request_builder.go +++ b/groups/item_sites_item_content_types_item_columns_column_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. type ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,7 @@ func NewItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// Delete delete columnDefinition // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -73,7 +73,7 @@ func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) } return nil } -// Get retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// Get retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -96,7 +96,7 @@ func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// Patch update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// Patch update columnDefinition // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemSitesItemContentTypesItemColumnsItemSourceColumnRequestBuilder) { return NewItemSitesItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// ToDeleteRequestInformation delete columnDefinition // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ToGetRequestInformation retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// ToPatchRequestInformation update columnDefinition // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_columns_request_builder.go b/groups/item_sites_item_content_types_item_columns_request_builder.go index c22770a0e53..fd2b7a2b33b 100644 --- a/groups/item_sites_item_content_types_item_columns_request_builder.go +++ b/groups/item_sites_item_content_types_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemContentTypesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ItemSitesItemContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. type ItemSitesItemContentTypesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemContentTypesItemColumnsRequestBuilder(rawUrl string, reques func (m *ItemSitesItemContentTypesItemColumnsRequestBuilder) Count()(*ItemSitesItemContentTypesItemColumnsCountRequestBuilder) { return NewItemSitesItemContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// Get the collection of column definitions for this content type. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemSitesItemContentTypesItemColumnsRequestBuilder) Get(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a content type // returns a ColumnDefinitionable 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 *ItemSitesItemContentTypesItemColumnsRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ToGetRequestInformation the collection of column definitions for this content type. // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemSitesItemContentTypesItemColumnsRequestBuilder) ToGetRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a content type // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_copy_to_default_content_location_request_builder.go b/groups/item_sites_item_content_types_item_copy_to_default_content_location_request_builder.go index 3e426488b70..b32ca89d635 100644 --- a/groups/item_sites_item_content_types_item_copy_to_default_content_location_request_builder.go +++ b/groups/item_sites_item_content_types_item_copy_to_default_content_location_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemContentTypesItemCopyToDefaultContentLocationRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewItemSitesItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) } -// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// Post invoke action copyToDefaultContentLocation // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationRequestBuilder } return nil } -// ToPostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// ToPostRequestInformation invoke action copyToDefaultContentLocation // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemSitesItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_publish_request_builder.go b/groups/item_sites_item_content_types_item_publish_request_builder.go index 8ae93be2ee4..080b94e6362 100644 --- a/groups/item_sites_item_content_types_item_publish_request_builder.go +++ b/groups/item_sites_item_content_types_item_publish_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemContentTypesItemPublishRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewItemSitesItemContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post publishes a [contentType][] present in a content type hub site. +// Post invoke action publish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemContentTypesItemPublishRequestBuilder) Post(ctx context.Co } return nil } -// ToPostRequestInformation publishes a [contentType][] present in a content type hub site. +// ToPostRequestInformation invoke action publish // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_item_unpublish_request_builder.go b/groups/item_sites_item_content_types_item_unpublish_request_builder.go index 935eb6e1c76..92f4d5007d3 100644 --- a/groups/item_sites_item_content_types_item_unpublish_request_builder.go +++ b/groups/item_sites_item_content_types_item_unpublish_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemContentTypesItemUnpublishRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewItemSitesItemContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post unpublish a [contentType][] from a content type hub site. +// Post invoke action unpublish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemContentTypesItemUnpublishRequestBuilder) Post(ctx context. } return nil } -// ToPostRequestInformation unpublish a [contentType][] from a content type hub site. +// ToPostRequestInformation invoke action unpublish // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_content_types_request_builder.go b/groups/item_sites_item_content_types_request_builder.go index b2e57e0b667..49432f48100 100644 --- a/groups/item_sites_item_content_types_request_builder.go +++ b/groups/item_sites_item_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][]. +// ItemSitesItemContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. type ItemSitesItemContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemSitesItemContentTypesRequestBuilder(rawUrl string, requestAdapter i2 func (m *ItemSitesItemContentTypesRequestBuilder) Count()(*ItemSitesItemContentTypesCountRequestBuilder) { return NewItemSitesItemContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [site][]. +// Get the collection of content types defined for this site. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -137,7 +137,7 @@ func (m *ItemSitesItemContentTypesRequestBuilder) Post(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [site][]. +// ToGetRequestInformation the collection of content types defined for this site. // returns a *RequestInformation when successful func (m *ItemSitesItemContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_external_columns_column_definition_item_request_builder.go b/groups/item_sites_item_external_columns_column_definition_item_request_builder.go index c10406bb56a..df5009dac14 100644 --- a/groups/item_sites_item_external_columns_column_definition_item_request_builder.go +++ b/groups/item_sites_item_external_columns_column_definition_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_external_columns_request_builder.go b/groups/item_sites_item_external_columns_request_builder.go index 958c9ff1c75..ed9309e1bd1 100644 --- a/groups/item_sites_item_external_columns_request_builder.go +++ b/groups/item_sites_item_external_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemExternalColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemSitesItemExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemSitesItemExternalColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemSitesItemExternalColumnsRequestBuilder(rawUrl string, requestAdapter func (m *ItemSitesItemExternalColumnsRequestBuilder) Count()(*ItemSitesItemExternalColumnsCountRequestBuilder) { return NewItemSitesItemExternalColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemExternalColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable, error) { @@ -89,7 +89,7 @@ func (m *ItemSitesItemExternalColumnsRequestBuilder) Get(ctx context.Context, re } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemSitesItemExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_analytics_request_builder.go b/groups/item_sites_item_get_by_path_with_path_analytics_request_builder.go index 354ea6ecd7e..abb33c76c8b 100644 --- a/groups/item_sites_item_get_by_path_with_path_analytics_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_analytics_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemGetByPathWithPathAnalyticsRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemGetByPathWithPathAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site. +// ItemSitesItemGetByPathWithPathAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. type ItemSitesItemGetByPathWithPathAnalyticsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemSitesItemGetByPathWithPathAnalyticsRequestBuilder) Delete(ctx conte } return nil } -// Get analytics about the view activities that took place in this site. +// Get analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathAnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAnalyticsable, error) { @@ -121,7 +121,7 @@ func (m *ItemSitesItemGetByPathWithPathAnalyticsRequestBuilder) ToDeleteRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation analytics about the view activities that took place in this site. +// ToGetRequestInformation analytics about the view activities that took place on this site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_columns_request_builder.go b/groups/item_sites_item_get_by_path_with_path_columns_request_builder.go index e8af9e7544d..58fe859024b 100644 --- a/groups/item_sites_item_get_by_path_with_path_columns_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ItemSitesItemGetByPathWithPathColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. type ItemSitesItemGetByPathWithPathColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemSitesItemGetByPathWithPathColumnsRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// Get the collection of column definitions reusable across lists under this site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -82,7 +82,7 @@ func (m *ItemSitesItemGetByPathWithPathColumnsRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a site // returns a ColumnDefinitionable 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 *ItemSitesItemGetByPathWithPathColumnsRequestBuilder) Post(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ToGetRequestInformation the collection of column definitions reusable across lists under this site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,7 +119,7 @@ func (m *ItemSitesItemGetByPathWithPathColumnsRequestBuilder) ToGetRequestInform requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a site // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemGetByPathWithPathColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/columns", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_content_types_request_builder.go b/groups/item_sites_item_get_by_path_with_path_content_types_request_builder.go index 31ddcfde4ca..65b35c7fc06 100644 --- a/groups/item_sites_item_get_by_path_with_path_content_types_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][]. +// ItemSitesItemGetByPathWithPathContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. type ItemSitesItemGetByPathWithPathContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemSitesItemGetByPathWithPathContentTypesRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathContentTypesRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [site][]. +// Get the collection of content types defined for this site. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *ItemSitesItemGetByPathWithPathContentTypesRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [site][]. +// ToGetRequestInformation the collection of content types defined for this site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_external_columns_request_builder.go b/groups/item_sites_item_get_by_path_with_path_external_columns_request_builder.go index 807c2a6a0c5..b6172f37986 100644 --- a/groups/item_sites_item_get_by_path_with_path_external_columns_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_external_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemSitesItemGetByPathWithPathExternalColumnsRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathExternalColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go index aa8d9b25c77..8b70ac874d2 100644 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDele // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site. +// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder } return nil } -// Get analytics about the view activities that took place in this site. +// Get analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAnalyticsable, error) { @@ -121,7 +121,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation analytics about the view activities that took place in this site. +// ToGetRequestInformation analytics about the view activities that took place on this site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go index 1caf126fbf9..63a1ccecd3c 100644 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. type ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// Get the collection of column definitions reusable across lists under this site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -82,7 +82,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a site // returns a ColumnDefinitionable 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 *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ToGetRequestInformation the collection of column definitions reusable across lists under this site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,7 +119,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a site // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go index 2c075a15a20..53fda22013a 100644 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][]. +// ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. type ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuild urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [site][]. +// Get the collection of content types defined for this site. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [site][]. +// ToGetRequestInformation the collection of content types defined for this site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go index 3b36c0a0246..5b688df3c14 100644 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBu urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go index c8b9ddeaa47..1ba90480dcf 100644 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(urlParams, requestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) Ge } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_items_request_builder.go b/groups/item_sites_item_get_by_path_with_path_items_request_builder.go index 56f61e06cdf..d9c34860ad7 100644 --- a/groups/item_sites_item_get_by_path_with_path_items_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemGetByPathWithPathItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemGetByPathWithPathItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemSitesItemGetByPathWithPathItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemSitesItemGetByPathWithPathItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemSitesItemGetByPathWithPathItemsRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemSitesItemGetByPathWithPathItemsRequestBuilderInternal(urlParams, requestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemSitesItemGetByPathWithPathItemsRequestBuilder) Get(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_items_base_item_item_request_builder.go b/groups/item_sites_item_items_base_item_item_request_builder.go index b2258c0a69e..2a23373fcf4 100644 --- a/groups/item_sites_item_items_base_item_item_request_builder.go +++ b/groups/item_sites_item_items_base_item_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemItemsBaseItemItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemItemsBaseItemItemRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemSitesItemItemsBaseItemItemRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemSitesItemItemsBaseItemItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemSitesItemItemsBaseItemItemRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemSitesItemItemsBaseItemItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemItemsBaseItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemItemsBaseItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemable, error) { @@ -60,7 +60,7 @@ func (m *ItemSitesItemItemsBaseItemItemRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemSitesItemItemsBaseItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemItemsBaseItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_items_request_builder.go b/groups/item_sites_item_items_request_builder.go index 9007a18131e..0fbaa77eaa4 100644 --- a/groups/item_sites_item_items_request_builder.go +++ b/groups/item_sites_item_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemSitesItemItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemSitesItemItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemSitesItemItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ItemSitesItemItemsRequestBuilder) Count()(*ItemSitesItemItemsCountRequestBuilder) { return NewItemSitesItemItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable, error) { @@ -89,7 +89,7 @@ func (m *ItemSitesItemItemsRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemSitesItemItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_columns_request_builder.go b/groups/item_sites_item_lists_item_columns_request_builder.go index 7034ff70ca5..fb1db685940 100644 --- a/groups/item_sites_item_lists_item_columns_request_builder.go +++ b/groups/item_sites_item_lists_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemListsItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemListsItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ItemSitesItemListsItemColumnsRequestBuilderGetQueryParameters the collection of field definitions for this list. type ItemSitesItemListsItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemListsItemColumnsRequestBuilder(rawUrl string, requestAdapte func (m *ItemSitesItemListsItemColumnsRequestBuilder) Count()(*ItemSitesItemListsItemColumnsCountRequestBuilder) { return NewItemSitesItemListsItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// Get the collection of field definitions for this list. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemSitesItemListsItemColumnsRequestBuilder) Get(ctx context.Context, r } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// Post create columnDefinition // returns a ColumnDefinitionable 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 *ItemSitesItemListsItemColumnsRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ToGetRequestInformation the collection of field definitions for this list. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemSitesItemListsItemColumnsRequestBuilder) ToGetRequestInformation(ct requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemListsItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_add_copy_request_builder.go b/groups/item_sites_item_lists_item_content_types_add_copy_request_builder.go index 7df4ba8ce17..70487689e3e 100644 --- a/groups/item_sites_item_lists_item_content_types_add_copy_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_add_copy_request_builder.go @@ -31,7 +31,7 @@ func NewItemSitesItemListsItemContentTypesAddCopyRequestBuilder(rawUrl string, r urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) } -// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// Post invoke action addCopy // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemSitesItemListsItemContentTypesAddCopyRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToPostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// ToPostRequestInformation invoke action addCopy // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemListsItemContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemSitesItemListsItemContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go index 68631b426b8..87f4af71941 100644 --- a/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilde urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) } -// Post associate a [content type][contentType] with a list of hub sites. +// Post invoke action associateWithHubSites // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesRequestBuild } return nil } -// ToPostRequestInformation associate a [content type][contentType] with a list of hub sites. +// ToPostRequestInformation invoke action associateWithHubSites // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_column_links_column_link_item_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_column_links_column_link_item_request_builder.go index 61d84a509f7..06e63f0d8ac 100644 --- a/groups/item_sites_item_lists_item_content_types_item_column_links_column_link_item_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_column_links_column_link_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestB } return nil } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable, error) { @@ -121,7 +121,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_column_links_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_column_links_request_builder.go index 06f832a1f70..1a4ca945a6c 100644 --- a/groups/item_sites_item_lists_item_content_types_item_column_links_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_column_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilder(rawUrl s func (m *ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilder) Count()(*ItemSitesItemListsItemContentTypesItemColumnLinksCountRequestBuilder) { return NewItemSitesItemListsItemContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilder) Post(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable), nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_columns_column_definition_item_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_columns_column_definition_item_request_builder.go index 706768cb302..4046990cad2 100644 --- a/groups/item_sites_item_lists_item_content_types_item_columns_column_definition_item_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_columns_column_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. type ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,7 @@ func NewItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequest urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// Delete delete columnDefinition // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -73,7 +73,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemReques } return nil } -// Get retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// Get retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -96,7 +96,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemReques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// Patch update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// Patch update columnDefinition // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemReques func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemSitesItemListsItemContentTypesItemColumnsItemSourceColumnRequestBuilder) { return NewItemSitesItemListsItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// ToDeleteRequestInformation delete columnDefinition // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ToGetRequestInformation retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// ToPatchRequestInformation update columnDefinition // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_columns_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_columns_request_builder.go index 936e8b75343..209d0475c9c 100644 --- a/groups/item_sites_item_lists_item_content_types_item_columns_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemListsItemContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ItemSitesItemListsItemContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. type ItemSitesItemListsItemContentTypesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemListsItemContentTypesItemColumnsRequestBuilder(rawUrl strin func (m *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder) Count()(*ItemSitesItemListsItemContentTypesItemColumnsCountRequestBuilder) { return NewItemSitesItemListsItemContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// Get the collection of column definitions for this content type. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a content type // returns a ColumnDefinitionable 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 *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ToGetRequestInformation the collection of column definitions for this content type. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder) ToGetReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a content type // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemSitesItemListsItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go index 40883b2f493..3d1b2afb8ff 100644 --- a/groups/item_sites_item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationReques urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) } -// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// Post invoke action copyToDefaultContentLocation // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationReque } return nil } -// ToPostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// ToPostRequestInformation invoke action copyToDefaultContentLocation // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_publish_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_publish_request_builder.go index a6075d516e8..87a5e128ffb 100644 --- a/groups/item_sites_item_lists_item_content_types_item_publish_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_publish_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemListsItemContentTypesItemPublishRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post publishes a [contentType][] present in a content type hub site. +// Post invoke action publish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemListsItemContentTypesItemPublishRequestBuilder) Post(ctx c } return nil } -// ToPostRequestInformation publishes a [contentType][] present in a content type hub site. +// ToPostRequestInformation invoke action publish // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_item_unpublish_request_builder.go b/groups/item_sites_item_lists_item_content_types_item_unpublish_request_builder.go index 5c4a7605647..ab8840a1b81 100644 --- a/groups/item_sites_item_lists_item_content_types_item_unpublish_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_item_unpublish_request_builder.go @@ -30,7 +30,7 @@ func NewItemSitesItemListsItemContentTypesItemUnpublishRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post unpublish a [contentType][] from a content type hub site. +// Post invoke action unpublish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemSitesItemListsItemContentTypesItemUnpublishRequestBuilder) Post(ctx } return nil } -// ToPostRequestInformation unpublish a [contentType][] from a content type hub site. +// ToPostRequestInformation invoke action unpublish // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_content_types_request_builder.go b/groups/item_sites_item_lists_item_content_types_request_builder.go index 7779a6e20c0..6bce13975ec 100644 --- a/groups/item_sites_item_lists_item_content_types_request_builder.go +++ b/groups/item_sites_item_lists_item_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemListsItemContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemListsItemContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [list][]. +// ItemSitesItemListsItemContentTypesRequestBuilderGetQueryParameters the collection of content types present in this list. type ItemSitesItemListsItemContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemSitesItemListsItemContentTypesRequestBuilder(rawUrl string, requestA func (m *ItemSitesItemListsItemContentTypesRequestBuilder) Count()(*ItemSitesItemListsItemContentTypesCountRequestBuilder) { return NewItemSitesItemListsItemContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [list][]. +// Get the collection of content types present in this list. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -134,7 +134,7 @@ func (m *ItemSitesItemListsItemContentTypesRequestBuilder) Post(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [list][]. +// ToGetRequestInformation the collection of content types present in this list. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_request_builder.go b/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_request_builder.go index a84beddeca5..05cb0256334 100644 --- a/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from groups type ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuil urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from groups // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBui } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in groups // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from groups // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBui requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in groups // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_stream_request_builder.go b/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..209178a6742 --- /dev/null +++ b/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the group entity. +type ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_request_builder.go b/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_request_builder.go index 18bfd79887c..244aa68d2a5 100644 --- a/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemRequestBuilder(raw func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the group entity. +// returns a *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemSitesItemListsItemItemsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemSitesItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get driveItem from groups // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/groups/item_sites_item_lists_item_items_item_create_link_request_builder.go b/groups/item_sites_item_lists_item_items_item_create_link_request_builder.go index 585e0aea426..f0cb10f68d2 100644 --- a/groups/item_sites_item_lists_item_items_item_create_link_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_create_link_request_builder.go @@ -31,7 +31,7 @@ func NewItemSitesItemListsItemItemsItemCreateLinkRequestBuilder(rawUrl string, r urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) } -// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a Permissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Permissionable), nil } -// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable, requestConfiguration *ItemSitesItemListsItemItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_items_item_drive_item_content_request_builder.go b/groups/item_sites_item_lists_item_items_item_drive_item_content_request_builder.go index 959230e169c..b3d006661a3 100644 --- a/groups/item_sites_item_lists_item_items_item_drive_item_content_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from groups type ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from groups // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) Get(ctx } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in groups // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) Put(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from groups // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in groups // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_lists_item_items_item_drive_item_content_stream_request_builder.go b/groups/item_sites_item_lists_item_items_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..b18ad170d65 --- /dev/null +++ b/groups/item_sites_item_lists_item_items_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the group entity. +type ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + m := &ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder instantiates a new ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_sites_item_lists_item_items_item_drive_item_request_builder.go b/groups/item_sites_item_lists_item_items_item_drive_item_request_builder.go index 061a0874183..fe0fc3f4bbe 100644 --- a/groups/item_sites_item_lists_item_items_item_drive_item_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemSitesItemListsItemItemsItemDriveItemRequestBuilder(rawUrl string, re func (m *ItemSitesItemListsItemItemsItemDriveItemRequestBuilder) Content()(*ItemSitesItemListsItemItemsItemDriveItemContentRequestBuilder) { return NewItemSitesItemListsItemItemsItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the group entity. +// returns a *ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemSitesItemListsItemItemsItemDriveItemRequestBuilder) ContentStream()(*ItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemSitesItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get for document libraries, the driveItem relationship exposes the listItem as a [driveItem][] // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/groups/item_sites_item_lists_list_item_request_builder.go b/groups/item_sites_item_lists_list_item_request_builder.go index ddef31a23e2..1368c42dfff 100644 --- a/groups/item_sites_item_lists_list_item_request_builder.go +++ b/groups/item_sites_item_lists_list_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemListsListItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemListsListItemRequestBuilderGetQueryParameters return the metadata for a [list][]. +// ItemSitesItemListsListItemRequestBuilderGetQueryParameters get the list of richLongRunningOperations associated with a list. type ItemSitesItemListsListItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -95,12 +95,12 @@ func (m *ItemSitesItemListsListItemRequestBuilder) Delete(ctx context.Context, r func (m *ItemSitesItemListsListItemRequestBuilder) Drive()(*ItemSitesItemListsItemDriveRequestBuilder) { return NewItemSitesItemListsItemDriveRequestBuilderInternal(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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 func (m *ItemSitesItemListsListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Listable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -169,7 +169,7 @@ func (m *ItemSitesItemListsListItemRequestBuilder) ToDeleteRequestInformation(ct 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 *ItemSitesItemListsListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_sites_add_request_builder.go b/groups/item_sites_item_sites_add_request_builder.go deleted file mode 100644 index d8d9fe9ceea..00000000000 --- a/groups/item_sites_item_sites_add_request_builder.go +++ /dev/null @@ -1,99 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ItemSitesItemSitesAddRequestBuilder provides operations to call the add method. -type ItemSitesItemSitesAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemSitesAddRequestBuilderInternal instantiates a new ItemSitesItemSitesAddRequestBuilder and sets the default values. -func NewItemSitesItemSitesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesAddRequestBuilder) { - m := &ItemSitesItemSitesAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/add", pathParameters), - } - return m -} -// NewItemSitesItemSitesAddRequestBuilder instantiates a new ItemSitesItemSitesAddRequestBuilder and sets the default values. -func NewItemSitesItemSitesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemSitesAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post follow a user's site or multiple sites. -// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. -// returns a ItemSitesItemSitesAddResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 -func (m *ItemSitesItemSitesAddRequestBuilder) Post(ctx context.Context, body ItemSitesItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesAddResponseable, 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, CreateItemSitesItemSitesAddResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesItemSitesAddResponseable), nil -} -// PostAsAddPostResponse follow a user's site or multiple sites. -// returns a ItemSitesItemSitesAddPostResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 -func (m *ItemSitesItemSitesAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemSitesItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesAddPostResponseable, 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, CreateItemSitesItemSitesAddPostResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesItemSitesAddPostResponseable), nil -} -// ToPostRequestInformation follow a user's site or multiple sites. -// returns a *RequestInformation when successful -func (m *ItemSitesItemSitesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemSitesAddRequestBuilder when successful -func (m *ItemSitesItemSitesAddRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemSitesAddRequestBuilder) { - return NewItemSitesItemSitesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_sites_add_response.go b/groups/item_sites_item_sites_add_response.go deleted file mode 100644 index de612476e52..00000000000 --- a/groups/item_sites_item_sites_add_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package groups - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ItemSitesItemSitesAddPostResponseable instead. -type ItemSitesItemSitesAddResponse struct { - ItemSitesItemSitesAddPostResponse -} -// NewItemSitesItemSitesAddResponse instantiates a new ItemSitesItemSitesAddResponse and sets the default values. -func NewItemSitesItemSitesAddResponse()(*ItemSitesItemSitesAddResponse) { - m := &ItemSitesItemSitesAddResponse{ - ItemSitesItemSitesAddPostResponse: *NewItemSitesItemSitesAddPostResponse(), - } - return m -} -// CreateItemSitesItemSitesAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemSitesItemSitesAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesItemSitesAddResponse(), nil -} -// Deprecated: This class is obsolete. Use ItemSitesItemSitesAddPostResponseable instead. -type ItemSitesItemSitesAddResponseable interface { - ItemSitesItemSitesAddPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/groups/item_sites_item_sites_remove_request_builder.go b/groups/item_sites_item_sites_remove_request_builder.go deleted file mode 100644 index 6debbc723d9..00000000000 --- a/groups/item_sites_item_sites_remove_request_builder.go +++ /dev/null @@ -1,99 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ItemSitesItemSitesRemoveRequestBuilder provides operations to call the remove method. -type ItemSitesItemSitesRemoveRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemSitesRemoveRequestBuilderInternal instantiates a new ItemSitesItemSitesRemoveRequestBuilder and sets the default values. -func NewItemSitesItemSitesRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesRemoveRequestBuilder) { - m := &ItemSitesItemSitesRemoveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/remove", pathParameters), - } - return m -} -// NewItemSitesItemSitesRemoveRequestBuilder instantiates a new ItemSitesItemSitesRemoveRequestBuilder and sets the default values. -func NewItemSitesItemSitesRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesRemoveRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemSitesRemoveRequestBuilderInternal(urlParams, requestAdapter) -} -// Post unfollow a user's site or multiple sites. -// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. -// returns a ItemSitesItemSitesRemoveResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 -func (m *ItemSitesItemSitesRemoveRequestBuilder) Post(ctx context.Context, body ItemSitesItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesRemoveResponseable, 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, CreateItemSitesItemSitesRemoveResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesItemSitesRemoveResponseable), nil -} -// PostAsRemovePostResponse unfollow a user's site or multiple sites. -// returns a ItemSitesItemSitesRemovePostResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 -func (m *ItemSitesItemSitesRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemSitesItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesRemovePostResponseable, 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, CreateItemSitesItemSitesRemovePostResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesItemSitesRemovePostResponseable), nil -} -// ToPostRequestInformation unfollow a user's site or multiple sites. -// returns a *RequestInformation when successful -func (m *ItemSitesItemSitesRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemSitesRemoveRequestBuilder when successful -func (m *ItemSitesItemSitesRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemSitesRemoveRequestBuilder) { - return NewItemSitesItemSitesRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_sites_remove_response.go b/groups/item_sites_item_sites_remove_response.go deleted file mode 100644 index 6301dc0c1d6..00000000000 --- a/groups/item_sites_item_sites_remove_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package groups - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ItemSitesItemSitesRemovePostResponseable instead. -type ItemSitesItemSitesRemoveResponse struct { - ItemSitesItemSitesRemovePostResponse -} -// NewItemSitesItemSitesRemoveResponse instantiates a new ItemSitesItemSitesRemoveResponse and sets the default values. -func NewItemSitesItemSitesRemoveResponse()(*ItemSitesItemSitesRemoveResponse) { - m := &ItemSitesItemSitesRemoveResponse{ - ItemSitesItemSitesRemovePostResponse: *NewItemSitesItemSitesRemovePostResponse(), - } - return m -} -// CreateItemSitesItemSitesRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemSitesItemSitesRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesItemSitesRemoveResponse(), nil -} -// Deprecated: This class is obsolete. Use ItemSitesItemSitesRemovePostResponseable instead. -type ItemSitesItemSitesRemoveResponseable interface { - ItemSitesItemSitesRemovePostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/groups/item_sites_item_sites_request_builder.go b/groups/item_sites_item_sites_request_builder.go index d0a2f90444f..affc31fe3f4 100644 --- a/groups/item_sites_item_sites_request_builder.go +++ b/groups/item_sites_item_sites_request_builder.go @@ -39,11 +39,6 @@ type ItemSitesItemSitesRequestBuilderGetRequestConfiguration struct { // Request query parameters QueryParameters *ItemSitesItemSitesRequestBuilderGetQueryParameters } -// Add provides operations to call the add method. -// returns a *ItemSitesItemSitesAddRequestBuilder when successful -func (m *ItemSitesItemSitesRequestBuilder) Add()(*ItemSitesItemSitesAddRequestBuilder) { - return NewItemSitesItemSitesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // BySiteId1 provides operations to manage the sites property of the microsoft.graph.site entity. // returns a *ItemSitesItemSitesSiteItemRequestBuilder when successful func (m *ItemSitesItemSitesRequestBuilder) BySiteId1(siteId1 string)(*ItemSitesItemSitesSiteItemRequestBuilder) { @@ -97,11 +92,6 @@ func (m *ItemSitesItemSitesRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable), nil } -// Remove provides operations to call the remove method. -// returns a *ItemSitesItemSitesRemoveRequestBuilder when successful -func (m *ItemSitesItemSitesRequestBuilder) Remove()(*ItemSitesItemSitesRemoveRequestBuilder) { - return NewItemSitesItemSitesRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // ToGetRequestInformation get a collection of subsites defined for a [site][]. // returns a *RequestInformation when successful func (m *ItemSitesItemSitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemSitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/groups/item_team_archive_request_builder.go b/groups/item_team_archive_request_builder.go index d46a64d4a0c..b5e7ecdd502 100644 --- a/groups/item_team_archive_request_builder.go +++ b/groups/item_team_archive_request_builder.go @@ -30,7 +30,7 @@ func NewItemTeamArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewItemTeamArchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// Post archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemTeamArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamA } return nil } -// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a *RequestInformation when successful func (m *ItemTeamArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamArchivePostRequestBodyable, requestConfiguration *ItemTeamArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_channels_item_files_folder_content_request_builder.go b/groups/item_team_channels_item_files_folder_content_request_builder.go index 354bb17a40f..94b3572e87d 100644 --- a/groups/item_team_channels_item_files_folder_content_request_builder.go +++ b/groups/item_team_channels_item_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamChannelsItemFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamChannelsItemFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemTeamChannelsItemFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from groups type ItemTeamChannelsItemFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemTeamChannelsItemFilesFolderContentRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewItemTeamChannelsItemFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from groups // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemTeamChannelsItemFilesFolderContentRequestBuilder) Get(ctx context.C } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in groups // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemTeamChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from groups // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemTeamChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in groups // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_channels_item_files_folder_content_stream_request_builder.go b/groups/item_team_channels_item_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..3790dd78b6e --- /dev/null +++ b/groups/item_team_channels_item_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder provides operations to manage the media for the group entity. +type ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilderInternal instantiates a new ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) { + m := &ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder/contentStream", pathParameters), + } + return m +} +// NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilder instantiates a new ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_files_folder_request_builder.go b/groups/item_team_channels_item_files_folder_request_builder.go index 3656074a916..42a83a4b48e 100644 --- a/groups/item_team_channels_item_files_folder_request_builder.go +++ b/groups/item_team_channels_item_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewItemTeamChannelsItemFilesFolderRequestBuilder(rawUrl string, requestAdap func (m *ItemTeamChannelsItemFilesFolderRequestBuilder) Content()(*ItemTeamChannelsItemFilesFolderContentRequestBuilder) { return NewItemTeamChannelsItemFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the group entity. +// returns a *ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamChannelsItemFilesFolderRequestBuilder) ContentStream()(*ItemTeamChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewItemTeamChannelsItemFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go index 1617741fb09..223a0c0d0cc 100644 --- a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go +++ b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go b/groups/item_team_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go index 1ec4b133ed8..951f98d8820 100644 --- a/groups/item_team_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/groups/item_team_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from groups -type ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilde // NewItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBu func (m *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBu // ToPutRequestInformation update media content for the navigation property hostedContents in groups // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_team_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/groups/item_team_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index 51005504aab..63f2bd80df1 100644 --- a/groups/item_team_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/groups/item_team_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from groups -type ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRe // NewItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueConte func (m *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueConte // ToPutRequestInformation update media content for the navigation property hostedContents in groups // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_team_channels_item_messages_request_builder.go b/groups/item_team_channels_item_messages_request_builder.go index da6e4e6bd3f..ff8a409b869 100644 --- a/groups/item_team_channels_item_messages_request_builder.go +++ b/groups/item_team_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamChannelsItemMessagesRequestBuilder) Get(ctx context.Context, re } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *ItemTeamChannelsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamChannelsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemTeamChannelsItemMessagesRequestBuilder) ToGetRequestInformation(ctx 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 *ItemTeamChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_channels_item_provision_email_request_builder.go b/groups/item_team_channels_item_provision_email_request_builder.go index 9c790e106db..93648e72f3a 100644 --- a/groups/item_team_channels_item_provision_email_request_builder.go +++ b/groups/item_team_channels_item_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewItemTeamChannelsItemProvisionEmailRequestBuilder(rawUrl string, requestA urlParams["request-raw-url"] = rawUrl return NewItemTeamChannelsItemProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemTeamChannelsItemProvisionEmailRequestBuilder) Post(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_channels_request_builder.go b/groups/item_team_channels_request_builder.go index c78924dc390..0e9c782ba49 100644 --- a/groups/item_team_channels_request_builder.go +++ b/groups/item_team_channels_request_builder.go @@ -114,7 +114,7 @@ func (m *ItemTeamChannelsRequestBuilder) GetAllMessages()(*ItemTeamChannelsGetAl func (m *ItemTeamChannelsRequestBuilder) GetAllRetainedMessages()(*ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) { return NewItemTeamChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -151,7 +151,7 @@ func (m *ItemTeamChannelsRequestBuilder) ToGetRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a *RequestInformation when successful func (m *ItemTeamChannelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable, requestConfiguration *ItemTeamChannelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/team/channels", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_photo_value_content_request_builder.go b/groups/item_team_photo_value_content_request_builder.go index 6a3d70414bf..7ffd38a180d 100644 --- a/groups/item_team_photo_value_content_request_builder.go +++ b/groups/item_team_photo_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from groups -type ItemTeamPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamPhotoValueContentRequestBuilderGetQueryParameters } // ItemTeamPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamPhotoValueContentRequestBuilderPutRequestConfiguration struct { // NewItemTeamPhotoValueContentRequestBuilderInternal instantiates a new ItemTeamPhotoValueContentRequestBuilder and sets the default values. func NewItemTeamPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPhotoValueContentRequestBuilder) { m := &ItemTeamPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *ItemTeamPhotoValueContentRequestBuilder) Put(ctx context.Context, body func (m *ItemTeamPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *ItemTeamPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx co // ToPutRequestInformation update media content for the navigation property photo in groups // returns a *RequestInformation when successful func (m *ItemTeamPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_team_primary_channel_files_folder_content_request_builder.go b/groups/item_team_primary_channel_files_folder_content_request_builder.go index 6b01f05826c..fe9ffdd3c09 100644 --- a/groups/item_team_primary_channel_files_folder_content_request_builder.go +++ b/groups/item_team_primary_channel_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamPrimaryChannelFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemTeamPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from groups type ItemTeamPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemTeamPrimaryChannelFilesFolderContentRequestBuilder(rawUrl string, re urlParams["request-raw-url"] = rawUrl return NewItemTeamPrimaryChannelFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from groups // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) Get(ctx context } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in groups // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) Put(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from groups // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) ToGetRequestInf requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in groups // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_primary_channel_files_folder_content_stream_request_builder.go b/groups/item_team_primary_channel_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..4246fe10ceb --- /dev/null +++ b/groups/item_team_primary_channel_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder provides operations to manage the media for the group entity. +type ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) { + m := &ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder/contentStream", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder instantiates a new ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_files_folder_request_builder.go b/groups/item_team_primary_channel_files_folder_request_builder.go index 414ef1253f2..b1b8197b76c 100644 --- a/groups/item_team_primary_channel_files_folder_request_builder.go +++ b/groups/item_team_primary_channel_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewItemTeamPrimaryChannelFilesFolderRequestBuilder(rawUrl string, requestAd func (m *ItemTeamPrimaryChannelFilesFolderRequestBuilder) Content()(*ItemTeamPrimaryChannelFilesFolderContentRequestBuilder) { return NewItemTeamPrimaryChannelFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the group entity. +// returns a *ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamPrimaryChannelFilesFolderRequestBuilder) ContentStream()(*ItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewItemTeamPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go index c70b7796900..212a9c4d7e1 100644 --- a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go +++ b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go b/groups/item_team_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go index 5afca7ae2dd..d3e43c7cf2a 100644 --- a/groups/item_team_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/groups/item_team_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from groups -type ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuil // NewItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequest func (m *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequest // ToPutRequestInformation update media content for the navigation property hostedContents in groups // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_team_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/groups/item_team_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index ae33bae2857..e235c64da9b 100644 --- a/groups/item_team_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/groups/item_team_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from groups -type ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContent // NewItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueCon func (m *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueCon // ToPutRequestInformation update media content for the navigation property hostedContents in groups // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_team_primary_channel_messages_request_builder.go b/groups/item_team_primary_channel_messages_request_builder.go index 8a6c6615c11..6b842cd12ad 100644 --- a/groups/item_team_primary_channel_messages_request_builder.go +++ b/groups/item_team_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) Get(ctx context.Context, } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) ToGetRequestInformation(c 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 *ItemTeamPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_primary_channel_provision_email_request_builder.go b/groups/item_team_primary_channel_provision_email_request_builder.go index 907100c41fe..ee64d927c91 100644 --- a/groups/item_team_primary_channel_provision_email_request_builder.go +++ b/groups/item_team_primary_channel_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewItemTeamPrimaryChannelProvisionEmailRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewItemTeamPrimaryChannelProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemTeamPrimaryChannelProvisionEmailRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_schedule_shifts_request_builder.go b/groups/item_team_schedule_shifts_request_builder.go index 29effd19717..43dd8561d50 100644 --- a/groups/item_team_schedule_shifts_request_builder.go +++ b/groups/item_team_schedule_shifts_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamScheduleShiftsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamScheduleShiftsRequestBuilderGetQueryParameters get the list of shift instances in a schedule. +// ItemTeamScheduleShiftsRequestBuilderGetQueryParameters the shifts in the schedule. type ItemTeamScheduleShiftsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemTeamScheduleShiftsRequestBuilder(rawUrl string, requestAdapter i2ae4 func (m *ItemTeamScheduleShiftsRequestBuilder) Count()(*ItemTeamScheduleShiftsCountRequestBuilder) { return NewItemTeamScheduleShiftsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of shift instances in a schedule. +// Get the shifts in the schedule. // returns a ShiftCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *ItemTeamScheduleShiftsRequestBuilder) Post(ctx context.Context, body ie } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Shiftable), nil } -// ToGetRequestInformation get the list of shift instances in a schedule. +// ToGetRequestInformation the shifts in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamScheduleShiftsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleShiftsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_schedule_time_off_reasons_request_builder.go b/groups/item_team_schedule_time_off_reasons_request_builder.go index 43fec31381b..40cfd309460 100644 --- a/groups/item_team_schedule_time_off_reasons_request_builder.go +++ b/groups/item_team_schedule_time_off_reasons_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamScheduleTimeOffReasonsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamScheduleTimeOffReasonsRequestBuilderGetQueryParameters get the list of timeOffReasons in a schedule. +// ItemTeamScheduleTimeOffReasonsRequestBuilderGetQueryParameters the set of reasons for a time off in the schedule. type ItemTeamScheduleTimeOffReasonsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemTeamScheduleTimeOffReasonsRequestBuilder(rawUrl string, requestAdapt func (m *ItemTeamScheduleTimeOffReasonsRequestBuilder) Count()(*ItemTeamScheduleTimeOffReasonsCountRequestBuilder) { return NewItemTeamScheduleTimeOffReasonsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of timeOffReasons in a schedule. +// Get the set of reasons for a time off in the schedule. // returns a TimeOffReasonCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *ItemTeamScheduleTimeOffReasonsRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TimeOffReasonable), nil } -// ToGetRequestInformation get the list of timeOffReasons in a schedule. +// ToGetRequestInformation the set of reasons for a time off in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamScheduleTimeOffReasonsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeOffReasonsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_unarchive_request_builder.go b/groups/item_team_unarchive_request_builder.go index d64ab543526..10bab85561c 100644 --- a/groups/item_team_unarchive_request_builder.go +++ b/groups/item_team_unarchive_request_builder.go @@ -30,7 +30,7 @@ func NewItemTeamUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 urlParams["request-raw-url"] = rawUrl return NewItemTeamUnarchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemTeamUnarchiveRequestBuilder) Post(ctx context.Context, requestConfi } return nil } -// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a *RequestInformation when successful func (m *ItemTeamUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_threads_conversation_thread_item_request_builder.go b/groups/item_threads_conversation_thread_item_request_builder.go index d1f0ef11cc5..47c139591e2 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 { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -52,11 +52,11 @@ func NewItemThreadsConversationThreadItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemThreadsConversationThreadItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a thread object. +// Delete delete conversationThread. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -71,12 +71,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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Posts()(*ItemThreadsIt func (m *ItemThreadsConversationThreadItemRequestBuilder) Reply()(*ItemThreadsItemReplyRequestBuilder) { return NewItemThreadsItemReplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a thread object. +// ToDeleteRequestInformation delete conversationThread. // returns a *RequestInformation when successful func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}", m.BaseRequestBuilder.PathParameters) @@ -138,7 +138,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_threads_item_reply_request_builder.go b/groups/item_threads_item_reply_request_builder.go index 557cfffac52..1b6ef21e252 100644 --- a/groups/item_threads_item_reply_request_builder.go +++ b/groups/item_threads_item_reply_request_builder.go @@ -30,11 +30,11 @@ func NewItemThreadsItemReplyRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// 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 reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. // returns a ODataError error 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 func (m *ItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body Item } return 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 reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. // returns a *RequestInformation when successful func (m *ItemThreadsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groupswithuniquename/groups_with_unique_name_request_builder.go b/groupswithuniquename/groups_with_unique_name_request_builder.go index d9ebaff1da0..9900016880f 100644 --- a/groupswithuniquename/groups_with_unique_name_request_builder.go +++ b/groupswithuniquename/groups_with_unique_name_request_builder.go @@ -99,12 +99,12 @@ func (m *GroupsWithUniqueNameRequestBuilder) Get(ctx context.Context, requestCon } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil } -// Patch update the properties of a group object. +// Patch 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 thethe 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. 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0 func (m *GroupsWithUniqueNameRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -147,7 +147,7 @@ func (m *GroupsWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a group object. +// ToPatchRequestInformation 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 thethe 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. 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 *GroupsWithUniqueNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupsWithUniqueNameRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups(uniqueName='{uniqueName}')", m.BaseRequestBuilder.PathParameters) diff --git a/identity/b2c_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go b/identity/b2c_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go index 38a56fa31f9..e7a14f1531a 100644 --- a/identity/b2c_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go +++ b/identity/b2c_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property defaultPages from identity -type B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetQueryParameters } // B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutR // NewB2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderInternal instantiates a new B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder and sets the default values. func NewB2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder) { m := &B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder func (m *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder // ToPutRequestInformation update media content for the navigation property defaultPages in identity // returns a *RequestInformation when successful func (m *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *B2cUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/b2c_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go b/identity/b2c_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go index 63f259ce6c7..935fc17512b 100644 --- a/identity/b2c_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go +++ b/identity/b2c_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property overridesPages from identity -type B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetQueryParameters } // B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPu // NewB2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderInternal instantiates a new B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder and sets the default values. func NewB2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder) { m := &B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuild func (m *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuild // ToPutRequestInformation update media content for the navigation property overridesPages in identity // returns a *RequestInformation when successful func (m *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *B2cUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/b2x_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go b/identity/b2x_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go index 12b24c3c9b6..789434b89dc 100644 --- a/identity/b2x_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go +++ b/identity/b2x_user_flows_item_languages_item_default_pages_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property defaultPages from identity -type B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetQueryParameters } // B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutR // NewB2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderInternal instantiates a new B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder and sets the default values. func NewB2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder) { m := &B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder func (m *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder // ToPutRequestInformation update media content for the navigation property defaultPages in identity // returns a *RequestInformation when successful func (m *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *B2xUserFlowsItemLanguagesItemDefaultPagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages/{userFlowLanguagePage%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/b2x_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go b/identity/b2x_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go index 997c17002cf..3d0a457a052 100644 --- a/identity/b2x_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go +++ b/identity/b2x_user_flows_item_languages_item_overrides_pages_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property overridesPages from identity -type B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetQueryParameters } // B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPu // NewB2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderInternal instantiates a new B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder and sets the default values. func NewB2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder) { m := &B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuild func (m *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuild // ToPutRequestInformation update media content for the navigation property overridesPages in identity // returns a *RequestInformation when successful func (m *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *B2xUserFlowsItemLanguagesItemOverridesPagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages/{userFlowLanguagePage%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/conditional_access_evaluate_post_request_body.go b/identity/conditional_access_evaluate_post_request_body.go new file mode 100644 index 00000000000..70efe527856 --- /dev/null +++ b/identity/conditional_access_evaluate_post_request_body.go @@ -0,0 +1,225 @@ +package identity + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ConditionalAccessEvaluatePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewConditionalAccessEvaluatePostRequestBody instantiates a new ConditionalAccessEvaluatePostRequestBody and sets the default values. +func NewConditionalAccessEvaluatePostRequestBody()(*ConditionalAccessEvaluatePostRequestBody) { + m := &ConditionalAccessEvaluatePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateConditionalAccessEvaluatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConditionalAccessEvaluatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConditionalAccessEvaluatePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAppliedPoliciesOnly gets the appliedPoliciesOnly property value. The appliedPoliciesOnly property +// returns a *bool when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetAppliedPoliciesOnly()(*bool) { + val, err := m.GetBackingStore().Get("appliedPoliciesOnly") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetConditionalAccessContext gets the conditionalAccessContext property value. The conditionalAccessContext property +// returns a ConditionalAccessContextable when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetConditionalAccessContext()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessContextable) { + val, err := m.GetBackingStore().Get("conditionalAccessContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessContextable) + } + return nil +} +// GetConditionalAccessWhatIfConditions gets the conditionalAccessWhatIfConditions property value. The conditionalAccessWhatIfConditions property +// returns a ConditionalAccessWhatIfConditionsable when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetConditionalAccessWhatIfConditions()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfConditionsable) { + val, err := m.GetBackingStore().Get("conditionalAccessWhatIfConditions") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfConditionsable) + } + return nil +} +// GetConditionalAccessWhatIfSubject gets the conditionalAccessWhatIfSubject property value. The conditionalAccessWhatIfSubject property +// returns a ConditionalAccessWhatIfSubjectable when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetConditionalAccessWhatIfSubject()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfSubjectable) { + val, err := m.GetBackingStore().Get("conditionalAccessWhatIfSubject") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfSubjectable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ConditionalAccessEvaluatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["appliedPoliciesOnly"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAppliedPoliciesOnly(val) + } + return nil + } + res["conditionalAccessContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConditionalAccessContextFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConditionalAccessContext(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessContextable)) + } + return nil + } + res["conditionalAccessWhatIfConditions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConditionalAccessWhatIfConditionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConditionalAccessWhatIfConditions(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfConditionsable)) + } + return nil + } + res["conditionalAccessWhatIfSubject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConditionalAccessWhatIfSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConditionalAccessWhatIfSubject(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfSubjectable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ConditionalAccessEvaluatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("appliedPoliciesOnly", m.GetAppliedPoliciesOnly()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("conditionalAccessContext", m.GetConditionalAccessContext()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("conditionalAccessWhatIfConditions", m.GetConditionalAccessWhatIfConditions()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("conditionalAccessWhatIfSubject", m.GetConditionalAccessWhatIfSubject()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ConditionalAccessEvaluatePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAppliedPoliciesOnly sets the appliedPoliciesOnly property value. The appliedPoliciesOnly property +func (m *ConditionalAccessEvaluatePostRequestBody) SetAppliedPoliciesOnly(value *bool)() { + err := m.GetBackingStore().Set("appliedPoliciesOnly", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ConditionalAccessEvaluatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetConditionalAccessContext sets the conditionalAccessContext property value. The conditionalAccessContext property +func (m *ConditionalAccessEvaluatePostRequestBody) SetConditionalAccessContext(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessContextable)() { + err := m.GetBackingStore().Set("conditionalAccessContext", value) + if err != nil { + panic(err) + } +} +// SetConditionalAccessWhatIfConditions sets the conditionalAccessWhatIfConditions property value. The conditionalAccessWhatIfConditions property +func (m *ConditionalAccessEvaluatePostRequestBody) SetConditionalAccessWhatIfConditions(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfConditionsable)() { + err := m.GetBackingStore().Set("conditionalAccessWhatIfConditions", value) + if err != nil { + panic(err) + } +} +// SetConditionalAccessWhatIfSubject sets the conditionalAccessWhatIfSubject property value. The conditionalAccessWhatIfSubject property +func (m *ConditionalAccessEvaluatePostRequestBody) SetConditionalAccessWhatIfSubject(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfSubjectable)() { + err := m.GetBackingStore().Set("conditionalAccessWhatIfSubject", value) + if err != nil { + panic(err) + } +} +type ConditionalAccessEvaluatePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppliedPoliciesOnly()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetConditionalAccessContext()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessContextable) + GetConditionalAccessWhatIfConditions()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfConditionsable) + GetConditionalAccessWhatIfSubject()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfSubjectable) + SetAppliedPoliciesOnly(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetConditionalAccessContext(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessContextable)() + SetConditionalAccessWhatIfConditions(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfConditionsable)() + SetConditionalAccessWhatIfSubject(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfSubjectable)() +} diff --git a/sites/item_sites_remove_post_response.go b/identity/conditional_access_evaluate_post_response.go similarity index 58% rename from sites/item_sites_remove_post_response.go rename to identity/conditional_access_evaluate_post_response.go index 498520f7e1d..4340e935420 100644 --- a/sites/item_sites_remove_post_response.go +++ b/identity/conditional_access_evaluate_post_response.go @@ -1,39 +1,39 @@ -package sites +package identity import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ) -type ItemSitesRemovePostResponse struct { +type ConditionalAccessEvaluatePostResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewItemSitesRemovePostResponse instantiates a new ItemSitesRemovePostResponse and sets the default values. -func NewItemSitesRemovePostResponse()(*ItemSitesRemovePostResponse) { - m := &ItemSitesRemovePostResponse{ +// NewConditionalAccessEvaluatePostResponse instantiates a new ConditionalAccessEvaluatePostResponse and sets the default values. +func NewConditionalAccessEvaluatePostResponse()(*ConditionalAccessEvaluatePostResponse) { + m := &ConditionalAccessEvaluatePostResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateItemSitesRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateConditionalAccessEvaluatePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesRemovePostResponse(), nil +func CreateConditionalAccessEvaluatePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConditionalAccessEvaluatePostResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ConditionalAccessEvaluatePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConditionalAccessWhatIfPolicyFromDiscriminatorValue) if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable) } } m.SetValue(res) @@ -43,19 +43,19 @@ func (m *ItemSitesRemovePostResponse) GetFieldDeserializers()(map[string]func(i8 return res } // GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { +// returns a []ConditionalAccessWhatIfPolicyable when successful +func (m *ConditionalAccessEvaluatePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable) } return nil } // Serialize serializes information the current object -func (m *ItemSitesRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ConditionalAccessEvaluatePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -75,15 +75,15 @@ func (m *ItemSitesRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a return nil } // SetValue sets the value property value. The value property -func (m *ItemSitesRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { +func (m *ConditionalAccessEvaluatePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ItemSitesRemovePostResponseable interface { +type ConditionalAccessEvaluatePostResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConditionalAccessWhatIfPolicyable)() } diff --git a/identity/conditional_access_evaluate_request_builder.go b/identity/conditional_access_evaluate_request_builder.go new file mode 100644 index 00000000000..6d2241c82ff --- /dev/null +++ b/identity/conditional_access_evaluate_request_builder.go @@ -0,0 +1,93 @@ +package identity + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ConditionalAccessEvaluateRequestBuilder provides operations to call the evaluate method. +type ConditionalAccessEvaluateRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ConditionalAccessEvaluateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ConditionalAccessEvaluateRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewConditionalAccessEvaluateRequestBuilderInternal instantiates a new ConditionalAccessEvaluateRequestBuilder and sets the default values. +func NewConditionalAccessEvaluateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConditionalAccessEvaluateRequestBuilder) { + m := &ConditionalAccessEvaluateRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/conditionalAccess/evaluate", pathParameters), + } + return m +} +// NewConditionalAccessEvaluateRequestBuilder instantiates a new ConditionalAccessEvaluateRequestBuilder and sets the default values. +func NewConditionalAccessEvaluateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ConditionalAccessEvaluateRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewConditionalAccessEvaluateRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action evaluate +// Deprecated: This method is obsolete. Use PostAsEvaluatePostResponse instead. +// returns a ConditionalAccessEvaluateResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ConditionalAccessEvaluateRequestBuilder) Post(ctx context.Context, body ConditionalAccessEvaluatePostRequestBodyable, requestConfiguration *ConditionalAccessEvaluateRequestBuilderPostRequestConfiguration)(ConditionalAccessEvaluateResponseable, 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, CreateConditionalAccessEvaluateResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ConditionalAccessEvaluateResponseable), nil +} +// PostAsEvaluatePostResponse invoke action evaluate +// returns a ConditionalAccessEvaluatePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ConditionalAccessEvaluateRequestBuilder) PostAsEvaluatePostResponse(ctx context.Context, body ConditionalAccessEvaluatePostRequestBodyable, requestConfiguration *ConditionalAccessEvaluateRequestBuilderPostRequestConfiguration)(ConditionalAccessEvaluatePostResponseable, 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, CreateConditionalAccessEvaluatePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ConditionalAccessEvaluatePostResponseable), nil +} +// ToPostRequestInformation invoke action evaluate +// returns a *RequestInformation when successful +func (m *ConditionalAccessEvaluateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ConditionalAccessEvaluatePostRequestBodyable, requestConfiguration *ConditionalAccessEvaluateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ConditionalAccessEvaluateRequestBuilder when successful +func (m *ConditionalAccessEvaluateRequestBuilder) WithUrl(rawUrl string)(*ConditionalAccessEvaluateRequestBuilder) { + return NewConditionalAccessEvaluateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identity/conditional_access_evaluate_response.go b/identity/conditional_access_evaluate_response.go new file mode 100644 index 00000000000..34e5d08a83e --- /dev/null +++ b/identity/conditional_access_evaluate_response.go @@ -0,0 +1,27 @@ +package identity + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ConditionalAccessEvaluatePostResponseable instead. +type ConditionalAccessEvaluateResponse struct { + ConditionalAccessEvaluatePostResponse +} +// NewConditionalAccessEvaluateResponse instantiates a new ConditionalAccessEvaluateResponse and sets the default values. +func NewConditionalAccessEvaluateResponse()(*ConditionalAccessEvaluateResponse) { + m := &ConditionalAccessEvaluateResponse{ + ConditionalAccessEvaluatePostResponse: *NewConditionalAccessEvaluatePostResponse(), + } + return m +} +// CreateConditionalAccessEvaluateResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConditionalAccessEvaluateResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConditionalAccessEvaluateResponse(), nil +} +// Deprecated: This class is obsolete. Use ConditionalAccessEvaluatePostResponseable instead. +type ConditionalAccessEvaluateResponseable interface { + ConditionalAccessEvaluatePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} 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 ebab2f166b6..0e50e0dd36e 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 @@ -54,11 +54,11 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a namedLocation object. +// Delete delete a countryNamedLocation object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,12 +96,12 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// Patch update the properties of a countryNamedLocation object. +// Patch update the properties of an ipNamedLocation 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// ToDeleteRequestInformation delete a namedLocation object. +// ToDeleteRequestInformation delete a countryNamedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}", m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a countryNamedLocation object. +// ToPatchRequestInformation update the properties of an ipNamedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/identity/conditional_access_request_builder.go b/identity/conditional_access_request_builder.go index 730a8f8513b..18c57f53a95 100644 --- a/identity/conditional_access_request_builder.go +++ b/identity/conditional_access_request_builder.go @@ -36,6 +36,11 @@ func NewConditionalAccessRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 urlParams["request-raw-url"] = rawUrl return NewConditionalAccessRequestBuilderInternal(urlParams, requestAdapter) } +// Evaluate provides operations to call the evaluate method. +// returns a *ConditionalAccessEvaluateRequestBuilder when successful +func (m *ConditionalAccessRequestBuilder) Evaluate()(*ConditionalAccessEvaluateRequestBuilder) { + return NewConditionalAccessEvaluateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NamedLocations provides operations to manage the namedLocations property of the microsoft.graph.conditionalAccessRoot entity. // returns a *ConditionalAccessNamedLocationsRequestBuilder when successful func (m *ConditionalAccessRequestBuilder) NamedLocations()(*ConditionalAccessNamedLocationsRequestBuilder) { diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_access_packages_incompatible_with_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_access_packages_incompatible_with_request_builder.go index ca9127b63f3..e7e241599c9 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_access_packages_incompatible_with_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_access_packages_incompatible_with_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects marked a specified accessPackage as incompatible. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPack func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilder) Count()(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithCountRequestBuilder) { return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. +// Get retrieve a list of the accessPackage objects marked a specified accessPackage as incompatible. // returns a AccessPackageCollectionResponseable 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 *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPac } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCollectionResponseable), nil } -// ToGetRequestInformation retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. +// ToGetRequestInformation retrieve a list of the accessPackage objects marked a specified accessPackage as incompatible. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_item_ref_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_item_ref_request_builder.go index a8822506a19..ce9a81030f7 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_item_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_item_ref_request_builder.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatib urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesItemRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// Delete remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return nil } -// ToDeleteRequestInformation remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_ref_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_ref_request_builder.go index 3a6bcac8d32..d2c4c5e06e3 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_ref_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters remove an access package from the list of access packages marked as incompatible on an accessPackage. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters struct { // The delete Uri Id *string `uriparametername:"%40id"` @@ -25,7 +25,7 @@ type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleA // Request query parameters QueryParameters *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatib urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// Delete remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -88,7 +88,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return nil } -// Get retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // 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 *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } -// Post add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. +// Post add an accessPackage to the list of access packages marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -130,7 +130,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return nil } -// ToDeleteRequestInformation remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -158,7 +158,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. +// ToPostRequestInformation add an accessPackage to the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref", m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_request_builder.go index 19b05fbd174..c6994f53a81 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_access_packages_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatib func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilder) Count()(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesCountRequestBuilder) { return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a AccessPackageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -97,7 +97,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilder) Ref()(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) { return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_item_ref_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_item_ref_request_builder.go index 1c260471277..c97b770cb5a 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_item_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_item_ref_request_builder.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatib urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsItemRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// Delete remove a group from the list of groups marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return nil } -// ToDeleteRequestInformation remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove a group from the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_ref_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_ref_request_builder.go index a84b92fe8d3..82627dd6157 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_ref_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderDeleteQueryParameters remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderDeleteQueryParameters remove a group from the list of groups marked as incompatible on an accessPackage. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderDeleteQueryParameters struct { // The delete Uri Id *string `uriparametername:"%40id"` @@ -25,7 +25,7 @@ type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleG // Request query parameters QueryParameters *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderDeleteQueryParameters } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderGetQueryParameters retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderGetQueryParameters retrieve a list of the group objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatib urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// Delete remove a group from the list of groups marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -88,7 +88,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return nil } -// Get retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the group objects marked as incompatible on an accessPackage. // 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 *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } -// Post add a group to the list of groups that have been marked as incompatible on an accessPackage. +// Post add a group to the list of groups marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -130,7 +130,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati } return nil } -// ToDeleteRequestInformation remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove a group from the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -158,7 +158,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a group to the list of groups that have been marked as incompatible on an accessPackage. +// ToPostRequestInformation add a group to the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref", m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_request_builder.go index 1289851b48c..f07713f3105 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_incompatible_groups_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilderGetQueryParameters retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilderGetQueryParameters retrieve a list of the group objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatib func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilder) Count()(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsCountRequestBuilder) { return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -97,7 +97,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilder) Ref()(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) { return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go index cb10b3696ed..7ad7e4578b9 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowEx // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. +// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension 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 accessPackageAssignmentWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension 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/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 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 accessPackageAssignmentWorkflowExtension object. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension 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/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go index c3ce235d280..ab2d27e8b7f 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go @@ -54,12 +54,12 @@ func NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflo urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a customAccessPackageWorkflowExtension 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 customAccessPackageWorkflowExtension object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings 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/customaccesspackageworkflowextension-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 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 a customAccessPackageWorkflowExtension 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 customAccessPackageWorkflowExtension object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings 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/entitlement_management_access_packages_item_access_packages_incompatible_with_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_access_packages_incompatible_with_request_builder.go index 9c956adcfc8..437ea1a26fb 100644 --- a/identitygovernance/entitlement_management_access_packages_item_access_packages_incompatible_with_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_access_packages_incompatible_with_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. +// EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects marked a specified accessPackage as incompatible. type EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithReq func (m *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilder) Count()(*EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithCountRequestBuilder) { return NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. +// Get retrieve a list of the accessPackage objects marked a specified accessPackage as incompatible. // returns a AccessPackageCollectionResponseable 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 *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCollectionResponseable), nil } -// ToGetRequestInformation retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. +// ToGetRequestInformation retrieve a list of the accessPackage objects marked a specified accessPackage as incompatible. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_item_ref_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_item_ref_request_builder.go index 6cd3de33d25..588dfc609fe 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_item_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_item_ref_request_builder.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesItemRef urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesItemRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// Delete remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesItemRe } return nil } -// ToDeleteRequestInformation remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go index eafa65b1eb9..550d18b837d 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters remove an access package from the list of access packages marked as incompatible on an accessPackage. type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters struct { // The delete Uri Id *string `uriparametername:"%40id"` @@ -25,7 +25,7 @@ type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequest // Request query parameters QueryParameters *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderDeleteQueryParameters } -// EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequ urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// Delete remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -88,7 +88,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq } return nil } -// Get retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // 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 *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } -// Post add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. +// Post add an accessPackage to the list of access packages marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -130,7 +130,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq } return nil } -// ToDeleteRequestInformation remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove an access package from the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -158,7 +158,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. +// ToPostRequestInformation add an accessPackage to the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref", m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_request_builder.go index fbb7aef83f6..1662b04c5da 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilderGetQueryParameters retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequest func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilder) Count()(*EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesCountRequestBuilder) { return NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a AccessPackageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -97,7 +97,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesReques func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilder) Ref()(*EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) { return NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_item_ref_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_item_ref_request_builder.go index 9ee4bcc062f..e5073601268 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_item_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_item_ref_request_builder.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAccessPackagesItemIncompatibleGroupsItemRefRequestB urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackagesItemIncompatibleGroupsItemRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// Delete remove a group from the list of groups marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsItemRefRequest } return nil } -// ToDeleteRequestInformation remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove a group from the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go index b5c52a2641e..421fdf77757 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderDeleteQueryParameters remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderDeleteQueryParameters remove a group from the list of groups marked as incompatible on an accessPackage. type EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderDeleteQueryParameters struct { // The delete Uri Id *string `uriparametername:"%40id"` @@ -25,7 +25,7 @@ type EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderD // Request query parameters QueryParameters *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderDeleteQueryParameters } -// EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderGetQueryParameters retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderGetQueryParameters retrieve a list of the group objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuild urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// Delete remove a group from the list of groups marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -88,7 +88,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil } return nil } -// Get retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the group objects marked as incompatible on an accessPackage. // 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 *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } -// Post add a group to the list of groups that have been marked as incompatible on an accessPackage. +// Post add a group to the list of groups marked as incompatible on an accessPackage. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -130,7 +130,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil } return nil } -// ToDeleteRequestInformation remove a group from the list of groups that have been marked as incompatible on an accessPackage. +// ToDeleteRequestInformation remove a group from the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -158,7 +158,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a group to the list of groups that have been marked as incompatible on an accessPackage. +// ToPostRequestInformation add a group to the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref", m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_request_builder.go index 8928a404ee0..643e042fd36 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilderGetQueryParameters retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilderGetQueryParameters retrieve a list of the group objects marked as incompatible on an accessPackage. type EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewEntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilder( func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilder) Count()(*EntitlementManagementAccessPackagesItemIncompatibleGroupsCountRequestBuilder) { return NewEntitlementManagementAccessPackagesItemIncompatibleGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// Get retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -97,7 +97,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilder func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilder) Ref()(*EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) { return NewEntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve a list of the group objects that have been marked as incompatible on an accessPackage. +// ToGetRequestInformation retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identityprotection/risk_detections_risk_detection_item_request_builder.go b/identityprotection/risk_detections_risk_detection_item_request_builder.go index e458cff3957..01cb40f9e8b 100644 --- a/identityprotection/risk_detections_risk_detection_item_request_builder.go +++ b/identityprotection/risk_detections_risk_detection_item_request_builder.go @@ -18,7 +18,7 @@ type RiskDetectionsRiskDetectionItemRequestBuilderDeleteRequestConfiguration str // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a collection of riskDetection objects. +// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a riskDetection object. type RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,12 +70,12 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) Delete(ctx context.Conte } return nil } -// Get retrieve the properties of a collection of riskDetection objects. +// Get retrieve the properties of a riskDetection object. // returns a RiskDetectionable 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/riskdetection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 func (m *RiskDetectionsRiskDetectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToDeleteRequestInformati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties of a collection of riskDetection objects. +// ToGetRequestInformation retrieve the properties of a riskDetection object. // returns a *RequestInformation when successful func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(*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 e188e405381..65866696cb9 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskyusers-list?view=graph-rest-1.0 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/kiota-lock.json b/kiota-lock.json index e58ca8bfb8f..40aecbf1720 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "BFAF287BF06B1BD3A4A99E937369A504ED87A73AFBAAA9593F3392A07C8667AEC1C56D370415D09F4BB38C514C9A56A49903E57A939BF6B71012B299F07BE825", + "descriptionHash": "29F135D8548B5127B50A4194F14F793494BC136198EB149361993F60F29A74BFF921470B563D67B3E21378402D15471DDB458AC1035427C653141C5DF06B6940", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.12.0", + "kiotaVersion": "1.13.0", "clientClassName": "GraphBaseServiceClient", "clientNamespaceName": "github.com/microsoftgraph/msgraph-beta-sdk-go/", "language": "Go", diff --git a/models/aggregation_option.go b/models/aggregation_option.go index 6b8ba25343c..61764203606 100644 --- a/models/aggregation_option.go +++ b/models/aggregation_option.go @@ -52,7 +52,7 @@ func (m *AggregationOption) GetBucketDefinition()(BucketAggregationDefinitionabl } return nil } -// GetField gets the field property value. Computes aggregation on the field while the field exists in current entity type. Required. +// GetField gets the field property value. Computes aggregation on the field while the field exists in the current entity type. Required. // returns a *string when successful func (m *AggregationOption) GetField()(*string) { val, err := m.GetBackingStore().Get("field") @@ -122,7 +122,7 @@ func (m *AggregationOption) GetOdataType()(*string) { } return nil } -// GetSize gets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. +// GetSize gets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. The minimum accepted size is 1, and the maximum is 65535. Optional. // returns a *int32 when successful func (m *AggregationOption) GetSize()(*int32) { val, err := m.GetBackingStore().Get("size") @@ -186,7 +186,7 @@ func (m *AggregationOption) SetBucketDefinition(value BucketAggregationDefinitio panic(err) } } -// SetField sets the field property value. Computes aggregation on the field while the field exists in current entity type. Required. +// SetField sets the field property value. Computes aggregation on the field while the field exists in the current entity type. Required. func (m *AggregationOption) SetField(value *string)() { err := m.GetBackingStore().Set("field", value) if err != nil { @@ -200,7 +200,7 @@ func (m *AggregationOption) SetOdataType(value *string)() { panic(err) } } -// SetSize sets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. +// SetSize sets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. The minimum accepted size is 1, and the maximum is 65535. Optional. func (m *AggregationOption) SetSize(value *int32)() { err := m.GetBackingStore().Set("size", value) if err != nil { diff --git a/models/android_device_owner_compliance_policy.go b/models/android_device_owner_compliance_policy.go index 71de9271f32..a9197ac360c 100644 --- a/models/android_device_owner_compliance_policy.go +++ b/models/android_device_owner_compliance_policy.go @@ -496,7 +496,7 @@ func (m *AndroidDeviceOwnerCompliancePolicy) GetRequireNoPendingSystemUpdates()( } return nil } -// GetSecurityRequiredAndroidSafetyNetEvaluationType gets the securityRequiredAndroidSafetyNetEvaluationType property value. Require a specific Play Integrity evaluation type for compliance. +// GetSecurityRequiredAndroidSafetyNetEvaluationType gets the securityRequiredAndroidSafetyNetEvaluationType property value. Require a specific Play Integrity evaluation type for compliance. Possible values are: basic, hardwareBacked. // returns a *AndroidSafetyNetEvaluationType when successful func (m *AndroidDeviceOwnerCompliancePolicy) GetSecurityRequiredAndroidSafetyNetEvaluationType()(*AndroidSafetyNetEvaluationType) { val, err := m.GetBackingStore().Get("securityRequiredAndroidSafetyNetEvaluationType") @@ -845,7 +845,7 @@ func (m *AndroidDeviceOwnerCompliancePolicy) SetRequireNoPendingSystemUpdates(va panic(err) } } -// SetSecurityRequiredAndroidSafetyNetEvaluationType sets the securityRequiredAndroidSafetyNetEvaluationType property value. Require a specific Play Integrity evaluation type for compliance. +// SetSecurityRequiredAndroidSafetyNetEvaluationType sets the securityRequiredAndroidSafetyNetEvaluationType property value. Require a specific Play Integrity evaluation type for compliance. Possible values are: basic, hardwareBacked. func (m *AndroidDeviceOwnerCompliancePolicy) SetSecurityRequiredAndroidSafetyNetEvaluationType(value *AndroidSafetyNetEvaluationType)() { err := m.GetBackingStore().Set("securityRequiredAndroidSafetyNetEvaluationType", value) if err != nil { diff --git a/models/android_device_owner_wi_fi_configuration.go b/models/android_device_owner_wi_fi_configuration.go index 8b2980ed59b..ddaaae2f281 100644 --- a/models/android_device_owner_wi_fi_configuration.go +++ b/models/android_device_owner_wi_fi_configuration.go @@ -200,7 +200,7 @@ func (m *AndroidDeviceOwnerWiFiConfiguration) GetFieldDeserializers()(map[string } return res } -// GetMacAddressRandomizationMode gets the macAddressRandomizationMode property value. The MAC address randomization mode for Android device Wi-Fi configuration. Possible values include automatic and hardware. Default value is automatic. +// GetMacAddressRandomizationMode gets the macAddressRandomizationMode property value. The MAC address randomization mode for Android device Wi-Fi configuration. Possible values include automatic and hardware. Default value is automatic. Possible values are: automatic, hardware, unknownFutureValue. // returns a *MacAddressRandomizationMode when successful func (m *AndroidDeviceOwnerWiFiConfiguration) GetMacAddressRandomizationMode()(*MacAddressRandomizationMode) { val, err := m.GetBackingStore().Get("macAddressRandomizationMode") @@ -435,7 +435,7 @@ func (m *AndroidDeviceOwnerWiFiConfiguration) SetConnectWhenNetworkNameIsHidden( panic(err) } } -// SetMacAddressRandomizationMode sets the macAddressRandomizationMode property value. The MAC address randomization mode for Android device Wi-Fi configuration. Possible values include automatic and hardware. Default value is automatic. +// SetMacAddressRandomizationMode sets the macAddressRandomizationMode property value. The MAC address randomization mode for Android device Wi-Fi configuration. Possible values include automatic and hardware. Default value is automatic. Possible values are: automatic, hardware, unknownFutureValue. func (m *AndroidDeviceOwnerWiFiConfiguration) SetMacAddressRandomizationMode(value *MacAddressRandomizationMode)() { err := m.GetBackingStore().Set("macAddressRandomizationMode", value) if err != nil { diff --git a/models/android_for_work_app.go b/models/android_for_work_app.go index b3e024830eb..d5f371aa864 100644 --- a/models/android_for_work_app.go +++ b/models/android_for_work_app.go @@ -22,7 +22,7 @@ func NewAndroidForWorkApp()(*AndroidForWorkApp) { func CreateAndroidForWorkAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAndroidForWorkApp(), nil } -// GetAppIdentifier gets the appIdentifier property value. The Identity Name. +// GetAppIdentifier gets the appIdentifier property value. The Identity Name. This property is read-only. // returns a *string when successful func (m *AndroidForWorkApp) GetAppIdentifier()(*string) { val, err := m.GetBackingStore().Get("appIdentifier") @@ -102,7 +102,7 @@ func (m *AndroidForWorkApp) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetPackageId gets the packageId property value. The package identifier. +// GetPackageId gets the packageId property value. The package identifier. This property is read-only. // returns a *string when successful func (m *AndroidForWorkApp) GetPackageId()(*string) { val, err := m.GetBackingStore().Get("packageId") @@ -144,24 +144,12 @@ func (m *AndroidForWorkApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27 if err != nil { return err } - { - err = writer.WriteStringValue("appIdentifier", m.GetAppIdentifier()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("appStoreUrl", m.GetAppStoreUrl()) if err != nil { return err } } - { - err = writer.WriteStringValue("packageId", m.GetPackageId()) - if err != nil { - return err - } - } { err = writer.WriteInt32Value("totalLicenseCount", m.GetTotalLicenseCount()) if err != nil { @@ -176,7 +164,7 @@ func (m *AndroidForWorkApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetAppIdentifier sets the appIdentifier property value. The Identity Name. +// SetAppIdentifier sets the appIdentifier property value. The Identity Name. This property is read-only. func (m *AndroidForWorkApp) SetAppIdentifier(value *string)() { err := m.GetBackingStore().Set("appIdentifier", value) if err != nil { @@ -190,7 +178,7 @@ func (m *AndroidForWorkApp) SetAppStoreUrl(value *string)() { panic(err) } } -// SetPackageId sets the packageId property value. The package identifier. +// SetPackageId sets the packageId property value. The package identifier. This property is read-only. func (m *AndroidForWorkApp) SetPackageId(value *string)() { err := m.GetBackingStore().Set("packageId", value) if err != nil { diff --git a/models/android_managed_app_protection.go b/models/android_managed_app_protection.go index e29bbd8e644..6fd2991c304 100644 --- a/models/android_managed_app_protection.go +++ b/models/android_managed_app_protection.go @@ -46,7 +46,7 @@ func (m *AndroidManagedAppProtection) GetAllowedAndroidDeviceModels()([]string) } return nil } -// GetAppActionIfAccountIsClockedOut gets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). +// GetAppActionIfAccountIsClockedOut gets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). Possible values are: block, wipe, warn. // returns a *ManagedAppRemediationAction when successful func (m *AndroidManagedAppProtection) GetAppActionIfAccountIsClockedOut()(*ManagedAppRemediationAction) { val, err := m.GetBackingStore().Get("appActionIfAccountIsClockedOut") @@ -118,7 +118,7 @@ func (m *AndroidManagedAppProtection) GetAppActionIfDeviceLockNotSet()(*ManagedA } return nil } -// GetAppActionIfDevicePasscodeComplexityLessThanHigh gets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. +// GetAppActionIfDevicePasscodeComplexityLessThanHigh gets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. // returns a *ManagedAppRemediationAction when successful func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*ManagedAppRemediationAction) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanHigh") @@ -130,7 +130,7 @@ func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLess } return nil } -// GetAppActionIfDevicePasscodeComplexityLessThanLow gets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. +// GetAppActionIfDevicePasscodeComplexityLessThanLow gets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. // returns a *ManagedAppRemediationAction when successful func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanLow()(*ManagedAppRemediationAction) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanLow") @@ -142,7 +142,7 @@ func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLess } return nil } -// GetAppActionIfDevicePasscodeComplexityLessThanMedium gets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. +// GetAppActionIfDevicePasscodeComplexityLessThanMedium gets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. // returns a *ManagedAppRemediationAction when successful func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*ManagedAppRemediationAction) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanMedium") @@ -154,7 +154,7 @@ func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLess } return nil } -// GetAppActionIfSamsungKnoxAttestationRequired gets the appActionIfSamsungKnoxAttestationRequired property value. Defines the behavior of a managed app when Samsung Knox Attestation is required. Possible values are null, warn, block & wipe. If the admin does not set this action, the default is null, which indicates this setting is not configured. +// GetAppActionIfSamsungKnoxAttestationRequired gets the appActionIfSamsungKnoxAttestationRequired property value. Defines the behavior of a managed app when Samsung Knox Attestation is required. Possible values are null, warn, block & wipe. If the admin does not set this action, the default is null, which indicates this setting is not configured. Possible values are: block, wipe, warn. // returns a *ManagedAppRemediationAction when successful func (m *AndroidManagedAppProtection) GetAppActionIfSamsungKnoxAttestationRequired()(*ManagedAppRemediationAction) { val, err := m.GetBackingStore().Get("appActionIfSamsungKnoxAttestationRequired") @@ -226,7 +226,7 @@ func (m *AndroidManagedAppProtection) GetConnectToVpnOnLaunch()(*bool) { } return nil } -// GetCustomBrowserDisplayName gets the customBrowserDisplayName property value. Friendly name of the preferred custom browser to open weblink on Android. +// GetCustomBrowserDisplayName gets the customBrowserDisplayName property value. Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. // returns a *string when successful func (m *AndroidManagedAppProtection) GetCustomBrowserDisplayName()(*string) { val, err := m.GetBackingStore().Get("customBrowserDisplayName") @@ -238,7 +238,7 @@ func (m *AndroidManagedAppProtection) GetCustomBrowserDisplayName()(*string) { } return nil } -// GetCustomBrowserPackageId gets the customBrowserPackageId property value. Unique identifier of a custom browser to open weblink on Android. +// GetCustomBrowserPackageId gets the customBrowserPackageId property value. Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. // returns a *string when successful func (m *AndroidManagedAppProtection) GetCustomBrowserPackageId()(*string) { val, err := m.GetBackingStore().Get("customBrowserPackageId") @@ -1365,7 +1365,7 @@ func (m *AndroidManagedAppProtection) SetAllowedAndroidDeviceModels(value []stri panic(err) } } -// SetAppActionIfAccountIsClockedOut sets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). +// SetAppActionIfAccountIsClockedOut sets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). Possible values are: block, wipe, warn. func (m *AndroidManagedAppProtection) SetAppActionIfAccountIsClockedOut(value *ManagedAppRemediationAction)() { err := m.GetBackingStore().Set("appActionIfAccountIsClockedOut", value) if err != nil { @@ -1407,28 +1407,28 @@ func (m *AndroidManagedAppProtection) SetAppActionIfDeviceLockNotSet(value *Mana panic(err) } } -// SetAppActionIfDevicePasscodeComplexityLessThanHigh sets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. +// SetAppActionIfDevicePasscodeComplexityLessThanHigh sets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *ManagedAppRemediationAction)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanHigh", value) if err != nil { panic(err) } } -// SetAppActionIfDevicePasscodeComplexityLessThanLow sets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. +// SetAppActionIfDevicePasscodeComplexityLessThanLow sets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanLow(value *ManagedAppRemediationAction)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanLow", value) if err != nil { panic(err) } } -// SetAppActionIfDevicePasscodeComplexityLessThanMedium sets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. +// SetAppActionIfDevicePasscodeComplexityLessThanMedium sets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *ManagedAppRemediationAction)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanMedium", value) if err != nil { panic(err) } } -// SetAppActionIfSamsungKnoxAttestationRequired sets the appActionIfSamsungKnoxAttestationRequired property value. Defines the behavior of a managed app when Samsung Knox Attestation is required. Possible values are null, warn, block & wipe. If the admin does not set this action, the default is null, which indicates this setting is not configured. +// SetAppActionIfSamsungKnoxAttestationRequired sets the appActionIfSamsungKnoxAttestationRequired property value. Defines the behavior of a managed app when Samsung Knox Attestation is required. Possible values are null, warn, block & wipe. If the admin does not set this action, the default is null, which indicates this setting is not configured. Possible values are: block, wipe, warn. func (m *AndroidManagedAppProtection) SetAppActionIfSamsungKnoxAttestationRequired(value *ManagedAppRemediationAction)() { err := m.GetBackingStore().Set("appActionIfSamsungKnoxAttestationRequired", value) if err != nil { @@ -1470,14 +1470,14 @@ func (m *AndroidManagedAppProtection) SetConnectToVpnOnLaunch(value *bool)() { panic(err) } } -// SetCustomBrowserDisplayName sets the customBrowserDisplayName property value. Friendly name of the preferred custom browser to open weblink on Android. +// SetCustomBrowserDisplayName sets the customBrowserDisplayName property value. Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. func (m *AndroidManagedAppProtection) SetCustomBrowserDisplayName(value *string)() { err := m.GetBackingStore().Set("customBrowserDisplayName", value) if err != nil { panic(err) } } -// SetCustomBrowserPackageId sets the customBrowserPackageId property value. Unique identifier of a custom browser to open weblink on Android. +// SetCustomBrowserPackageId sets the customBrowserPackageId property value. Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. func (m *AndroidManagedAppProtection) SetCustomBrowserPackageId(value *string)() { err := m.GetBackingStore().Set("customBrowserPackageId", value) if err != nil { diff --git a/models/android_managed_store_app.go b/models/android_managed_store_app.go index ce9b74cd84c..89b1bc2ec3b 100644 --- a/models/android_managed_store_app.go +++ b/models/android_managed_store_app.go @@ -52,7 +52,7 @@ func (m *AndroidManagedStoreApp) GetAppIdentifier()(*string) { } return nil } -// GetAppStoreUrl gets the appStoreUrl property value. The Play for Work Store app URL. +// GetAppStoreUrl gets the appStoreUrl property value. The Play for Work Store app URL. This property is read-only. // returns a *string when successful func (m *AndroidManagedStoreApp) GetAppStoreUrl()(*string) { val, err := m.GetBackingStore().Get("appStoreUrl") @@ -64,7 +64,7 @@ func (m *AndroidManagedStoreApp) GetAppStoreUrl()(*string) { } return nil } -// GetAppTracks gets the appTracks property value. The tracks that are visible to this enterprise. +// GetAppTracks gets the appTracks property value. The tracks that are visible to this enterprise. This property is read-only. // returns a []AndroidManagedStoreAppTrackable when successful func (m *AndroidManagedStoreApp) GetAppTracks()([]AndroidManagedStoreAppTrackable) { val, err := m.GetBackingStore().Get("appTracks") @@ -178,7 +178,7 @@ func (m *AndroidManagedStoreApp) GetFieldDeserializers()(map[string]func(i878a80 } return res } -// GetIsPrivate gets the isPrivate property value. Indicates whether the app is only available to a given enterprise's users. +// GetIsPrivate gets the isPrivate property value. Indicates whether the app is only available to a given enterprise's users. This property is read-only. // returns a *bool when successful func (m *AndroidManagedStoreApp) GetIsPrivate()(*bool) { val, err := m.GetBackingStore().Get("isPrivate") @@ -202,7 +202,7 @@ func (m *AndroidManagedStoreApp) GetIsSystemApp()(*bool) { } return nil } -// GetPackageId gets the packageId property value. The package identifier. +// GetPackageId gets the packageId property value. The package identifier. This property is read-only. // returns a *string when successful func (m *AndroidManagedStoreApp) GetPackageId()(*string) { val, err := m.GetBackingStore().Get("packageId") @@ -214,7 +214,7 @@ func (m *AndroidManagedStoreApp) GetPackageId()(*string) { } return nil } -// GetSupportsOemConfig gets the supportsOemConfig property value. Whether this app supports OEMConfig policy. +// GetSupportsOemConfig gets the supportsOemConfig property value. Whether this app supports OEMConfig policy. This property is read-only. // returns a *bool when successful func (m *AndroidManagedStoreApp) GetSupportsOemConfig()(*bool) { val, err := m.GetBackingStore().Get("supportsOemConfig") @@ -226,7 +226,7 @@ func (m *AndroidManagedStoreApp) GetSupportsOemConfig()(*bool) { } return nil } -// GetTotalLicenseCount gets the totalLicenseCount property value. The total number of VPP licenses. +// GetTotalLicenseCount gets the totalLicenseCount property value. The total number of VPP licenses. This property is read-only. // returns a *int32 when successful func (m *AndroidManagedStoreApp) GetTotalLicenseCount()(*int32) { val, err := m.GetBackingStore().Get("totalLicenseCount") @@ -238,7 +238,7 @@ func (m *AndroidManagedStoreApp) GetTotalLicenseCount()(*int32) { } return nil } -// GetUsedLicenseCount gets the usedLicenseCount property value. The number of VPP licenses in use. +// GetUsedLicenseCount gets the usedLicenseCount property value. The number of VPP licenses in use. This property is read-only. // returns a *int32 when successful func (m *AndroidManagedStoreApp) GetUsedLicenseCount()(*int32) { val, err := m.GetBackingStore().Get("usedLicenseCount") @@ -262,60 +262,12 @@ func (m *AndroidManagedStoreApp) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } - { - err = writer.WriteStringValue("appStoreUrl", m.GetAppStoreUrl()) - if err != nil { - return err - } - } - if m.GetAppTracks() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAppTracks())) - for i, v := range m.GetAppTracks() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("appTracks", cast) - if err != nil { - return err - } - } - { - err = writer.WriteBoolValue("isPrivate", m.GetIsPrivate()) - if err != nil { - return err - } - } { err = writer.WriteBoolValue("isSystemApp", m.GetIsSystemApp()) if err != nil { return err } } - { - err = writer.WriteStringValue("packageId", m.GetPackageId()) - if err != nil { - return err - } - } - { - err = writer.WriteBoolValue("supportsOemConfig", m.GetSupportsOemConfig()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("totalLicenseCount", m.GetTotalLicenseCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("usedLicenseCount", m.GetUsedLicenseCount()) - if err != nil { - return err - } - } return nil } // SetAppIdentifier sets the appIdentifier property value. The Identity Name. @@ -325,21 +277,21 @@ func (m *AndroidManagedStoreApp) SetAppIdentifier(value *string)() { panic(err) } } -// SetAppStoreUrl sets the appStoreUrl property value. The Play for Work Store app URL. +// SetAppStoreUrl sets the appStoreUrl property value. The Play for Work Store app URL. This property is read-only. func (m *AndroidManagedStoreApp) SetAppStoreUrl(value *string)() { err := m.GetBackingStore().Set("appStoreUrl", value) if err != nil { panic(err) } } -// SetAppTracks sets the appTracks property value. The tracks that are visible to this enterprise. +// SetAppTracks sets the appTracks property value. The tracks that are visible to this enterprise. This property is read-only. func (m *AndroidManagedStoreApp) SetAppTracks(value []AndroidManagedStoreAppTrackable)() { err := m.GetBackingStore().Set("appTracks", value) if err != nil { panic(err) } } -// SetIsPrivate sets the isPrivate property value. Indicates whether the app is only available to a given enterprise's users. +// SetIsPrivate sets the isPrivate property value. Indicates whether the app is only available to a given enterprise's users. This property is read-only. func (m *AndroidManagedStoreApp) SetIsPrivate(value *bool)() { err := m.GetBackingStore().Set("isPrivate", value) if err != nil { @@ -353,28 +305,28 @@ func (m *AndroidManagedStoreApp) SetIsSystemApp(value *bool)() { panic(err) } } -// SetPackageId sets the packageId property value. The package identifier. +// SetPackageId sets the packageId property value. The package identifier. This property is read-only. func (m *AndroidManagedStoreApp) SetPackageId(value *string)() { err := m.GetBackingStore().Set("packageId", value) if err != nil { panic(err) } } -// SetSupportsOemConfig sets the supportsOemConfig property value. Whether this app supports OEMConfig policy. +// SetSupportsOemConfig sets the supportsOemConfig property value. Whether this app supports OEMConfig policy. This property is read-only. func (m *AndroidManagedStoreApp) SetSupportsOemConfig(value *bool)() { err := m.GetBackingStore().Set("supportsOemConfig", value) if err != nil { panic(err) } } -// SetTotalLicenseCount sets the totalLicenseCount property value. The total number of VPP licenses. +// SetTotalLicenseCount sets the totalLicenseCount property value. The total number of VPP licenses. This property is read-only. func (m *AndroidManagedStoreApp) SetTotalLicenseCount(value *int32)() { err := m.GetBackingStore().Set("totalLicenseCount", value) if err != nil { panic(err) } } -// SetUsedLicenseCount sets the usedLicenseCount property value. The number of VPP licenses in use. +// SetUsedLicenseCount sets the usedLicenseCount property value. The number of VPP licenses in use. This property is read-only. func (m *AndroidManagedStoreApp) SetUsedLicenseCount(value *int32)() { err := m.GetBackingStore().Set("usedLicenseCount", value) if err != nil { diff --git a/models/android_managed_store_app_configuration.go b/models/android_managed_store_app_configuration.go index 5ff89da8f22..c1381a46253 100644 --- a/models/android_managed_store_app_configuration.go +++ b/models/android_managed_store_app_configuration.go @@ -22,7 +22,7 @@ func NewAndroidManagedStoreAppConfiguration()(*AndroidManagedStoreAppConfigurati func CreateAndroidManagedStoreAppConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAndroidManagedStoreAppConfiguration(), nil } -// GetAppSupportsOemConfig gets the appSupportsOemConfig property value. Whether or not this AppConfig is an OEMConfig policy. +// GetAppSupportsOemConfig gets the appSupportsOemConfig property value. Whether or not this AppConfig is an OEMConfig policy. This property is read-only. // returns a *bool when successful func (m *AndroidManagedStoreAppConfiguration) GetAppSupportsOemConfig()(*bool) { val, err := m.GetBackingStore().Get("appSupportsOemConfig") @@ -172,12 +172,6 @@ func (m *AndroidManagedStoreAppConfiguration) Serialize(writer i878a80d2330e89d2 if err != nil { return err } - { - err = writer.WriteBoolValue("appSupportsOemConfig", m.GetAppSupportsOemConfig()) - if err != nil { - return err - } - } { err = writer.WriteBoolValue("connectedAppsEnabled", m.GetConnectedAppsEnabled()) if err != nil { @@ -217,7 +211,7 @@ func (m *AndroidManagedStoreAppConfiguration) Serialize(writer i878a80d2330e89d2 } return nil } -// SetAppSupportsOemConfig sets the appSupportsOemConfig property value. Whether or not this AppConfig is an OEMConfig policy. +// SetAppSupportsOemConfig sets the appSupportsOemConfig property value. Whether or not this AppConfig is an OEMConfig policy. This property is read-only. func (m *AndroidManagedStoreAppConfiguration) SetAppSupportsOemConfig(value *bool)() { err := m.GetBackingStore().Set("appSupportsOemConfig", value) if err != nil { diff --git a/models/android_managed_store_app_track.go b/models/android_managed_store_app_track.go index 3355691d8c0..bc2b5244cfc 100644 --- a/models/android_managed_store_app_track.go +++ b/models/android_managed_store_app_track.go @@ -89,7 +89,7 @@ func (m *AndroidManagedStoreAppTrack) GetOdataType()(*string) { } return nil } -// GetTrackAlias gets the trackAlias property value. Friendly name for track. +// GetTrackAlias gets the trackAlias property value. Friendly name for track. This property is read-only. // returns a *string when successful func (m *AndroidManagedStoreAppTrack) GetTrackAlias()(*string) { val, err := m.GetBackingStore().Get("trackAlias") @@ -101,7 +101,7 @@ func (m *AndroidManagedStoreAppTrack) GetTrackAlias()(*string) { } return nil } -// GetTrackId gets the trackId property value. Unique track identifier. +// GetTrackId gets the trackId property value. Unique track identifier. This property is read-only. // returns a *string when successful func (m *AndroidManagedStoreAppTrack) GetTrackId()(*string) { val, err := m.GetBackingStore().Get("trackId") @@ -121,18 +121,6 @@ func (m *AndroidManagedStoreAppTrack) Serialize(writer i878a80d2330e89d26896388a return err } } - { - err := writer.WriteStringValue("trackAlias", m.GetTrackAlias()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("trackId", m.GetTrackId()) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -159,14 +147,14 @@ func (m *AndroidManagedStoreAppTrack) SetOdataType(value *string)() { panic(err) } } -// SetTrackAlias sets the trackAlias property value. Friendly name for track. +// SetTrackAlias sets the trackAlias property value. Friendly name for track. This property is read-only. func (m *AndroidManagedStoreAppTrack) SetTrackAlias(value *string)() { err := m.GetBackingStore().Set("trackAlias", value) if err != nil { panic(err) } } -// SetTrackId sets the trackId property value. Unique track identifier. +// SetTrackId sets the trackId property value. Unique track identifier. This property is read-only. func (m *AndroidManagedStoreAppTrack) SetTrackId(value *string)() { err := m.GetBackingStore().Set("trackId", value) if err != nil { diff --git a/models/android_store_app.go b/models/android_store_app.go index 8396d115c06..903a66c61e9 100644 --- a/models/android_store_app.go +++ b/models/android_store_app.go @@ -22,7 +22,7 @@ func NewAndroidStoreApp()(*AndroidStoreApp) { func CreateAndroidStoreAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAndroidStoreApp(), nil } -// GetAppIdentifier gets the appIdentifier property value. The Identity Name. +// GetAppIdentifier gets the appIdentifier property value. The Identity Name. This property is read-only. // returns a *string when successful func (m *AndroidStoreApp) GetAppIdentifier()(*string) { val, err := m.GetBackingStore().Get("appIdentifier") @@ -104,7 +104,7 @@ func (m *AndroidStoreApp) GetMinimumSupportedOperatingSystem()(AndroidMinimumOpe } return nil } -// GetPackageId gets the packageId property value. The package identifier. +// GetPackageId gets the packageId property value. The package identifier. This property is read-only. // returns a *string when successful func (m *AndroidStoreApp) GetPackageId()(*string) { val, err := m.GetBackingStore().Get("packageId") @@ -122,12 +122,6 @@ func (m *AndroidStoreApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } - { - err = writer.WriteStringValue("appIdentifier", m.GetAppIdentifier()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("appStoreUrl", m.GetAppStoreUrl()) if err != nil { @@ -140,15 +134,9 @@ func (m *AndroidStoreApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } - { - err = writer.WriteStringValue("packageId", m.GetPackageId()) - if err != nil { - return err - } - } return nil } -// SetAppIdentifier sets the appIdentifier property value. The Identity Name. +// SetAppIdentifier sets the appIdentifier property value. The Identity Name. This property is read-only. func (m *AndroidStoreApp) SetAppIdentifier(value *string)() { err := m.GetBackingStore().Set("appIdentifier", value) if err != nil { @@ -169,7 +157,7 @@ func (m *AndroidStoreApp) SetMinimumSupportedOperatingSystem(value AndroidMinimu panic(err) } } -// SetPackageId sets the packageId property value. The package identifier. +// SetPackageId sets the packageId property value. The package identifier. This property is read-only. func (m *AndroidStoreApp) SetPackageId(value *string)() { err := m.GetBackingStore().Set("packageId", value) if err != nil { diff --git a/models/application.go b/models/application.go index 3148768aefa..ded6c60d20e 100644 --- a/models/application.go +++ b/models/application.go @@ -131,7 +131,7 @@ func (m *Application) GetCreatedOnBehalfOf()(DirectoryObjectable) { } return nil } -// GetDefaultRedirectUri gets the defaultRedirectUri property value. The default redirect URI. If specified and there is no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application. +// GetDefaultRedirectUri gets the defaultRedirectUri property value. The default redirect URI. If specified and there's no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application. // returns a *string when successful func (m *Application) GetDefaultRedirectUri()(*string) { val, err := m.GetBackingStore().Get("defaultRedirectUri") @@ -143,7 +143,7 @@ func (m *Application) GetDefaultRedirectUri()(*string) { } return nil } -// GetDescription gets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. +// GetDescription gets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. // returns a *string when successful func (m *Application) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -781,7 +781,7 @@ func (m *Application) GetHomeRealmDiscoveryPolicies()([]HomeRealmDiscoveryPolicy } return nil } -// GetIdentifierUris gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). +// GetIdentifierUris gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). // returns a []string when successful func (m *Application) GetIdentifierUris()([]string) { val, err := m.GetBackingStore().Get("identifierUris") @@ -817,7 +817,7 @@ func (m *Application) GetIsDeviceOnlyAuthSupported()(*bool) { } return nil } -// GetIsFallbackPublicClient gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. +// GetIsFallbackPublicClient gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. // returns a *bool when successful func (m *Application) GetIsFallbackPublicClient()(*bool) { val, err := m.GetBackingStore().Get("isFallbackPublicClient") @@ -997,7 +997,7 @@ func (m *Application) GetServiceManagementReference()(*string) { } return nil } -// GetServicePrincipalLockConfiguration gets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multi-tenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. +// GetServicePrincipalLockConfiguration gets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. // returns a ServicePrincipalLockConfigurationable when successful func (m *Application) GetServicePrincipalLockConfiguration()(ServicePrincipalLockConfigurationable) { val, err := m.GetBackingStore().Get("servicePrincipalLockConfiguration") @@ -1045,7 +1045,7 @@ func (m *Application) GetSynchronization()(Synchronizationable) { } return nil } -// GetTags gets the tags property value. Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith) and $search. +// GetTags gets the tags property value. Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith) and $search. // returns a []string when successful func (m *Application) GetTags()([]string) { val, err := m.GetBackingStore().Get("tags") @@ -1093,7 +1093,7 @@ func (m *Application) GetTokenLifetimePolicies()([]TokenLifetimePolicyable) { } return nil } -// GetUniqueName gets the uniqueName property value. The unique identifier that can be assigned to an application as an alternative identifier. Immutable. Read-only. +// GetUniqueName gets the uniqueName property value. The unique identifier that can be assigned to an application and used as an alternate key. Immutable. Read-only. // returns a *string when successful func (m *Application) GetUniqueName()(*string) { val, err := m.GetBackingStore().Get("uniqueName") @@ -1560,14 +1560,14 @@ func (m *Application) SetCreatedOnBehalfOf(value DirectoryObjectable)() { panic(err) } } -// SetDefaultRedirectUri sets the defaultRedirectUri property value. The default redirect URI. If specified and there is no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application. +// SetDefaultRedirectUri sets the defaultRedirectUri property value. The default redirect URI. If specified and there's no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application. func (m *Application) SetDefaultRedirectUri(value *string)() { err := m.GetBackingStore().Set("defaultRedirectUri", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. +// SetDescription sets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. func (m *Application) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { @@ -1616,7 +1616,7 @@ func (m *Application) SetHomeRealmDiscoveryPolicies(value []HomeRealmDiscoveryPo panic(err) } } -// SetIdentifierUris sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). +// SetIdentifierUris sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). func (m *Application) SetIdentifierUris(value []string)() { err := m.GetBackingStore().Set("identifierUris", value) if err != nil { @@ -1637,7 +1637,7 @@ func (m *Application) SetIsDeviceOnlyAuthSupported(value *bool)() { panic(err) } } -// SetIsFallbackPublicClient sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. +// SetIsFallbackPublicClient sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. func (m *Application) SetIsFallbackPublicClient(value *bool)() { err := m.GetBackingStore().Set("isFallbackPublicClient", value) if err != nil { @@ -1742,7 +1742,7 @@ func (m *Application) SetServiceManagementReference(value *string)() { panic(err) } } -// SetServicePrincipalLockConfiguration sets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multi-tenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. +// SetServicePrincipalLockConfiguration sets the servicePrincipalLockConfiguration property value. Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. func (m *Application) SetServicePrincipalLockConfiguration(value ServicePrincipalLockConfigurationable)() { err := m.GetBackingStore().Set("servicePrincipalLockConfiguration", value) if err != nil { @@ -1770,7 +1770,7 @@ func (m *Application) SetSynchronization(value Synchronizationable)() { panic(err) } } -// SetTags sets the tags property value. Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith) and $search. +// SetTags sets the tags property value. Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith) and $search. func (m *Application) SetTags(value []string)() { err := m.GetBackingStore().Set("tags", value) if err != nil { @@ -1798,7 +1798,7 @@ func (m *Application) SetTokenLifetimePolicies(value []TokenLifetimePolicyable)( panic(err) } } -// SetUniqueName sets the uniqueName property value. The unique identifier that can be assigned to an application as an alternative identifier. Immutable. Read-only. +// SetUniqueName sets the uniqueName property value. The unique identifier that can be assigned to an application and used as an alternate key. Immutable. Read-only. func (m *Application) SetUniqueName(value *string)() { err := m.GetBackingStore().Set("uniqueName", value) if err != nil { diff --git a/models/application_detail.go b/models/application_detail.go index deacf8e1c16..d7caf80414a 100644 --- a/models/application_detail.go +++ b/models/application_detail.go @@ -147,7 +147,7 @@ func (m *ApplicationDetail) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetFileDescription gets the fileDescription property value. The path of the file in the request for elevation, for example, %programfiles%\git\cmd +// GetFileDescription gets the fileDescription property value. The path of the file in the request for elevation, for example, %programfiles%/git/cmd // returns a *string when successful func (m *ApplicationDetail) GetFileDescription()(*string) { val, err := m.GetBackingStore().Get("fileDescription") @@ -183,7 +183,7 @@ func (m *ApplicationDetail) GetFileName()(*string) { } return nil } -// GetFilePath gets the filePath property value. The path of the file in the request for elevation, for example, %programfiles%\git\cmd +// GetFilePath gets the filePath property value. The path of the file in the request for elevation, for example, %programfiles%/git/cmd // returns a *string when successful func (m *ApplicationDetail) GetFilePath()(*string) { val, err := m.GetBackingStore().Get("filePath") @@ -243,7 +243,7 @@ func (m *ApplicationDetail) GetProductVersion()(*string) { } return nil } -// GetPublisherCert gets the publisherCert property value. The list of base64 encoded certificate for each signer, for example, string[encoded_leaf_cert1, encoded_leaf_cert2....] +// GetPublisherCert gets the publisherCert property value. The list of base64 encoded certificate for each signer, for example, string[encodedleafcert1, encodedleafcert2....] // returns a *string when successful func (m *ApplicationDetail) GetPublisherCert()(*string) { val, err := m.GetBackingStore().Get("publisherCert") @@ -348,7 +348,7 @@ func (m *ApplicationDetail) SetAdditionalData(value map[string]any)() { func (m *ApplicationDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetFileDescription sets the fileDescription property value. The path of the file in the request for elevation, for example, %programfiles%\git\cmd +// SetFileDescription sets the fileDescription property value. The path of the file in the request for elevation, for example, %programfiles%/git/cmd func (m *ApplicationDetail) SetFileDescription(value *string)() { err := m.GetBackingStore().Set("fileDescription", value) if err != nil { @@ -369,7 +369,7 @@ func (m *ApplicationDetail) SetFileName(value *string)() { panic(err) } } -// SetFilePath sets the filePath property value. The path of the file in the request for elevation, for example, %programfiles%\git\cmd +// SetFilePath sets the filePath property value. The path of the file in the request for elevation, for example, %programfiles%/git/cmd func (m *ApplicationDetail) SetFilePath(value *string)() { err := m.GetBackingStore().Set("filePath", value) if err != nil { @@ -404,7 +404,7 @@ func (m *ApplicationDetail) SetProductVersion(value *string)() { panic(err) } } -// SetPublisherCert sets the publisherCert property value. The list of base64 encoded certificate for each signer, for example, string[encoded_leaf_cert1, encoded_leaf_cert2....] +// SetPublisherCert sets the publisherCert property value. The list of base64 encoded certificate for each signer, for example, string[encodedleafcert1, encodedleafcert2....] func (m *ApplicationDetail) SetPublisherCert(value *string)() { err := m.GetBackingStore().Set("publisherCert", value) if err != nil { diff --git a/models/authentication_flow.go b/models/authentication_flow.go new file mode 100644 index 00000000000..72b9a825339 --- /dev/null +++ b/models/authentication_flow.go @@ -0,0 +1,151 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AuthenticationFlow struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAuthenticationFlow instantiates a new AuthenticationFlow and sets the default values. +func NewAuthenticationFlow()(*AuthenticationFlow) { + m := &AuthenticationFlow{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAuthenticationFlowFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAuthenticationFlowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAuthenticationFlow(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AuthenticationFlow) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AuthenticationFlow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AuthenticationFlow) 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["transferMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionalAccessTransferMethods) + if err != nil { + return err + } + if val != nil { + m.SetTransferMethod(val.(*ConditionalAccessTransferMethods)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AuthenticationFlow) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTransferMethod gets the transferMethod property value. The transferMethod property +// returns a *ConditionalAccessTransferMethods when successful +func (m *AuthenticationFlow) GetTransferMethod()(*ConditionalAccessTransferMethods) { + val, err := m.GetBackingStore().Get("transferMethod") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionalAccessTransferMethods) + } + return nil +} +// Serialize serializes information the current object +func (m *AuthenticationFlow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetTransferMethod() != nil { + cast := (*m.GetTransferMethod()).String() + err := writer.WriteStringValue("transferMethod", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AuthenticationFlow) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AuthenticationFlow) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AuthenticationFlow) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTransferMethod sets the transferMethod property value. The transferMethod property +func (m *AuthenticationFlow) SetTransferMethod(value *ConditionalAccessTransferMethods)() { + err := m.GetBackingStore().Set("transferMethod", value) + if err != nil { + panic(err) + } +} +type AuthenticationFlowable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetTransferMethod()(*ConditionalAccessTransferMethods) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetTransferMethod(value *ConditionalAccessTransferMethods)() +} diff --git a/models/booking_appointment.go b/models/booking_appointment.go index c805cd61fcb..3cbc30867e5 100644 --- a/models/booking_appointment.go +++ b/models/booking_appointment.go @@ -45,7 +45,7 @@ func (m *BookingAppointment) GetAnonymousJoinWebUrl()(*string) { } return nil } -// GetAppointmentLabel gets the appointmentLabel property value. Custom label that can be stamped on this appointment by the user. +// GetAppointmentLabel gets the appointmentLabel property value. The user can stamp a custom label on the appointment. // returns a *string when successful func (m *BookingAppointment) GetAppointmentLabel()(*string) { val, err := m.GetBackingStore().Get("appointmentLabel") @@ -57,7 +57,7 @@ func (m *BookingAppointment) GetAppointmentLabel()(*string) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The date, time and timezone when the appointment was created. +// GetCreatedDateTime gets the createdDateTime property value. The date, time, and timezone when the appointment was created. // returns a *Time when successful func (m *BookingAppointment) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -685,7 +685,7 @@ func (m *BookingAppointment) GetInvoiceUrl()(*string) { } return nil } -// GetIsCustomerAllowedToManageBooking gets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +// GetIsCustomerAllowedToManageBooking gets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. // returns a *bool when successful func (m *BookingAppointment) GetIsCustomerAllowedToManageBooking()(*bool) { val, err := m.GetBackingStore().Get("isCustomerAllowedToManageBooking") @@ -697,7 +697,7 @@ func (m *BookingAppointment) GetIsCustomerAllowedToManageBooking()(*bool) { } return nil } -// GetIsLocationOnline gets the isLocationOnline property value. True indicates that the appointment will be held online. Default value is false. +// GetIsLocationOnline gets the isLocationOnline property value. Indicates that the appointment is held online. The default value is false. // returns a *bool when successful func (m *BookingAppointment) GetIsLocationOnline()(*bool) { val, err := m.GetBackingStore().Get("isLocationOnline") @@ -829,7 +829,7 @@ func (m *BookingAppointment) GetReminders()([]BookingReminderable) { } return nil } -// GetSelfServiceAppointmentId gets the selfServiceAppointmentId property value. An additional tracking ID for the appointment, if the appointment has been created directly by the customer on the scheduling page, as opposed to by a staff member on the behalf of the customer. +// GetSelfServiceAppointmentId gets the selfServiceAppointmentId property value. Another tracking ID for the appointment, if the appointment was created directly by the customer on the scheduling page, as opposed to by a staff member on behalf of customer. // returns a *string when successful func (m *BookingAppointment) GetSelfServiceAppointmentId()(*string) { val, err := m.GetBackingStore().Get("selfServiceAppointmentId") @@ -1189,14 +1189,14 @@ func (m *BookingAppointment) SetAnonymousJoinWebUrl(value *string)() { panic(err) } } -// SetAppointmentLabel sets the appointmentLabel property value. Custom label that can be stamped on this appointment by the user. +// SetAppointmentLabel sets the appointmentLabel property value. The user can stamp a custom label on the appointment. func (m *BookingAppointment) SetAppointmentLabel(value *string)() { err := m.GetBackingStore().Set("appointmentLabel", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The date, time and timezone when the appointment was created. +// SetCreatedDateTime sets the createdDateTime property value. The date, time, and timezone when the appointment was created. func (m *BookingAppointment) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { @@ -1315,14 +1315,14 @@ func (m *BookingAppointment) SetInvoiceUrl(value *string)() { panic(err) } } -// SetIsCustomerAllowedToManageBooking sets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +// SetIsCustomerAllowedToManageBooking sets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. func (m *BookingAppointment) SetIsCustomerAllowedToManageBooking(value *bool)() { err := m.GetBackingStore().Set("isCustomerAllowedToManageBooking", value) if err != nil { panic(err) } } -// SetIsLocationOnline sets the isLocationOnline property value. True indicates that the appointment will be held online. Default value is false. +// SetIsLocationOnline sets the isLocationOnline property value. Indicates that the appointment is held online. The default value is false. func (m *BookingAppointment) SetIsLocationOnline(value *bool)() { err := m.GetBackingStore().Set("isLocationOnline", value) if err != nil { @@ -1399,7 +1399,7 @@ func (m *BookingAppointment) SetReminders(value []BookingReminderable)() { panic(err) } } -// SetSelfServiceAppointmentId sets the selfServiceAppointmentId property value. An additional tracking ID for the appointment, if the appointment has been created directly by the customer on the scheduling page, as opposed to by a staff member on the behalf of the customer. +// SetSelfServiceAppointmentId sets the selfServiceAppointmentId property value. Another tracking ID for the appointment, if the appointment was created directly by the customer on the scheduling page, as opposed to by a staff member on behalf of customer. func (m *BookingAppointment) SetSelfServiceAppointmentId(value *string)() { err := m.GetBackingStore().Set("selfServiceAppointmentId", value) if err != nil { diff --git a/models/booking_scheduling_policy.go b/models/booking_scheduling_policy.go index cdff6b78318..71065446e58 100644 --- a/models/booking_scheduling_policy.go +++ b/models/booking_scheduling_policy.go @@ -53,7 +53,7 @@ func (m *BookingSchedulingPolicy) GetAllowStaffSelection()(*bool) { func (m *BookingSchedulingPolicy) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCustomAvailabilities gets the customAvailabilities property value. collection of custom availabilities for a given time range. +// GetCustomAvailabilities gets the customAvailabilities property value. Custom availability of the service in a given time frame of the service. // returns a []BookingsAvailabilityWindowable when successful func (m *BookingSchedulingPolicy) GetCustomAvailabilities()([]BookingsAvailabilityWindowable) { val, err := m.GetBackingStore().Get("customAvailabilities") @@ -167,7 +167,7 @@ func (m *BookingSchedulingPolicy) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetGeneralAvailability gets the generalAvailability property value. General availability +// GetGeneralAvailability gets the generalAvailability property value. General availability of the service defined by the scheduling policy. // returns a BookingsAvailabilityable when successful func (m *BookingSchedulingPolicy) GetGeneralAvailability()(BookingsAvailabilityable) { val, err := m.GetBackingStore().Get("generalAvailability") @@ -339,14 +339,14 @@ func (m *BookingSchedulingPolicy) SetAllowStaffSelection(value *bool)() { func (m *BookingSchedulingPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCustomAvailabilities sets the customAvailabilities property value. collection of custom availabilities for a given time range. +// SetCustomAvailabilities sets the customAvailabilities property value. Custom availability of the service in a given time frame of the service. func (m *BookingSchedulingPolicy) SetCustomAvailabilities(value []BookingsAvailabilityWindowable)() { err := m.GetBackingStore().Set("customAvailabilities", value) if err != nil { panic(err) } } -// SetGeneralAvailability sets the generalAvailability property value. General availability +// SetGeneralAvailability sets the generalAvailability property value. General availability of the service defined by the scheduling policy. func (m *BookingSchedulingPolicy) SetGeneralAvailability(value BookingsAvailabilityable)() { err := m.GetBackingStore().Set("generalAvailability", value) if err != nil { diff --git a/models/booking_service.go b/models/booking_service.go index ffe6eaa3a6a..1b579516dfd 100644 --- a/models/booking_service.go +++ b/models/booking_service.go @@ -397,7 +397,7 @@ func (m *BookingService) GetIsAnonymousJoinEnabled()(*bool) { } return nil } -// GetIsCustomerAllowedToManageBooking gets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +// GetIsCustomerAllowedToManageBooking gets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. // returns a *bool when successful func (m *BookingService) GetIsCustomerAllowedToManageBooking()(*bool) { val, err := m.GetBackingStore().Get("isCustomerAllowedToManageBooking") @@ -776,7 +776,7 @@ func (m *BookingService) SetIsAnonymousJoinEnabled(value *bool)() { panic(err) } } -// SetIsCustomerAllowedToManageBooking sets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +// SetIsCustomerAllowedToManageBooking sets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false. func (m *BookingService) SetIsCustomerAllowedToManageBooking(value *bool)() { err := m.GetBackingStore().Set("isCustomerAllowedToManageBooking", value) if err != nil { diff --git a/models/bookings_availability.go b/models/bookings_availability.go index dbbf924838d..74e17d1a7f1 100644 --- a/models/bookings_availability.go +++ b/models/bookings_availability.go @@ -70,7 +70,7 @@ func (m *BookingsAvailability) GetAvailabilityType()(*BookingsServiceAvailabilit func (m *BookingsAvailability) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBusinessHours gets the businessHours property value. The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours +// GetBusinessHours gets the businessHours property value. The hours of operation in a week. The business hours value is set to null if the availability type isn't customWeeklyHours. // returns a []BookingWorkHoursable when successful func (m *BookingsAvailability) GetBusinessHours()([]BookingWorkHoursable) { val, err := m.GetBackingStore().Get("businessHours") @@ -189,7 +189,7 @@ func (m *BookingsAvailability) SetAvailabilityType(value *BookingsServiceAvailab func (m *BookingsAvailability) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBusinessHours sets the businessHours property value. The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours +// SetBusinessHours sets the businessHours property value. The hours of operation in a week. The business hours value is set to null if the availability type isn't customWeeklyHours. func (m *BookingsAvailability) SetBusinessHours(value []BookingWorkHoursable)() { err := m.GetBackingStore().Set("businessHours", value) if err != nil { diff --git a/models/bookings_availability_window.go b/models/bookings_availability_window.go index 974ba37818a..3951ac7556c 100644 --- a/models/bookings_availability_window.go +++ b/models/bookings_availability_window.go @@ -21,7 +21,7 @@ func NewBookingsAvailabilityWindow()(*BookingsAvailabilityWindow) { func CreateBookingsAvailabilityWindowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewBookingsAvailabilityWindow(), nil } -// GetEndDate gets the endDate property value. Allow customers to end date of availability window. +// GetEndDate gets the endDate property value. End date of the availability window. // returns a *DateOnly when successful func (m *BookingsAvailabilityWindow) GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("endDate") @@ -59,7 +59,7 @@ func (m *BookingsAvailabilityWindow) GetFieldDeserializers()(map[string]func(i87 } return res } -// GetStartDate gets the startDate property value. Allow customers to start date of availability window. +// GetStartDate gets the startDate property value. Start date of the availability window. // returns a *DateOnly when successful func (m *BookingsAvailabilityWindow) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("startDate") @@ -91,14 +91,14 @@ func (m *BookingsAvailabilityWindow) Serialize(writer i878a80d2330e89d26896388a3 } return nil } -// SetEndDate sets the endDate property value. Allow customers to end date of availability window. +// SetEndDate sets the endDate property value. End date of the availability window. func (m *BookingsAvailabilityWindow) SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("endDate", value) if err != nil { panic(err) } } -// SetStartDate sets the startDate property value. Allow customers to start date of availability window. +// SetStartDate sets the startDate property value. Start date of the availability window. func (m *BookingsAvailabilityWindow) SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("startDate", value) if err != nil { diff --git a/models/checklist_item.go b/models/checklist_item.go index 9509af70850..9475d946c8d 100644 --- a/models/checklist_item.go +++ b/models/checklist_item.go @@ -44,7 +44,7 @@ func (m *ChecklistItem) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a } return nil } -// GetDisplayName gets the displayName property value. Field indicating the title of checklistItem. +// GetDisplayName gets the displayName property value. Indicates the title of the checklistItem. // returns a *string when successful func (m *ChecklistItem) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -102,7 +102,7 @@ func (m *ChecklistItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetIsChecked gets the isChecked property value. State indicating whether the item is checked off or not. +// GetIsChecked gets the isChecked property value. State that indicates whether the item is checked off or not. // returns a *bool when successful func (m *ChecklistItem) GetIsChecked()(*bool) { val, err := m.GetBackingStore().Get("isChecked") @@ -160,14 +160,14 @@ func (m *ChecklistItem) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad9 panic(err) } } -// SetDisplayName sets the displayName property value. Field indicating the title of checklistItem. +// SetDisplayName sets the displayName property value. Indicates the title of the checklistItem. func (m *ChecklistItem) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetIsChecked sets the isChecked property value. State indicating whether the item is checked off or not. +// SetIsChecked sets the isChecked property value. State that indicates whether the item is checked off or not. func (m *ChecklistItem) SetIsChecked(value *bool)() { err := m.GetBackingStore().Set("isChecked", value) if err != nil { diff --git a/models/cloud_clipboard_item.go b/models/cloud_clipboard_item.go index 45f1fe6342e..a01e059626b 100644 --- a/models/cloud_clipboard_item.go +++ b/models/cloud_clipboard_item.go @@ -20,7 +20,7 @@ func NewCloudClipboardItem()(*CloudClipboardItem) { func CreateCloudClipboardItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudClipboardItem(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server. // returns a *Time when successful func (m *CloudClipboardItem) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -32,7 +32,7 @@ func (m *CloudClipboardItem) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad } return nil } -// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property +// GetExpirationDateTime gets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expires and after that the object is no longer available. The default and also maximum TTL is 12 hours after the creation, but it might change for performance optimization. // returns a *Time when successful func (m *CloudClipboardItem) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") @@ -96,7 +96,7 @@ func (m *CloudClipboardItem) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Set by the server if not provided in the client's request. DateTime in UTC when the object was modified by the client. // returns a *Time when successful func (m *CloudClipboardItem) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -108,7 +108,7 @@ func (m *CloudClipboardItem) GetLastModifiedDateTime()(*i336074805fc853987abe6f7 } return nil } -// GetPayloads gets the payloads property value. The payloads property +// GetPayloads gets the payloads property value. A cloudClipboardItem can have multiple cloudClipboardItemPayload objects in the payloads. A window can place more than one clipboard object on the clipboard. Each one represents the same information in a different clipboard format. // returns a []CloudClipboardItemPayloadable when successful func (m *CloudClipboardItem) GetPayloads()([]CloudClipboardItemPayloadable) { val, err := m.GetBackingStore().Get("payloads") @@ -158,28 +158,28 @@ func (m *CloudClipboardItem) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server. func (m *CloudClipboardItem) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property +// SetExpirationDateTime sets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expires and after that the object is no longer available. The default and also maximum TTL is 12 hours after the creation, but it might change for performance optimization. func (m *CloudClipboardItem) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Set by the server if not provided in the client's request. DateTime in UTC when the object was modified by the client. func (m *CloudClipboardItem) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetPayloads sets the payloads property value. The payloads property +// SetPayloads sets the payloads property value. A cloudClipboardItem can have multiple cloudClipboardItemPayload objects in the payloads. A window can place more than one clipboard object on the clipboard. Each one represents the same information in a different clipboard format. func (m *CloudClipboardItem) SetPayloads(value []CloudClipboardItemPayloadable)() { err := m.GetBackingStore().Set("payloads", value) if err != nil { diff --git a/models/cloud_clipboard_item_payload.go b/models/cloud_clipboard_item_payload.go index 28a13f566f1..f0291a05da1 100644 --- a/models/cloud_clipboard_item_payload.go +++ b/models/cloud_clipboard_item_payload.go @@ -40,7 +40,7 @@ func (m *CloudClipboardItemPayload) GetAdditionalData()(map[string]any) { func (m *CloudClipboardItemPayload) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetContent gets the content property value. The content property +// GetContent gets the content property value. The formatName version of the value of a cloud clipboard encoded in base64. // returns a *string when successful func (m *CloudClipboardItemPayload) GetContent()(*string) { val, err := m.GetBackingStore().Get("content") @@ -88,7 +88,7 @@ func (m *CloudClipboardItemPayload) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetFormatName gets the formatName property value. The formatName property +// GetFormatName gets the formatName property value. For a list of possible values see formatName values. // returns a *string when successful func (m *CloudClipboardItemPayload) GetFormatName()(*string) { val, err := m.GetBackingStore().Get("formatName") @@ -151,14 +151,14 @@ func (m *CloudClipboardItemPayload) SetAdditionalData(value map[string]any)() { func (m *CloudClipboardItemPayload) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetContent sets the content property value. The content property +// SetContent sets the content property value. The formatName version of the value of a cloud clipboard encoded in base64. func (m *CloudClipboardItemPayload) SetContent(value *string)() { err := m.GetBackingStore().Set("content", value) if err != nil { panic(err) } } -// SetFormatName sets the formatName property value. The formatName property +// SetFormatName sets the formatName property value. For a list of possible values see formatName values. func (m *CloudClipboardItemPayload) SetFormatName(value *string)() { err := m.GetBackingStore().Set("formatName", value) if err != nil { diff --git a/models/cloud_clipboard_root.go b/models/cloud_clipboard_root.go index c82e509a448..914eb10b4aa 100644 --- a/models/cloud_clipboard_root.go +++ b/models/cloud_clipboard_root.go @@ -41,7 +41,7 @@ func (m *CloudClipboardRoot) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetItems gets the items property value. The items property +// GetItems gets the items property value. Represents a collection of Cloud Clipboard items. // returns a []CloudClipboardItemable when successful func (m *CloudClipboardRoot) GetItems()([]CloudClipboardItemable) { val, err := m.GetBackingStore().Get("items") @@ -73,7 +73,7 @@ func (m *CloudClipboardRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetItems sets the items property value. The items property +// SetItems sets the items property value. Represents a collection of Cloud Clipboard items. func (m *CloudClipboardRoot) SetItems(value []CloudClipboardItemable)() { err := m.GetBackingStore().Set("items", value) if err != nil { diff --git a/models/cloud_pc_audit_event.go b/models/cloud_pc_audit_event.go index be889401ce2..57084d18592 100644 --- a/models/cloud_pc_audit_event.go +++ b/models/cloud_pc_audit_event.go @@ -68,7 +68,7 @@ func (m *CloudPcAuditEvent) GetActivityResult()(*CloudPcAuditActivityResult) { } return nil } -// GetActivityType gets the activityType property value. The type of activity that was performed. Read-only. +// GetActivityType gets the activityType property value. The type of the activity that was performed. Read-only. // returns a *string when successful func (m *CloudPcAuditEvent) GetActivityType()(*string) { val, err := m.GetBackingStore().Get("activityType") @@ -116,7 +116,7 @@ func (m *CloudPcAuditEvent) GetComponentName()(*string) { } return nil } -// GetCorrelationId gets the correlationId property value. The client request identifier, used to correlate activity within the system. Read-only. +// GetCorrelationId gets the correlationId property value. The client request ID that is used to correlate activity within the system. Read-only. // returns a *string when successful func (m *CloudPcAuditEvent) GetCorrelationId()(*string) { val, err := m.GetBackingStore().Get("correlationId") @@ -385,7 +385,7 @@ func (m *CloudPcAuditEvent) SetActivityResult(value *CloudPcAuditActivityResult) panic(err) } } -// SetActivityType sets the activityType property value. The type of activity that was performed. Read-only. +// SetActivityType sets the activityType property value. The type of the activity that was performed. Read-only. func (m *CloudPcAuditEvent) SetActivityType(value *string)() { err := m.GetBackingStore().Set("activityType", value) if err != nil { @@ -413,7 +413,7 @@ func (m *CloudPcAuditEvent) SetComponentName(value *string)() { panic(err) } } -// SetCorrelationId sets the correlationId property value. The client request identifier, used to correlate activity within the system. Read-only. +// SetCorrelationId sets the correlationId property value. The client request ID that is used to correlate activity within the system. Read-only. func (m *CloudPcAuditEvent) SetCorrelationId(value *string)() { err := m.GetBackingStore().Set("correlationId", value) if err != nil { diff --git a/models/cloud_pc_audit_resource.go b/models/cloud_pc_audit_resource.go index d9a36b6a4f9..41a4b217b8d 100644 --- a/models/cloud_pc_audit_resource.go +++ b/models/cloud_pc_audit_resource.go @@ -102,6 +102,16 @@ func (m *CloudPcAuditResource) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceType(val) + } + return nil + } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -150,6 +160,18 @@ func (m *CloudPcAuditResource) GetResourceId()(*string) { } return nil } +// GetResourceType gets the resourceType property value. The resourceType property +// returns a *string when successful +func (m *CloudPcAuditResource) GetResourceType()(*string) { + val, err := m.GetBackingStore().Get("resourceType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTypeEscaped gets the type property value. The type of the audit resource. // returns a *string when successful func (m *CloudPcAuditResource) GetTypeEscaped()(*string) { @@ -194,6 +216,12 @@ func (m *CloudPcAuditResource) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err := writer.WriteStringValue("resourceType", m.GetResourceType()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("type", m.GetTypeEscaped()) if err != nil { @@ -247,6 +275,13 @@ func (m *CloudPcAuditResource) SetResourceId(value *string)() { panic(err) } } +// SetResourceType sets the resourceType property value. The resourceType property +func (m *CloudPcAuditResource) SetResourceType(value *string)() { + err := m.GetBackingStore().Set("resourceType", value) + if err != nil { + panic(err) + } +} // SetTypeEscaped sets the type property value. The type of the audit resource. func (m *CloudPcAuditResource) SetTypeEscaped(value *string)() { err := m.GetBackingStore().Set("typeEscaped", value) @@ -263,11 +298,13 @@ type CloudPcAuditResourceable interface { GetModifiedProperties()([]CloudPcAuditPropertyable) GetOdataType()(*string) GetResourceId()(*string) + GetResourceType()(*string) GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetModifiedProperties(value []CloudPcAuditPropertyable)() SetOdataType(value *string)() SetResourceId(value *string)() + SetResourceType(value *string)() SetTypeEscaped(value *string)() } diff --git a/models/cloud_pc_domain_join_configuration.go b/models/cloud_pc_domain_join_configuration.go index 63f2b6d3b62..1f627ea2231 100644 --- a/models/cloud_pc_domain_join_configuration.go +++ b/models/cloud_pc_domain_join_configuration.go @@ -130,7 +130,7 @@ func (m *CloudPcDomainJoinConfiguration) GetOdataType()(*string) { } return nil } -// GetOnPremisesConnectionId gets the onPremisesConnectionId property value. The Azure network connection ID that matches the virtual network IT admins want the provisioning policy to use when they create Cloud PCs. You can use this property in both domain join types: Azure AD joined or Hybrid Microsoft Entra joined. If you enter an onPremisesConnectionId, leave regionName as empty. +// GetOnPremisesConnectionId gets the onPremisesConnectionId property value. The Azure network connection ID that matches the virtual network IT admins want the provisioning policy to use when they create Cloud PCs. You can use this property in both domain join types: Azure AD joined or Hybrid Microsoft Entra joined. If you enter an onPremisesConnectionId, leave the regionName property empty. // returns a *string when successful func (m *CloudPcDomainJoinConfiguration) GetOnPremisesConnectionId()(*string) { val, err := m.GetBackingStore().Get("onPremisesConnectionId") @@ -142,7 +142,7 @@ func (m *CloudPcDomainJoinConfiguration) GetOnPremisesConnectionId()(*string) { } return nil } -// GetRegionGroup gets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when provisioning a Cloud PC, and the Cloud PC will be put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, and southKorea. Read-only. +// GetRegionGroup gets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, and southKorea. Read-only. // returns a *CloudPcRegionGroup when successful func (m *CloudPcDomainJoinConfiguration) GetRegionGroup()(*CloudPcRegionGroup) { val, err := m.GetBackingStore().Get("regionGroup") @@ -154,7 +154,7 @@ func (m *CloudPcDomainJoinConfiguration) GetRegionGroup()(*CloudPcRegionGroup) { } return nil } -// GetRegionName gets the regionName property value. The supported Azure region where the IT admin wants the provisioning policy to create Cloud PCs. The underlying virtual network will be created and managed by the Windows 365 service. This can only be entered if the IT admin chooses Microsoft Entra joined as the domain join type. If you enter a regionName, leave onPremisesConnectionId as empty. +// GetRegionName gets the regionName property value. The supported Azure region where the IT admin wants the provisioning policy to create Cloud PCs. The underlying virtual network is created and managed by the Windows 365 service. This can only be entered if the IT admin chooses Microsoft Entra joined as the domain join type. If you enter a regionName, leave the onPremisesConnectionId property empty. // returns a *string when successful func (m *CloudPcDomainJoinConfiguration) GetRegionName()(*string) { val, err := m.GetBackingStore().Get("regionName") @@ -252,21 +252,21 @@ func (m *CloudPcDomainJoinConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetOnPremisesConnectionId sets the onPremisesConnectionId property value. The Azure network connection ID that matches the virtual network IT admins want the provisioning policy to use when they create Cloud PCs. You can use this property in both domain join types: Azure AD joined or Hybrid Microsoft Entra joined. If you enter an onPremisesConnectionId, leave regionName as empty. +// SetOnPremisesConnectionId sets the onPremisesConnectionId property value. The Azure network connection ID that matches the virtual network IT admins want the provisioning policy to use when they create Cloud PCs. You can use this property in both domain join types: Azure AD joined or Hybrid Microsoft Entra joined. If you enter an onPremisesConnectionId, leave the regionName property empty. func (m *CloudPcDomainJoinConfiguration) SetOnPremisesConnectionId(value *string)() { err := m.GetBackingStore().Set("onPremisesConnectionId", value) if err != nil { panic(err) } } -// SetRegionGroup sets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when provisioning a Cloud PC, and the Cloud PC will be put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, and southKorea. Read-only. +// SetRegionGroup sets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, and southKorea. Read-only. func (m *CloudPcDomainJoinConfiguration) SetRegionGroup(value *CloudPcRegionGroup)() { err := m.GetBackingStore().Set("regionGroup", value) if err != nil { panic(err) } } -// SetRegionName sets the regionName property value. The supported Azure region where the IT admin wants the provisioning policy to create Cloud PCs. The underlying virtual network will be created and managed by the Windows 365 service. This can only be entered if the IT admin chooses Microsoft Entra joined as the domain join type. If you enter a regionName, leave onPremisesConnectionId as empty. +// SetRegionName sets the regionName property value. The supported Azure region where the IT admin wants the provisioning policy to create Cloud PCs. The underlying virtual network is created and managed by the Windows 365 service. This can only be entered if the IT admin chooses Microsoft Entra joined as the domain join type. If you enter a regionName, leave the onPremisesConnectionId property empty. func (m *CloudPcDomainJoinConfiguration) SetRegionName(value *string)() { err := m.GetBackingStore().Set("regionName", value) if err != nil { diff --git a/models/cloud_pc_front_line_service_plan.go b/models/cloud_pc_front_line_service_plan.go index 0235257f0a5..2e48ebabe97 100644 --- a/models/cloud_pc_front_line_service_plan.go +++ b/models/cloud_pc_front_line_service_plan.go @@ -19,6 +19,18 @@ func NewCloudPcFrontLineServicePlan()(*CloudPcFrontLineServicePlan) { func CreateCloudPcFrontLineServicePlanFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcFrontLineServicePlan(), nil } +// GetAllotmentLicensesCount gets the allotmentLicensesCount property value. The allotmentLicensesCount property +// returns a *int32 when successful +func (m *CloudPcFrontLineServicePlan) GetAllotmentLicensesCount()(*int32) { + val, err := m.GetBackingStore().Get("allotmentLicensesCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetDisplayName gets the displayName property value. The display name of the front-line service plan. For example, 2vCPU/8GB/128GB Front-line or 4vCPU/16GB/256GB Front-line. // returns a *string when successful func (m *CloudPcFrontLineServicePlan) GetDisplayName()(*string) { @@ -35,6 +47,16 @@ func (m *CloudPcFrontLineServicePlan) GetDisplayName()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *CloudPcFrontLineServicePlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["allotmentLicensesCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAllotmentLicensesCount(val) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -97,6 +119,12 @@ func (m *CloudPcFrontLineServicePlan) Serialize(writer i878a80d2330e89d26896388a if err != nil { return err } + { + err = writer.WriteInt32Value("allotmentLicensesCount", m.GetAllotmentLicensesCount()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -117,6 +145,13 @@ func (m *CloudPcFrontLineServicePlan) Serialize(writer i878a80d2330e89d26896388a } return nil } +// SetAllotmentLicensesCount sets the allotmentLicensesCount property value. The allotmentLicensesCount property +func (m *CloudPcFrontLineServicePlan) SetAllotmentLicensesCount(value *int32)() { + err := m.GetBackingStore().Set("allotmentLicensesCount", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The display name of the front-line service plan. For example, 2vCPU/8GB/128GB Front-line or 4vCPU/16GB/256GB Front-line. func (m *CloudPcFrontLineServicePlan) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -141,9 +176,11 @@ func (m *CloudPcFrontLineServicePlan) SetUsedCount(value *int32)() { type CloudPcFrontLineServicePlanable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllotmentLicensesCount()(*int32) GetDisplayName()(*string) GetTotalCount()(*int32) GetUsedCount()(*int32) + SetAllotmentLicensesCount(value *int32)() SetDisplayName(value *string)() SetTotalCount(value *int32)() SetUsedCount(value *int32)() diff --git a/models/cloud_pc_management_group_assignment_target.go b/models/cloud_pc_management_group_assignment_target.go index 54ca1332c40..46cfea42ae2 100644 --- a/models/cloud_pc_management_group_assignment_target.go +++ b/models/cloud_pc_management_group_assignment_target.go @@ -21,10 +21,54 @@ func NewCloudPcManagementGroupAssignmentTarget()(*CloudPcManagementGroupAssignme func CreateCloudPcManagementGroupAssignmentTargetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcManagementGroupAssignmentTarget(), nil } +// GetAllotmentDisplayName gets the allotmentDisplayName property value. The allotmentDisplayName property +// returns a *string when successful +func (m *CloudPcManagementGroupAssignmentTarget) GetAllotmentDisplayName()(*string) { + val, err := m.GetBackingStore().Get("allotmentDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetAllotmentLicensesCount gets the allotmentLicensesCount property value. The allotmentLicensesCount property +// returns a *int32 when successful +func (m *CloudPcManagementGroupAssignmentTarget) GetAllotmentLicensesCount()(*int32) { + val, err := m.GetBackingStore().Get("allotmentLicensesCount") + 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 *CloudPcManagementGroupAssignmentTarget) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CloudPcManagementAssignmentTarget.GetFieldDeserializers() + res["allotmentDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAllotmentDisplayName(val) + } + return nil + } + res["allotmentLicensesCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAllotmentLicensesCount(val) + } + return nil + } res["groupId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -77,6 +121,18 @@ func (m *CloudPcManagementGroupAssignmentTarget) Serialize(writer i878a80d2330e8 if err != nil { return err } + { + err = writer.WriteStringValue("allotmentDisplayName", m.GetAllotmentDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("allotmentLicensesCount", m.GetAllotmentLicensesCount()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("groupId", m.GetGroupId()) if err != nil { @@ -91,6 +147,20 @@ func (m *CloudPcManagementGroupAssignmentTarget) Serialize(writer i878a80d2330e8 } return nil } +// SetAllotmentDisplayName sets the allotmentDisplayName property value. The allotmentDisplayName property +func (m *CloudPcManagementGroupAssignmentTarget) SetAllotmentDisplayName(value *string)() { + err := m.GetBackingStore().Set("allotmentDisplayName", value) + if err != nil { + panic(err) + } +} +// SetAllotmentLicensesCount sets the allotmentLicensesCount property value. The allotmentLicensesCount property +func (m *CloudPcManagementGroupAssignmentTarget) SetAllotmentLicensesCount(value *int32)() { + err := m.GetBackingStore().Set("allotmentLicensesCount", value) + if err != nil { + panic(err) + } +} // SetGroupId sets the groupId property value. The ID of the target group for the assignment. func (m *CloudPcManagementGroupAssignmentTarget) SetGroupId(value *string)() { err := m.GetBackingStore().Set("groupId", value) @@ -108,8 +178,12 @@ func (m *CloudPcManagementGroupAssignmentTarget) SetServicePlanId(value *string) type CloudPcManagementGroupAssignmentTargetable interface { CloudPcManagementAssignmentTargetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllotmentDisplayName()(*string) + GetAllotmentLicensesCount()(*int32) GetGroupId()(*string) GetServicePlanId()(*string) + SetAllotmentDisplayName(value *string)() + SetAllotmentLicensesCount(value *int32)() SetGroupId(value *string)() SetServicePlanId(value *string)() } diff --git a/models/cloud_pc_on_premises_connection.go b/models/cloud_pc_on_premises_connection.go index 6573b83af67..a21d65121ed 100644 --- a/models/cloud_pc_on_premises_connection.go +++ b/models/cloud_pc_on_premises_connection.go @@ -67,7 +67,7 @@ func (m *CloudPcOnPremisesConnection) GetAlternateResourceUrl()(*string) { } return nil } -// GetConnectionType gets the connectionType property value. The connectionType property +// GetConnectionType gets the connectionType property value. Specifies the method by which a provisioned Cloud PC is joined to Microsoft Entra. The azureADJoin option indicates the absence of an on-premises Active Directory (AD) in the current tenant that results in the Cloud PC device only joining to Microsoft Entra. The hybridAzureADJoin option indicates the presence of an on-premises AD in the current tenant and that the Cloud PC joins both the on-premises AD and Microsoft Entra. The selected option also determines the types of users who can be assigned and can sign into a Cloud PC. The azureADJoin option allows both cloud-only and hybrid users to be assigned and sign in, whereas hybridAzureADJoin is restricted to hybrid users only. The default value is hybridAzureADJoin. The possible values are: hybridAzureADJoin, azureADJoin, unknownFutureValue. // returns a *CloudPcOnPremisesConnectionType when successful func (m *CloudPcOnPremisesConnection) GetConnectionType()(*CloudPcOnPremisesConnectionType) { val, err := m.GetBackingStore().Get("connectionType") @@ -315,7 +315,7 @@ func (m *CloudPcOnPremisesConnection) GetHealthCheckStatus()(*CloudPcOnPremisesC } return nil } -// GetHealthCheckStatusDetail gets the healthCheckStatusDetail property value. The healthCheckStatusDetail property +// GetHealthCheckStatusDetail gets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetails. Read-only. // returns a CloudPcOnPremisesConnectionStatusDetailable when successful func (m *CloudPcOnPremisesConnection) GetHealthCheckStatusDetail()(CloudPcOnPremisesConnectionStatusDetailable) { val, err := m.GetBackingStore().Get("healthCheckStatusDetail") @@ -411,7 +411,7 @@ func (m *CloudPcOnPremisesConnection) GetSubnetId()(*string) { } return nil } -// GetSubscriptionId gets the subscriptionId property value. The ID of the target Azure subscription that’s associated with your tenant. +// GetSubscriptionId gets the subscriptionId property value. The ID of the target Azure subscription associated with your tenant. // returns a *string when successful func (m *CloudPcOnPremisesConnection) GetSubscriptionId()(*string) { val, err := m.GetBackingStore().Get("subscriptionId") @@ -435,7 +435,7 @@ func (m *CloudPcOnPremisesConnection) GetSubscriptionName()(*string) { } return nil } -// GetTypeEscaped gets the type property value. Specifies how the provisioned Cloud PC is joined to Microsoft Entra ID. Default value is hybridAzureADJoin. Possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. +// GetTypeEscaped gets the type property value. The type property // returns a *CloudPcOnPremisesConnectionType when successful func (m *CloudPcOnPremisesConnection) GetTypeEscaped()(*CloudPcOnPremisesConnectionType) { val, err := m.GetBackingStore().Get("typeEscaped") @@ -459,7 +459,7 @@ func (m *CloudPcOnPremisesConnection) GetVirtualNetworkId()(*string) { } return nil } -// GetVirtualNetworkLocation gets the virtualNetworkLocation property value. Indicates resource location of the virtual target network. Read-only, computed value. +// GetVirtualNetworkLocation gets the virtualNetworkLocation property value. Indicates the resource location of the virtual target network. Read-only, computed value. // returns a *string when successful func (m *CloudPcOnPremisesConnection) GetVirtualNetworkLocation()(*string) { val, err := m.GetBackingStore().Get("virtualNetworkLocation") @@ -631,7 +631,7 @@ func (m *CloudPcOnPremisesConnection) SetAlternateResourceUrl(value *string)() { panic(err) } } -// SetConnectionType sets the connectionType property value. The connectionType property +// SetConnectionType sets the connectionType property value. Specifies the method by which a provisioned Cloud PC is joined to Microsoft Entra. The azureADJoin option indicates the absence of an on-premises Active Directory (AD) in the current tenant that results in the Cloud PC device only joining to Microsoft Entra. The hybridAzureADJoin option indicates the presence of an on-premises AD in the current tenant and that the Cloud PC joins both the on-premises AD and Microsoft Entra. The selected option also determines the types of users who can be assigned and can sign into a Cloud PC. The azureADJoin option allows both cloud-only and hybrid users to be assigned and sign in, whereas hybridAzureADJoin is restricted to hybrid users only. The default value is hybridAzureADJoin. The possible values are: hybridAzureADJoin, azureADJoin, unknownFutureValue. func (m *CloudPcOnPremisesConnection) SetConnectionType(value *CloudPcOnPremisesConnectionType)() { err := m.GetBackingStore().Set("connectionType", value) if err != nil { @@ -652,7 +652,7 @@ func (m *CloudPcOnPremisesConnection) SetHealthCheckStatus(value *CloudPcOnPremi panic(err) } } -// SetHealthCheckStatusDetail sets the healthCheckStatusDetail property value. The healthCheckStatusDetail property +// SetHealthCheckStatusDetail sets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetails. Read-only. func (m *CloudPcOnPremisesConnection) SetHealthCheckStatusDetail(value CloudPcOnPremisesConnectionStatusDetailable)() { err := m.GetBackingStore().Set("healthCheckStatusDetail", value) if err != nil { @@ -708,7 +708,7 @@ func (m *CloudPcOnPremisesConnection) SetSubnetId(value *string)() { panic(err) } } -// SetSubscriptionId sets the subscriptionId property value. The ID of the target Azure subscription that’s associated with your tenant. +// SetSubscriptionId sets the subscriptionId property value. The ID of the target Azure subscription associated with your tenant. func (m *CloudPcOnPremisesConnection) SetSubscriptionId(value *string)() { err := m.GetBackingStore().Set("subscriptionId", value) if err != nil { @@ -722,7 +722,7 @@ func (m *CloudPcOnPremisesConnection) SetSubscriptionName(value *string)() { panic(err) } } -// SetTypeEscaped sets the type property value. Specifies how the provisioned Cloud PC is joined to Microsoft Entra ID. Default value is hybridAzureADJoin. Possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. +// SetTypeEscaped sets the type property value. The type property func (m *CloudPcOnPremisesConnection) SetTypeEscaped(value *CloudPcOnPremisesConnectionType)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { @@ -736,7 +736,7 @@ func (m *CloudPcOnPremisesConnection) SetVirtualNetworkId(value *string)() { panic(err) } } -// SetVirtualNetworkLocation sets the virtualNetworkLocation property value. Indicates resource location of the virtual target network. Read-only, computed value. +// SetVirtualNetworkLocation sets the virtualNetworkLocation property value. Indicates the resource location of the virtual target network. Read-only, computed value. func (m *CloudPcOnPremisesConnection) SetVirtualNetworkLocation(value *string)() { err := m.GetBackingStore().Set("virtualNetworkLocation", value) if err != nil { diff --git a/models/cloud_pc_on_premises_connection_health_check.go b/models/cloud_pc_on_premises_connection_health_check.go index e130b6e3411..49e580ea8a5 100644 --- a/models/cloud_pc_on_premises_connection_health_check.go +++ b/models/cloud_pc_on_premises_connection_health_check.go @@ -36,7 +36,7 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalData()(map[string] } return val.(map[string]any) } -// GetAdditionalDetail gets the additionalDetail property value. The additionalDetail property +// GetAdditionalDetail gets the additionalDetail property value. More details about the health check or the recommended action. Read-only. // returns a *string when successful func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetail()(*string) { val, err := m.GetBackingStore().Get("additionalDetail") @@ -48,7 +48,7 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetail()(*string) } return nil } -// GetAdditionalDetails gets the additionalDetails property value. More details about the health check or the recommended action. +// GetAdditionalDetails gets the additionalDetails property value. The additionalDetails property // returns a *string when successful func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetails()(*string) { val, err := m.GetBackingStore().Get("additionalDetails") @@ -346,14 +346,14 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalData(value map[str panic(err) } } -// SetAdditionalDetail sets the additionalDetail property value. The additionalDetail property +// SetAdditionalDetail sets the additionalDetail property value. More details about the health check or the recommended action. Read-only. func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalDetail(value *string)() { err := m.GetBackingStore().Set("additionalDetail", value) if err != nil { panic(err) } } -// SetAdditionalDetails sets the additionalDetails property value. More details about the health check or the recommended action. +// SetAdditionalDetails sets the additionalDetails property value. The additionalDetails property func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalDetails(value *string)() { err := m.GetBackingStore().Set("additionalDetails", value) if err != nil { diff --git a/models/cloud_pc_on_premises_connection_status_detail.go b/models/cloud_pc_on_premises_connection_status_detail.go index 08be867efbe..015c4d9c759 100644 --- a/models/cloud_pc_on_premises_connection_status_detail.go +++ b/models/cloud_pc_on_premises_connection_status_detail.go @@ -41,7 +41,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetail) GetAdditionalData()(map[string func (m *CloudPcOnPremisesConnectionStatusDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetEndDateTime gets the endDateTime property value. The endDateTime property +// GetEndDateTime gets the endDateTime property value. The end time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *CloudPcOnPremisesConnectionStatusDetail) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("endDateTime") @@ -105,7 +105,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetail) GetFieldDeserializers()(map[st } return res } -// GetHealthChecks gets the healthChecks property value. The healthChecks property +// GetHealthChecks gets the healthChecks property value. All checks that are done on the connection. // returns a []CloudPcOnPremisesConnectionHealthCheckable when successful func (m *CloudPcOnPremisesConnectionStatusDetail) GetHealthChecks()([]CloudPcOnPremisesConnectionHealthCheckable) { val, err := m.GetBackingStore().Get("healthChecks") @@ -129,7 +129,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetail) GetOdataType()(*string) { } return nil } -// GetStartDateTime gets the startDateTime property value. The startDateTime property +// GetStartDateTime gets the startDateTime property value. The start time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *CloudPcOnPremisesConnectionStatusDetail) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startDateTime") @@ -192,14 +192,14 @@ func (m *CloudPcOnPremisesConnectionStatusDetail) SetAdditionalData(value map[st func (m *CloudPcOnPremisesConnectionStatusDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetEndDateTime sets the endDateTime property value. The endDateTime property +// SetEndDateTime sets the endDateTime property value. The end time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *CloudPcOnPremisesConnectionStatusDetail) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("endDateTime", value) if err != nil { panic(err) } } -// SetHealthChecks sets the healthChecks property value. The healthChecks property +// SetHealthChecks sets the healthChecks property value. All checks that are done on the connection. func (m *CloudPcOnPremisesConnectionStatusDetail) SetHealthChecks(value []CloudPcOnPremisesConnectionHealthCheckable)() { err := m.GetBackingStore().Set("healthChecks", value) if err != nil { @@ -213,7 +213,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetail) SetOdataType(value *string)() panic(err) } } -// SetStartDateTime sets the startDateTime property value. The startDateTime property +// SetStartDateTime sets the startDateTime property value. The start time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *CloudPcOnPremisesConnectionStatusDetail) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { diff --git a/models/cloud_pc_on_premises_connection_status_details.go b/models/cloud_pc_on_premises_connection_status_details.go index 6096ad4991b..03e0d6766eb 100644 --- a/models/cloud_pc_on_premises_connection_status_details.go +++ b/models/cloud_pc_on_premises_connection_status_details.go @@ -41,7 +41,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetails) GetAdditionalData()(map[strin func (m *CloudPcOnPremisesConnectionStatusDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetEndDateTime gets the endDateTime property value. The end time of the connection health check. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +// GetEndDateTime gets the endDateTime property value. The end time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *CloudPcOnPremisesConnectionStatusDetails) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("endDateTime") @@ -129,7 +129,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetails) GetOdataType()(*string) { } return nil } -// GetStartDateTime gets the startDateTime property value. The start time of the connection health check. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +// GetStartDateTime gets the startDateTime property value. The start time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *CloudPcOnPremisesConnectionStatusDetails) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startDateTime") @@ -192,7 +192,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetails) SetAdditionalData(value map[s func (m *CloudPcOnPremisesConnectionStatusDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetEndDateTime sets the endDateTime property value. The end time of the connection health check. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +// SetEndDateTime sets the endDateTime property value. The end time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *CloudPcOnPremisesConnectionStatusDetails) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("endDateTime", value) if err != nil { @@ -213,7 +213,7 @@ func (m *CloudPcOnPremisesConnectionStatusDetails) SetOdataType(value *string)() panic(err) } } -// SetStartDateTime sets the startDateTime property value. The start time of the connection health check. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +// SetStartDateTime sets the startDateTime property value. The start time of the connection health check. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *CloudPcOnPremisesConnectionStatusDetails) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { diff --git a/models/conditional_access_applications.go b/models/conditional_access_applications.go index d119668c40f..a060275099f 100644 --- a/models/conditional_access_applications.go +++ b/models/conditional_access_applications.go @@ -52,7 +52,7 @@ func (m *ConditionalAccessApplications) GetApplicationFilter()(ConditionalAccess func (m *ConditionalAccessApplications) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetExcludeApplications gets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite +// GetExcludeApplications gets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals // returns a []string when successful func (m *ConditionalAccessApplications) GetExcludeApplications()([]string) { val, err := m.GetBackingStore().Get("excludeApplications") @@ -154,7 +154,7 @@ func (m *ConditionalAccessApplications) GetFieldDeserializers()(map[string]func( } return res } -// GetIncludeApplications gets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite +// GetIncludeApplications gets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals // returns a []string when successful func (m *ConditionalAccessApplications) GetIncludeApplications()([]string) { val, err := m.GetBackingStore().Get("includeApplications") @@ -266,14 +266,14 @@ func (m *ConditionalAccessApplications) SetApplicationFilter(value ConditionalAc func (m *ConditionalAccessApplications) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetExcludeApplications sets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite +// SetExcludeApplications sets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals func (m *ConditionalAccessApplications) SetExcludeApplications(value []string)() { err := m.GetBackingStore().Set("excludeApplications", value) if err != nil { panic(err) } } -// SetIncludeApplications sets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite +// SetIncludeApplications sets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite MicrosoftAdminPortals - For more information, see Conditional Access Target resources: Microsoft Admin Portals func (m *ConditionalAccessApplications) SetIncludeApplications(value []string)() { err := m.GetBackingStore().Set("includeApplications", value) if err != nil { diff --git a/models/conditional_access_condition_set.go b/models/conditional_access_condition_set.go index d43e1d98e08..5d30daa2799 100644 --- a/models/conditional_access_condition_set.go +++ b/models/conditional_access_condition_set.go @@ -182,6 +182,16 @@ func (m *ConditionalAccessConditionSet) GetFieldDeserializers()(map[string]func( } return nil } + res["insiderRiskLevels"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionalAccessInsiderRiskLevels) + if err != nil { + return err + } + if val != nil { + m.SetInsiderRiskLevels(val.(*ConditionalAccessInsiderRiskLevels)) + } + return nil + } res["locations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateConditionalAccessLocationsFromDiscriminatorValue) if err != nil { @@ -272,6 +282,18 @@ func (m *ConditionalAccessConditionSet) GetFieldDeserializers()(map[string]func( } return res } +// GetInsiderRiskLevels gets the insiderRiskLevels property value. The insiderRiskLevels property +// returns a *ConditionalAccessInsiderRiskLevels when successful +func (m *ConditionalAccessConditionSet) GetInsiderRiskLevels()(*ConditionalAccessInsiderRiskLevels) { + val, err := m.GetBackingStore().Get("insiderRiskLevels") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionalAccessInsiderRiskLevels) + } + return nil +} // GetLocations gets the locations property value. Locations included in and excluded from the policy. // returns a ConditionalAccessLocationsable when successful func (m *ConditionalAccessConditionSet) GetLocations()(ConditionalAccessLocationsable) { @@ -394,6 +416,13 @@ func (m *ConditionalAccessConditionSet) Serialize(writer i878a80d2330e89d2689638 return err } } + if m.GetInsiderRiskLevels() != nil { + cast := (*m.GetInsiderRiskLevels()).String() + err := writer.WriteStringValue("insiderRiskLevels", &cast) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("locations", m.GetLocations()) if err != nil { @@ -497,6 +526,13 @@ func (m *ConditionalAccessConditionSet) SetDeviceStates(value ConditionalAccessD panic(err) } } +// SetInsiderRiskLevels sets the insiderRiskLevels property value. The insiderRiskLevels property +func (m *ConditionalAccessConditionSet) SetInsiderRiskLevels(value *ConditionalAccessInsiderRiskLevels)() { + err := m.GetBackingStore().Set("insiderRiskLevels", value) + if err != nil { + panic(err) + } +} // SetLocations sets the locations property value. Locations included in and excluded from the policy. func (m *ConditionalAccessConditionSet) SetLocations(value ConditionalAccessLocationsable)() { err := m.GetBackingStore().Set("locations", value) @@ -557,6 +593,7 @@ type ConditionalAccessConditionSetable interface { GetClientAppTypes()([]ConditionalAccessClientApp) GetDevices()(ConditionalAccessDevicesable) GetDeviceStates()(ConditionalAccessDeviceStatesable) + GetInsiderRiskLevels()(*ConditionalAccessInsiderRiskLevels) GetLocations()(ConditionalAccessLocationsable) GetOdataType()(*string) GetPlatforms()(ConditionalAccessPlatformsable) @@ -571,6 +608,7 @@ type ConditionalAccessConditionSetable interface { SetClientAppTypes(value []ConditionalAccessClientApp)() SetDevices(value ConditionalAccessDevicesable)() SetDeviceStates(value ConditionalAccessDeviceStatesable)() + SetInsiderRiskLevels(value *ConditionalAccessInsiderRiskLevels)() SetLocations(value ConditionalAccessLocationsable)() SetOdataType(value *string)() SetPlatforms(value ConditionalAccessPlatformsable)() diff --git a/models/conditional_access_context.go b/models/conditional_access_context.go new file mode 100644 index 00000000000..0f893fb4899 --- /dev/null +++ b/models/conditional_access_context.go @@ -0,0 +1,135 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ConditionalAccessContext struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewConditionalAccessContext instantiates a new ConditionalAccessContext and sets the default values. +func NewConditionalAccessContext()(*ConditionalAccessContext) { + m := &ConditionalAccessContext{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateConditionalAccessContextFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConditionalAccessContextFromDiscriminatorValue(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.whatIfApplicationContext": + return NewWhatIfApplicationContext(), nil + case "#microsoft.graph.whatIfAuthenticationContext": + return NewWhatIfAuthenticationContext(), nil + case "#microsoft.graph.whatIfUserActionContext": + return NewWhatIfUserActionContext(), nil + } + } + } + } + return NewConditionalAccessContext(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ConditionalAccessContext) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ConditionalAccessContext) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ConditionalAccessContext) 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 + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ConditionalAccessContext) 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 *ConditionalAccessContext) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + 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 *ConditionalAccessContext) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ConditionalAccessContext) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConditionalAccessContext) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type ConditionalAccessContextable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/conditional_access_insider_risk_levels.go b/models/conditional_access_insider_risk_levels.go new file mode 100644 index 00000000000..c2037094ee2 --- /dev/null +++ b/models/conditional_access_insider_risk_levels.go @@ -0,0 +1,55 @@ +package models +import ( + "errors" + "math" + "strings" +) +type ConditionalAccessInsiderRiskLevels int + +const ( + MINOR_CONDITIONALACCESSINSIDERRISKLEVELS = 1 + MODERATE_CONDITIONALACCESSINSIDERRISKLEVELS = 2 + ELEVATED_CONDITIONALACCESSINSIDERRISKLEVELS = 4 + UNKNOWNFUTUREVALUE_CONDITIONALACCESSINSIDERRISKLEVELS = 8 +) + +func (i ConditionalAccessInsiderRiskLevels) String() string { + var values []string + options := []string{"minor", "moderate", "elevated", "unknownFutureValue"} + for p := 0; p < 4; p++ { + mantis := ConditionalAccessInsiderRiskLevels(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseConditionalAccessInsiderRiskLevels(v string) (any, error) { + var result ConditionalAccessInsiderRiskLevels + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "minor": + result |= MINOR_CONDITIONALACCESSINSIDERRISKLEVELS + case "moderate": + result |= MODERATE_CONDITIONALACCESSINSIDERRISKLEVELS + case "elevated": + result |= ELEVATED_CONDITIONALACCESSINSIDERRISKLEVELS + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_CONDITIONALACCESSINSIDERRISKLEVELS + default: + return 0, errors.New("Unknown ConditionalAccessInsiderRiskLevels value: " + v) + } + } + return &result, nil +} +func SerializeConditionalAccessInsiderRiskLevels(values []ConditionalAccessInsiderRiskLevels) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ConditionalAccessInsiderRiskLevels) isMultiValue() bool { + return true +} diff --git a/models/conditional_access_policy.go b/models/conditional_access_policy.go index b1254ca7aeb..745776c1001 100644 --- a/models/conditional_access_policy.go +++ b/models/conditional_access_policy.go @@ -18,6 +18,24 @@ func NewConditionalAccessPolicy()(*ConditionalAccessPolicy) { // CreateConditionalAccessPolicyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateConditionalAccessPolicyFromDiscriminatorValue(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.conditionalAccessWhatIfPolicy": + return NewConditionalAccessWhatIfPolicy(), nil + } + } + } + } return NewConditionalAccessPolicy(), nil } // GetConditions gets the conditions property value. The conditions property diff --git a/models/conditional_access_what_if_conditions.go b/models/conditional_access_what_if_conditions.go new file mode 100644 index 00000000000..b52442f0297 --- /dev/null +++ b/models/conditional_access_what_if_conditions.go @@ -0,0 +1,489 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ConditionalAccessWhatIfConditions struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewConditionalAccessWhatIfConditions instantiates a new ConditionalAccessWhatIfConditions and sets the default values. +func NewConditionalAccessWhatIfConditions()(*ConditionalAccessWhatIfConditions) { + m := &ConditionalAccessWhatIfConditions{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateConditionalAccessWhatIfConditionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConditionalAccessWhatIfConditionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConditionalAccessWhatIfConditions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ConditionalAccessWhatIfConditions) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAuthenticationFlow gets the authenticationFlow property value. The authenticationFlow property +// returns a AuthenticationFlowable when successful +func (m *ConditionalAccessWhatIfConditions) GetAuthenticationFlow()(AuthenticationFlowable) { + val, err := m.GetBackingStore().Get("authenticationFlow") + if err != nil { + panic(err) + } + if val != nil { + return val.(AuthenticationFlowable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ConditionalAccessWhatIfConditions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientAppType gets the clientAppType property value. The clientAppType property +// returns a *ConditionalAccessClientApp when successful +func (m *ConditionalAccessWhatIfConditions) GetClientAppType()(*ConditionalAccessClientApp) { + val, err := m.GetBackingStore().Get("clientAppType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionalAccessClientApp) + } + return nil +} +// GetCountry gets the country property value. The country property +// returns a *string when successful +func (m *ConditionalAccessWhatIfConditions) GetCountry()(*string) { + val, err := m.GetBackingStore().Get("country") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDeviceInfo gets the deviceInfo property value. The deviceInfo property +// returns a DeviceInfoable when successful +func (m *ConditionalAccessWhatIfConditions) GetDeviceInfo()(DeviceInfoable) { + val, err := m.GetBackingStore().Get("deviceInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(DeviceInfoable) + } + return nil +} +// GetDevicePlatform gets the devicePlatform property value. The devicePlatform property +// returns a *ConditionalAccessDevicePlatform when successful +func (m *ConditionalAccessWhatIfConditions) GetDevicePlatform()(*ConditionalAccessDevicePlatform) { + val, err := m.GetBackingStore().Get("devicePlatform") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionalAccessDevicePlatform) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ConditionalAccessWhatIfConditions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authenticationFlow"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAuthenticationFlowFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthenticationFlow(val.(AuthenticationFlowable)) + } + return nil + } + res["clientAppType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionalAccessClientApp) + if err != nil { + return err + } + if val != nil { + m.SetClientAppType(val.(*ConditionalAccessClientApp)) + } + return nil + } + res["country"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCountry(val) + } + return nil + } + res["deviceInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateDeviceInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDeviceInfo(val.(DeviceInfoable)) + } + return nil + } + res["devicePlatform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionalAccessDevicePlatform) + if err != nil { + return err + } + if val != nil { + m.SetDevicePlatform(val.(*ConditionalAccessDevicePlatform)) + } + return nil + } + res["insiderRiskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseInsiderRiskLevel) + if err != nil { + return err + } + if val != nil { + m.SetInsiderRiskLevel(val.(*InsiderRiskLevel)) + } + return nil + } + res["ipAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIpAddress(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["servicePrincipalRiskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRiskLevel) + if err != nil { + return err + } + if val != nil { + m.SetServicePrincipalRiskLevel(val.(*RiskLevel)) + } + return nil + } + res["signInRiskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRiskLevel) + if err != nil { + return err + } + if val != nil { + m.SetSignInRiskLevel(val.(*RiskLevel)) + } + return nil + } + res["userRiskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRiskLevel) + if err != nil { + return err + } + if val != nil { + m.SetUserRiskLevel(val.(*RiskLevel)) + } + return nil + } + return res +} +// GetInsiderRiskLevel gets the insiderRiskLevel property value. The insiderRiskLevel property +// returns a *InsiderRiskLevel when successful +func (m *ConditionalAccessWhatIfConditions) GetInsiderRiskLevel()(*InsiderRiskLevel) { + val, err := m.GetBackingStore().Get("insiderRiskLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*InsiderRiskLevel) + } + return nil +} +// GetIpAddress gets the ipAddress property value. The ipAddress property +// returns a *string when successful +func (m *ConditionalAccessWhatIfConditions) GetIpAddress()(*string) { + val, err := m.GetBackingStore().Get("ipAddress") + 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 *ConditionalAccessWhatIfConditions) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetServicePrincipalRiskLevel gets the servicePrincipalRiskLevel property value. The servicePrincipalRiskLevel property +// returns a *RiskLevel when successful +func (m *ConditionalAccessWhatIfConditions) GetServicePrincipalRiskLevel()(*RiskLevel) { + val, err := m.GetBackingStore().Get("servicePrincipalRiskLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RiskLevel) + } + return nil +} +// GetSignInRiskLevel gets the signInRiskLevel property value. The signInRiskLevel property +// returns a *RiskLevel when successful +func (m *ConditionalAccessWhatIfConditions) GetSignInRiskLevel()(*RiskLevel) { + val, err := m.GetBackingStore().Get("signInRiskLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RiskLevel) + } + return nil +} +// GetUserRiskLevel gets the userRiskLevel property value. The userRiskLevel property +// returns a *RiskLevel when successful +func (m *ConditionalAccessWhatIfConditions) GetUserRiskLevel()(*RiskLevel) { + val, err := m.GetBackingStore().Get("userRiskLevel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RiskLevel) + } + return nil +} +// Serialize serializes information the current object +func (m *ConditionalAccessWhatIfConditions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authenticationFlow", m.GetAuthenticationFlow()) + if err != nil { + return err + } + } + if m.GetClientAppType() != nil { + cast := (*m.GetClientAppType()).String() + err := writer.WriteStringValue("clientAppType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("country", m.GetCountry()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("deviceInfo", m.GetDeviceInfo()) + if err != nil { + return err + } + } + if m.GetDevicePlatform() != nil { + cast := (*m.GetDevicePlatform()).String() + err := writer.WriteStringValue("devicePlatform", &cast) + if err != nil { + return err + } + } + if m.GetInsiderRiskLevel() != nil { + cast := (*m.GetInsiderRiskLevel()).String() + err := writer.WriteStringValue("insiderRiskLevel", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("ipAddress", m.GetIpAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetServicePrincipalRiskLevel() != nil { + cast := (*m.GetServicePrincipalRiskLevel()).String() + err := writer.WriteStringValue("servicePrincipalRiskLevel", &cast) + if err != nil { + return err + } + } + if m.GetSignInRiskLevel() != nil { + cast := (*m.GetSignInRiskLevel()).String() + err := writer.WriteStringValue("signInRiskLevel", &cast) + if err != nil { + return err + } + } + if m.GetUserRiskLevel() != nil { + cast := (*m.GetUserRiskLevel()).String() + err := writer.WriteStringValue("userRiskLevel", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ConditionalAccessWhatIfConditions) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAuthenticationFlow sets the authenticationFlow property value. The authenticationFlow property +func (m *ConditionalAccessWhatIfConditions) SetAuthenticationFlow(value AuthenticationFlowable)() { + err := m.GetBackingStore().Set("authenticationFlow", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ConditionalAccessWhatIfConditions) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientAppType sets the clientAppType property value. The clientAppType property +func (m *ConditionalAccessWhatIfConditions) SetClientAppType(value *ConditionalAccessClientApp)() { + err := m.GetBackingStore().Set("clientAppType", value) + if err != nil { + panic(err) + } +} +// SetCountry sets the country property value. The country property +func (m *ConditionalAccessWhatIfConditions) SetCountry(value *string)() { + err := m.GetBackingStore().Set("country", value) + if err != nil { + panic(err) + } +} +// SetDeviceInfo sets the deviceInfo property value. The deviceInfo property +func (m *ConditionalAccessWhatIfConditions) SetDeviceInfo(value DeviceInfoable)() { + err := m.GetBackingStore().Set("deviceInfo", value) + if err != nil { + panic(err) + } +} +// SetDevicePlatform sets the devicePlatform property value. The devicePlatform property +func (m *ConditionalAccessWhatIfConditions) SetDevicePlatform(value *ConditionalAccessDevicePlatform)() { + err := m.GetBackingStore().Set("devicePlatform", value) + if err != nil { + panic(err) + } +} +// SetInsiderRiskLevel sets the insiderRiskLevel property value. The insiderRiskLevel property +func (m *ConditionalAccessWhatIfConditions) SetInsiderRiskLevel(value *InsiderRiskLevel)() { + err := m.GetBackingStore().Set("insiderRiskLevel", value) + if err != nil { + panic(err) + } +} +// SetIpAddress sets the ipAddress property value. The ipAddress property +func (m *ConditionalAccessWhatIfConditions) SetIpAddress(value *string)() { + err := m.GetBackingStore().Set("ipAddress", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConditionalAccessWhatIfConditions) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetServicePrincipalRiskLevel sets the servicePrincipalRiskLevel property value. The servicePrincipalRiskLevel property +func (m *ConditionalAccessWhatIfConditions) SetServicePrincipalRiskLevel(value *RiskLevel)() { + err := m.GetBackingStore().Set("servicePrincipalRiskLevel", value) + if err != nil { + panic(err) + } +} +// SetSignInRiskLevel sets the signInRiskLevel property value. The signInRiskLevel property +func (m *ConditionalAccessWhatIfConditions) SetSignInRiskLevel(value *RiskLevel)() { + err := m.GetBackingStore().Set("signInRiskLevel", value) + if err != nil { + panic(err) + } +} +// SetUserRiskLevel sets the userRiskLevel property value. The userRiskLevel property +func (m *ConditionalAccessWhatIfConditions) SetUserRiskLevel(value *RiskLevel)() { + err := m.GetBackingStore().Set("userRiskLevel", value) + if err != nil { + panic(err) + } +} +type ConditionalAccessWhatIfConditionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthenticationFlow()(AuthenticationFlowable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientAppType()(*ConditionalAccessClientApp) + GetCountry()(*string) + GetDeviceInfo()(DeviceInfoable) + GetDevicePlatform()(*ConditionalAccessDevicePlatform) + GetInsiderRiskLevel()(*InsiderRiskLevel) + GetIpAddress()(*string) + GetOdataType()(*string) + GetServicePrincipalRiskLevel()(*RiskLevel) + GetSignInRiskLevel()(*RiskLevel) + GetUserRiskLevel()(*RiskLevel) + SetAuthenticationFlow(value AuthenticationFlowable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientAppType(value *ConditionalAccessClientApp)() + SetCountry(value *string)() + SetDeviceInfo(value DeviceInfoable)() + SetDevicePlatform(value *ConditionalAccessDevicePlatform)() + SetInsiderRiskLevel(value *InsiderRiskLevel)() + SetIpAddress(value *string)() + SetOdataType(value *string)() + SetServicePrincipalRiskLevel(value *RiskLevel)() + SetSignInRiskLevel(value *RiskLevel)() + SetUserRiskLevel(value *RiskLevel)() +} diff --git a/models/conditional_access_what_if_policy.go b/models/conditional_access_what_if_policy.go new file mode 100644 index 00000000000..d58c2b6f0ff --- /dev/null +++ b/models/conditional_access_what_if_policy.go @@ -0,0 +1,119 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ConditionalAccessWhatIfPolicy struct { + ConditionalAccessPolicy +} +// NewConditionalAccessWhatIfPolicy instantiates a new ConditionalAccessWhatIfPolicy and sets the default values. +func NewConditionalAccessWhatIfPolicy()(*ConditionalAccessWhatIfPolicy) { + m := &ConditionalAccessWhatIfPolicy{ + ConditionalAccessPolicy: *NewConditionalAccessPolicy(), + } + return m +} +// CreateConditionalAccessWhatIfPolicyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConditionalAccessWhatIfPolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConditionalAccessWhatIfPolicy(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ConditionalAccessWhatIfPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ConditionalAccessPolicy.GetFieldDeserializers() + res["policyApplies"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyApplies(val) + } + return nil + } + res["reasons"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfEnumValues(ParseConditionalAccessWhatIfReasons) + if err != nil { + return err + } + if val != nil { + res := make([]ConditionalAccessWhatIfReasons, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*ConditionalAccessWhatIfReasons)) + } + } + m.SetReasons(res) + } + return nil + } + return res +} +// GetPolicyApplies gets the policyApplies property value. The policyApplies property +// returns a *bool when successful +func (m *ConditionalAccessWhatIfPolicy) GetPolicyApplies()(*bool) { + val, err := m.GetBackingStore().Get("policyApplies") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetReasons gets the reasons property value. The reasons property +// returns a []ConditionalAccessWhatIfReasons when successful +func (m *ConditionalAccessWhatIfPolicy) GetReasons()([]ConditionalAccessWhatIfReasons) { + val, err := m.GetBackingStore().Get("reasons") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ConditionalAccessWhatIfReasons) + } + return nil +} +// Serialize serializes information the current object +func (m *ConditionalAccessWhatIfPolicy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ConditionalAccessPolicy.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("policyApplies", m.GetPolicyApplies()) + if err != nil { + return err + } + } + if m.GetReasons() != nil { + err = writer.WriteCollectionOfStringValues("reasons", SerializeConditionalAccessWhatIfReasons(m.GetReasons())) + if err != nil { + return err + } + } + return nil +} +// SetPolicyApplies sets the policyApplies property value. The policyApplies property +func (m *ConditionalAccessWhatIfPolicy) SetPolicyApplies(value *bool)() { + err := m.GetBackingStore().Set("policyApplies", value) + if err != nil { + panic(err) + } +} +// SetReasons sets the reasons property value. The reasons property +func (m *ConditionalAccessWhatIfPolicy) SetReasons(value []ConditionalAccessWhatIfReasons)() { + err := m.GetBackingStore().Set("reasons", value) + if err != nil { + panic(err) + } +} +type ConditionalAccessWhatIfPolicyable interface { + ConditionalAccessPolicyable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPolicyApplies()(*bool) + GetReasons()([]ConditionalAccessWhatIfReasons) + SetPolicyApplies(value *bool)() + SetReasons(value []ConditionalAccessWhatIfReasons)() +} diff --git a/models/conditional_access_what_if_reasons.go b/models/conditional_access_what_if_reasons.go new file mode 100644 index 00000000000..b88f0903237 --- /dev/null +++ b/models/conditional_access_what_if_reasons.go @@ -0,0 +1,93 @@ +package models +import ( + "errors" +) +type ConditionalAccessWhatIfReasons int + +const ( + NOTSET_CONDITIONALACCESSWHATIFREASONS ConditionalAccessWhatIfReasons = iota + NOTENOUGHINFORMATION_CONDITIONALACCESSWHATIFREASONS + INVALIDCONDITION_CONDITIONALACCESSWHATIFREASONS + USERS_CONDITIONALACCESSWHATIFREASONS + WORKLOADIDENTITIES_CONDITIONALACCESSWHATIFREASONS + APPLICATION_CONDITIONALACCESSWHATIFREASONS + USERACTIONS_CONDITIONALACCESSWHATIFREASONS + AUTHENTICATIONCONTEXT_CONDITIONALACCESSWHATIFREASONS + DEVICEPLATFORM_CONDITIONALACCESSWHATIFREASONS + DEVICES_CONDITIONALACCESSWHATIFREASONS + CLIENTAPPS_CONDITIONALACCESSWHATIFREASONS + LOCATION_CONDITIONALACCESSWHATIFREASONS + SIGNINRISK_CONDITIONALACCESSWHATIFREASONS + EMPTYPOLICY_CONDITIONALACCESSWHATIFREASONS + INVALIDPOLICY_CONDITIONALACCESSWHATIFREASONS + POLICYNOTENABLED_CONDITIONALACCESSWHATIFREASONS + USERRISK_CONDITIONALACCESSWHATIFREASONS + TIME_CONDITIONALACCESSWHATIFREASONS + INSIDERRISK_CONDITIONALACCESSWHATIFREASONS + AUTHENTICATIONFLOW_CONDITIONALACCESSWHATIFREASONS + UNKNOWNFUTUREVALUE_CONDITIONALACCESSWHATIFREASONS +) + +func (i ConditionalAccessWhatIfReasons) String() string { + return []string{"notSet", "notEnoughInformation", "invalidCondition", "users", "workloadIdentities", "application", "userActions", "authenticationContext", "devicePlatform", "devices", "clientApps", "location", "signInRisk", "emptyPolicy", "invalidPolicy", "policyNotEnabled", "userRisk", "time", "insiderRisk", "authenticationFlow", "unknownFutureValue"}[i] +} +func ParseConditionalAccessWhatIfReasons(v string) (any, error) { + result := NOTSET_CONDITIONALACCESSWHATIFREASONS + switch v { + case "notSet": + result = NOTSET_CONDITIONALACCESSWHATIFREASONS + case "notEnoughInformation": + result = NOTENOUGHINFORMATION_CONDITIONALACCESSWHATIFREASONS + case "invalidCondition": + result = INVALIDCONDITION_CONDITIONALACCESSWHATIFREASONS + case "users": + result = USERS_CONDITIONALACCESSWHATIFREASONS + case "workloadIdentities": + result = WORKLOADIDENTITIES_CONDITIONALACCESSWHATIFREASONS + case "application": + result = APPLICATION_CONDITIONALACCESSWHATIFREASONS + case "userActions": + result = USERACTIONS_CONDITIONALACCESSWHATIFREASONS + case "authenticationContext": + result = AUTHENTICATIONCONTEXT_CONDITIONALACCESSWHATIFREASONS + case "devicePlatform": + result = DEVICEPLATFORM_CONDITIONALACCESSWHATIFREASONS + case "devices": + result = DEVICES_CONDITIONALACCESSWHATIFREASONS + case "clientApps": + result = CLIENTAPPS_CONDITIONALACCESSWHATIFREASONS + case "location": + result = LOCATION_CONDITIONALACCESSWHATIFREASONS + case "signInRisk": + result = SIGNINRISK_CONDITIONALACCESSWHATIFREASONS + case "emptyPolicy": + result = EMPTYPOLICY_CONDITIONALACCESSWHATIFREASONS + case "invalidPolicy": + result = INVALIDPOLICY_CONDITIONALACCESSWHATIFREASONS + case "policyNotEnabled": + result = POLICYNOTENABLED_CONDITIONALACCESSWHATIFREASONS + case "userRisk": + result = USERRISK_CONDITIONALACCESSWHATIFREASONS + case "time": + result = TIME_CONDITIONALACCESSWHATIFREASONS + case "insiderRisk": + result = INSIDERRISK_CONDITIONALACCESSWHATIFREASONS + case "authenticationFlow": + result = AUTHENTICATIONFLOW_CONDITIONALACCESSWHATIFREASONS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSWHATIFREASONS + default: + return 0, errors.New("Unknown ConditionalAccessWhatIfReasons value: " + v) + } + return &result, nil +} +func SerializeConditionalAccessWhatIfReasons(values []ConditionalAccessWhatIfReasons) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ConditionalAccessWhatIfReasons) isMultiValue() bool { + return false +} diff --git a/sites/item_sites_remove_post_request_body.go b/models/conditional_access_what_if_subject.go similarity index 56% rename from sites/item_sites_remove_post_request_body.go rename to models/conditional_access_what_if_subject.go index e4fd8e5f745..a318bbfeea4 100644 --- a/sites/item_sites_remove_post_request_body.go +++ b/models/conditional_access_what_if_subject.go @@ -1,31 +1,50 @@ -package sites +package models import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -type ItemSitesRemovePostRequestBody struct { +type ConditionalAccessWhatIfSubject struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewItemSitesRemovePostRequestBody instantiates a new ItemSitesRemovePostRequestBody and sets the default values. -func NewItemSitesRemovePostRequestBody()(*ItemSitesRemovePostRequestBody) { - m := &ItemSitesRemovePostRequestBody{ +// NewConditionalAccessWhatIfSubject instantiates a new ConditionalAccessWhatIfSubject and sets the default values. +func NewConditionalAccessWhatIfSubject()(*ConditionalAccessWhatIfSubject) { + m := &ConditionalAccessWhatIfSubject{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateItemSitesRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateConditionalAccessWhatIfSubjectFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesRemovePostRequestBody(), nil +func CreateConditionalAccessWhatIfSubjectFromDiscriminatorValue(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.servicePrincipalSubject": + return NewServicePrincipalSubject(), nil + case "#microsoft.graph.userSubject": + return NewUserSubject(), nil + } + } + } + } + return NewConditionalAccessWhatIfSubject(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. // returns a map[string]any when successful -func (m *ItemSitesRemovePostRequestBody) GetAdditionalData()(map[string]any) { +func (m *ConditionalAccessWhatIfSubject) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -38,53 +57,41 @@ func (m *ItemSitesRemovePostRequestBody) GetAdditionalData()(map[string]any) { } // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful -func (m *ItemSitesRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *ConditionalAccessWhatIfSubject) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ConditionalAccessWhatIfSubject) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - } - } - m.SetValue(res) + m.SetOdataType(val) } return nil } return res } -// GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesRemovePostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { - val, err := m.GetBackingStore().Get("value") +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ConditionalAccessWhatIfSubject) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.(*string) } return nil } // Serialize serializes information the current object -func (m *ItemSitesRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - 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) +func (m *ConditionalAccessWhatIfSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { return err } @@ -98,29 +105,29 @@ func (m *ItemSitesRemovePostRequestBody) Serialize(writer i878a80d2330e89d268963 return nil } // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemSitesRemovePostRequestBody) SetAdditionalData(value map[string]any)() { +func (m *ConditionalAccessWhatIfSubject) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) if err != nil { panic(err) } } // SetBackingStore sets the BackingStore property value. Stores model information. -func (m *ItemSitesRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { +func (m *ConditionalAccessWhatIfSubject) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetValue sets the value property value. The value property -func (m *ItemSitesRemovePostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { - err := m.GetBackingStore().Set("value", value) +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConditionalAccessWhatIfSubject) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) if err != nil { panic(err) } } -type ItemSitesRemovePostRequestBodyable interface { +type ConditionalAccessWhatIfSubjectable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + SetOdataType(value *string)() } diff --git a/models/contact.go b/models/contact.go index 20c5408cff0..ab7f0c4cba6 100644 --- a/models/contact.go +++ b/models/contact.go @@ -608,7 +608,7 @@ func (m *Contact) GetGivenName()(*string) { } return nil } -// GetImAddresses gets the imAddresses property value. The imAddresses property +// GetImAddresses gets the imAddresses property value. The contact's instant messaging (IM) addresses. // returns a []string when successful func (m *Contact) GetImAddresses()([]string) { val, err := m.GetBackingStore().Get("imAddresses") @@ -620,7 +620,7 @@ func (m *Contact) GetImAddresses()([]string) { } return nil } -// GetInitials gets the initials property value. The initials property +// GetInitials gets the initials property value. The contact's initials. // returns a *string when successful func (m *Contact) GetInitials()(*string) { val, err := m.GetBackingStore().Get("initials") @@ -644,7 +644,7 @@ func (m *Contact) GetIsFavorite()(*bool) { } return nil } -// GetJobTitle gets the jobTitle property value. The jobTitle property +// GetJobTitle gets the jobTitle property value. The contact’s job title. // returns a *string when successful func (m *Contact) GetJobTitle()(*string) { val, err := m.GetBackingStore().Get("jobTitle") @@ -656,7 +656,7 @@ func (m *Contact) GetJobTitle()(*string) { } return nil } -// GetManager gets the manager property value. The manager property +// GetManager gets the manager property value. The name of the contact's manager. // returns a *string when successful func (m *Contact) GetManager()(*string) { val, err := m.GetBackingStore().Get("manager") @@ -668,7 +668,7 @@ func (m *Contact) GetManager()(*string) { } return nil } -// GetMiddleName gets the middleName property value. The middleName property +// GetMiddleName gets the middleName property value. The contact's middle name. // returns a *string when successful func (m *Contact) GetMiddleName()(*string) { val, err := m.GetBackingStore().Get("middleName") @@ -692,7 +692,7 @@ func (m *Contact) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPr } return nil } -// GetNickName gets the nickName property value. The nickName property +// GetNickName gets the nickName property value. The contact's nickname. // returns a *string when successful func (m *Contact) GetNickName()(*string) { val, err := m.GetBackingStore().Get("nickName") @@ -704,7 +704,7 @@ func (m *Contact) GetNickName()(*string) { } return nil } -// GetOfficeLocation gets the officeLocation property value. The officeLocation property +// GetOfficeLocation gets the officeLocation property value. The location of the contact's office. // returns a *string when successful func (m *Contact) GetOfficeLocation()(*string) { val, err := m.GetBackingStore().Get("officeLocation") @@ -716,7 +716,7 @@ func (m *Contact) GetOfficeLocation()(*string) { } return nil } -// GetParentFolderId gets the parentFolderId property value. The parentFolderId property +// GetParentFolderId gets the parentFolderId property value. The ID of the contact's parent folder. // returns a *string when successful func (m *Contact) GetParentFolderId()(*string) { val, err := m.GetBackingStore().Get("parentFolderId") @@ -728,7 +728,7 @@ func (m *Contact) GetParentFolderId()(*string) { } return nil } -// GetPersonalNotes gets the personalNotes property value. The personalNotes property +// GetPersonalNotes gets the personalNotes property value. The user's notes about the contact. // returns a *string when successful func (m *Contact) GetPersonalNotes()(*string) { val, err := m.GetBackingStore().Get("personalNotes") @@ -740,7 +740,7 @@ func (m *Contact) GetPersonalNotes()(*string) { } return nil } -// GetPhones gets the phones property value. The phones property +// GetPhones gets the phones property value. Phone numbers associated with the contact, for example, home phone, mobile phone, and business phone. // returns a []Phoneable when successful func (m *Contact) GetPhones()([]Phoneable) { val, err := m.GetBackingStore().Get("phones") @@ -764,7 +764,7 @@ func (m *Contact) GetPhoto()(ProfilePhotoable) { } return nil } -// GetPostalAddresses gets the postalAddresses property value. The postalAddresses property +// GetPostalAddresses gets the postalAddresses property value. Addresses associated with the contact, for example, home address and business address. // returns a []PhysicalAddressable when successful func (m *Contact) GetPostalAddresses()([]PhysicalAddressable) { val, err := m.GetBackingStore().Get("postalAddresses") @@ -776,7 +776,7 @@ func (m *Contact) GetPostalAddresses()([]PhysicalAddressable) { } return nil } -// GetProfession gets the profession property value. The profession property +// GetProfession gets the profession property value. The contact's profession. // returns a *string when successful func (m *Contact) GetProfession()(*string) { val, err := m.GetBackingStore().Get("profession") @@ -800,7 +800,7 @@ func (m *Contact) GetSingleValueExtendedProperties()([]SingleValueLegacyExtended } return nil } -// GetSpouseName gets the spouseName property value. The spouseName property +// GetSpouseName gets the spouseName property value. The name of the contact's spouse/partner. // returns a *string when successful func (m *Contact) GetSpouseName()(*string) { val, err := m.GetBackingStore().Get("spouseName") @@ -812,7 +812,7 @@ func (m *Contact) GetSpouseName()(*string) { } return nil } -// GetSurname gets the surname property value. The surname property +// GetSurname gets the surname property value. The contact's surname. // returns a *string when successful func (m *Contact) GetSurname()(*string) { val, err := m.GetBackingStore().Get("surname") @@ -824,7 +824,7 @@ func (m *Contact) GetSurname()(*string) { } return nil } -// GetTitle gets the title property value. The title property +// GetTitle gets the title property value. The contact's title. // returns a *string when successful func (m *Contact) GetTitle()(*string) { val, err := m.GetBackingStore().Get("title") @@ -836,7 +836,7 @@ func (m *Contact) GetTitle()(*string) { } return nil } -// GetWebsites gets the websites property value. The websites property +// GetWebsites gets the websites property value. Web sites associated with the contact. // returns a []Websiteable when successful func (m *Contact) GetWebsites()([]Websiteable) { val, err := m.GetBackingStore().Get("websites") @@ -848,7 +848,7 @@ func (m *Contact) GetWebsites()([]Websiteable) { } return nil } -// GetWeddingAnniversary gets the weddingAnniversary property value. The weddingAnniversary property +// GetWeddingAnniversary gets the weddingAnniversary property value. The contact's wedding anniversary. // returns a *DateOnly when successful func (m *Contact) GetWeddingAnniversary()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("weddingAnniversary") @@ -860,7 +860,7 @@ func (m *Contact) GetWeddingAnniversary()(*i878a80d2330e89d26896388a3f487eef27b0 } return nil } -// GetYomiCompanyName gets the yomiCompanyName property value. The yomiCompanyName property +// GetYomiCompanyName gets the yomiCompanyName property value. The phonetic Japanese company name of the contact. // returns a *string when successful func (m *Contact) GetYomiCompanyName()(*string) { val, err := m.GetBackingStore().Get("yomiCompanyName") @@ -872,7 +872,7 @@ func (m *Contact) GetYomiCompanyName()(*string) { } return nil } -// GetYomiGivenName gets the yomiGivenName property value. The yomiGivenName property +// GetYomiGivenName gets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact. // returns a *string when successful func (m *Contact) GetYomiGivenName()(*string) { val, err := m.GetBackingStore().Get("yomiGivenName") @@ -884,7 +884,7 @@ func (m *Contact) GetYomiGivenName()(*string) { } return nil } -// GetYomiSurname gets the yomiSurname property value. The yomiSurname property +// GetYomiSurname gets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact. // returns a *string when successful func (m *Contact) GetYomiSurname()(*string) { val, err := m.GetBackingStore().Get("yomiSurname") @@ -1259,14 +1259,14 @@ func (m *Contact) SetGivenName(value *string)() { panic(err) } } -// SetImAddresses sets the imAddresses property value. The imAddresses property +// SetImAddresses sets the imAddresses property value. The contact's instant messaging (IM) addresses. func (m *Contact) SetImAddresses(value []string)() { err := m.GetBackingStore().Set("imAddresses", value) if err != nil { panic(err) } } -// SetInitials sets the initials property value. The initials property +// SetInitials sets the initials property value. The contact's initials. func (m *Contact) SetInitials(value *string)() { err := m.GetBackingStore().Set("initials", value) if err != nil { @@ -1280,21 +1280,21 @@ func (m *Contact) SetIsFavorite(value *bool)() { panic(err) } } -// SetJobTitle sets the jobTitle property value. The jobTitle property +// SetJobTitle sets the jobTitle property value. The contact’s job title. func (m *Contact) SetJobTitle(value *string)() { err := m.GetBackingStore().Set("jobTitle", value) if err != nil { panic(err) } } -// SetManager sets the manager property value. The manager property +// SetManager sets the manager property value. The name of the contact's manager. func (m *Contact) SetManager(value *string)() { err := m.GetBackingStore().Set("manager", value) if err != nil { panic(err) } } -// SetMiddleName sets the middleName property value. The middleName property +// SetMiddleName sets the middleName property value. The contact's middle name. func (m *Contact) SetMiddleName(value *string)() { err := m.GetBackingStore().Set("middleName", value) if err != nil { @@ -1308,35 +1308,35 @@ func (m *Contact) SetMultiValueExtendedProperties(value []MultiValueLegacyExtend panic(err) } } -// SetNickName sets the nickName property value. The nickName property +// SetNickName sets the nickName property value. The contact's nickname. func (m *Contact) SetNickName(value *string)() { err := m.GetBackingStore().Set("nickName", value) if err != nil { panic(err) } } -// SetOfficeLocation sets the officeLocation property value. The officeLocation property +// SetOfficeLocation sets the officeLocation property value. The location of the contact's office. func (m *Contact) SetOfficeLocation(value *string)() { err := m.GetBackingStore().Set("officeLocation", value) if err != nil { panic(err) } } -// SetParentFolderId sets the parentFolderId property value. The parentFolderId property +// SetParentFolderId sets the parentFolderId property value. The ID of the contact's parent folder. func (m *Contact) SetParentFolderId(value *string)() { err := m.GetBackingStore().Set("parentFolderId", value) if err != nil { panic(err) } } -// SetPersonalNotes sets the personalNotes property value. The personalNotes property +// SetPersonalNotes sets the personalNotes property value. The user's notes about the contact. func (m *Contact) SetPersonalNotes(value *string)() { err := m.GetBackingStore().Set("personalNotes", value) if err != nil { panic(err) } } -// SetPhones sets the phones property value. The phones property +// SetPhones sets the phones property value. Phone numbers associated with the contact, for example, home phone, mobile phone, and business phone. func (m *Contact) SetPhones(value []Phoneable)() { err := m.GetBackingStore().Set("phones", value) if err != nil { @@ -1350,14 +1350,14 @@ func (m *Contact) SetPhoto(value ProfilePhotoable)() { panic(err) } } -// SetPostalAddresses sets the postalAddresses property value. The postalAddresses property +// SetPostalAddresses sets the postalAddresses property value. Addresses associated with the contact, for example, home address and business address. func (m *Contact) SetPostalAddresses(value []PhysicalAddressable)() { err := m.GetBackingStore().Set("postalAddresses", value) if err != nil { panic(err) } } -// SetProfession sets the profession property value. The profession property +// SetProfession sets the profession property value. The contact's profession. func (m *Contact) SetProfession(value *string)() { err := m.GetBackingStore().Set("profession", value) if err != nil { @@ -1371,56 +1371,56 @@ func (m *Contact) SetSingleValueExtendedProperties(value []SingleValueLegacyExte panic(err) } } -// SetSpouseName sets the spouseName property value. The spouseName property +// SetSpouseName sets the spouseName property value. The name of the contact's spouse/partner. func (m *Contact) SetSpouseName(value *string)() { err := m.GetBackingStore().Set("spouseName", value) if err != nil { panic(err) } } -// SetSurname sets the surname property value. The surname property +// SetSurname sets the surname property value. The contact's surname. func (m *Contact) SetSurname(value *string)() { err := m.GetBackingStore().Set("surname", value) if err != nil { panic(err) } } -// SetTitle sets the title property value. The title property +// SetTitle sets the title property value. The contact's title. func (m *Contact) SetTitle(value *string)() { err := m.GetBackingStore().Set("title", value) if err != nil { panic(err) } } -// SetWebsites sets the websites property value. The websites property +// SetWebsites sets the websites property value. Web sites associated with the contact. func (m *Contact) SetWebsites(value []Websiteable)() { err := m.GetBackingStore().Set("websites", value) if err != nil { panic(err) } } -// SetWeddingAnniversary sets the weddingAnniversary property value. The weddingAnniversary property +// SetWeddingAnniversary sets the weddingAnniversary property value. The contact's wedding anniversary. func (m *Contact) SetWeddingAnniversary(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("weddingAnniversary", value) if err != nil { panic(err) } } -// SetYomiCompanyName sets the yomiCompanyName property value. The yomiCompanyName property +// SetYomiCompanyName sets the yomiCompanyName property value. The phonetic Japanese company name of the contact. func (m *Contact) SetYomiCompanyName(value *string)() { err := m.GetBackingStore().Set("yomiCompanyName", value) if err != nil { panic(err) } } -// SetYomiGivenName sets the yomiGivenName property value. The yomiGivenName property +// SetYomiGivenName sets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact. func (m *Contact) SetYomiGivenName(value *string)() { err := m.GetBackingStore().Set("yomiGivenName", value) if err != nil { panic(err) } } -// SetYomiSurname sets the yomiSurname property value. The yomiSurname property +// SetYomiSurname sets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact. func (m *Contact) SetYomiSurname(value *string)() { err := m.GetBackingStore().Set("yomiSurname", value) if err != nil { diff --git a/models/content_type.go b/models/content_type.go index 0e6b66416da..905fb320383 100644 --- a/models/content_type.go +++ b/models/content_type.go @@ -19,7 +19,7 @@ func NewContentType()(*ContentType) { func CreateContentTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewContentType(), nil } -// GetAssociatedHubsUrls gets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This contains all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type will be applied to the lists in the enforced sites. +// GetAssociatedHubsUrls gets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This contains all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites. // returns a []string when successful func (m *ContentType) GetAssociatedHubsUrls()([]string) { val, err := m.GetBackingStore().Get("associatedHubsUrls") @@ -55,7 +55,7 @@ func (m *ContentType) GetBaseTypes()([]ContentTypeable) { } return nil } -// GetColumnLinks gets the columnLinks property value. The collection of columns that are required by this content type +// GetColumnLinks gets the columnLinks property value. The collection of columns that are required by this content type. // returns a []ColumnLinkable when successful func (m *ContentType) GetColumnLinks()([]ColumnLinkable) { val, err := m.GetBackingStore().Get("columnLinks") @@ -79,7 +79,7 @@ func (m *ContentType) GetColumnPositions()([]ColumnDefinitionable) { } return nil } -// GetColumns gets the columns property value. The collection of column definitions for this contentType. +// GetColumns gets the columns property value. The collection of column definitions for this content type. // returns a []ColumnDefinitionable when successful func (m *ContentType) GetColumns()([]ColumnDefinitionable) { val, err := m.GetBackingStore().Get("columns") @@ -437,7 +437,7 @@ func (m *ContentType) GetParentId()(*string) { } return nil } -// GetPropagateChanges gets the propagateChanges property value. If true, any changes made to the content type will be pushed to inherited content types and lists that implement the content type. +// GetPropagateChanges gets the propagateChanges property value. If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type. // returns a *bool when successful func (m *ContentType) GetPropagateChanges()(*bool) { val, err := m.GetBackingStore().Get("propagateChanges") @@ -619,7 +619,7 @@ func (m *ContentType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// SetAssociatedHubsUrls sets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This contains all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type will be applied to the lists in the enforced sites. +// SetAssociatedHubsUrls sets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This contains all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites. func (m *ContentType) SetAssociatedHubsUrls(value []string)() { err := m.GetBackingStore().Set("associatedHubsUrls", value) if err != nil { @@ -640,7 +640,7 @@ func (m *ContentType) SetBaseTypes(value []ContentTypeable)() { panic(err) } } -// SetColumnLinks sets the columnLinks property value. The collection of columns that are required by this content type +// SetColumnLinks sets the columnLinks property value. The collection of columns that are required by this content type. func (m *ContentType) SetColumnLinks(value []ColumnLinkable)() { err := m.GetBackingStore().Set("columnLinks", value) if err != nil { @@ -654,7 +654,7 @@ func (m *ContentType) SetColumnPositions(value []ColumnDefinitionable)() { panic(err) } } -// SetColumns sets the columns property value. The collection of column definitions for this contentType. +// SetColumns sets the columns property value. The collection of column definitions for this content type. func (m *ContentType) SetColumns(value []ColumnDefinitionable)() { err := m.GetBackingStore().Set("columns", value) if err != nil { @@ -731,7 +731,7 @@ func (m *ContentType) SetParentId(value *string)() { panic(err) } } -// SetPropagateChanges sets the propagateChanges property value. If true, any changes made to the content type will be pushed to inherited content types and lists that implement the content type. +// SetPropagateChanges sets the propagateChanges property value. If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type. func (m *ContentType) SetPropagateChanges(value *bool)() { err := m.GetBackingStore().Set("propagateChanges", value) if err != nil { diff --git a/models/conversion_user_details.go b/models/conversion_user_details.go new file mode 100644 index 00000000000..4035bccd1e7 --- /dev/null +++ b/models/conversion_user_details.go @@ -0,0 +1,262 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ConversionUserDetails struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewConversionUserDetails instantiates a new ConversionUserDetails and sets the default values. +func NewConversionUserDetails()(*ConversionUserDetails) { + m := &ConversionUserDetails{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateConversionUserDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConversionUserDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConversionUserDetails(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ConversionUserDetails) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ConversionUserDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetConvertedToInternalUserDateTime gets the convertedToInternalUserDateTime property value. The convertedToInternalUserDateTime property +// returns a *Time when successful +func (m *ConversionUserDetails) GetConvertedToInternalUserDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("convertedToInternalUserDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDisplayName gets the displayName property value. Name displayed for the user. +// returns a *string when successful +func (m *ConversionUserDetails) 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 *ConversionUserDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["convertedToInternalUserDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetConvertedToInternalUserDateTime(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["mail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMail(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserPrincipalName(val) + } + return nil + } + return res +} +// GetMail gets the mail property value. The SMTP address for the user. +// returns a *string when successful +func (m *ConversionUserDetails) GetMail()(*string) { + val, err := m.GetBackingStore().Get("mail") + 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 *ConversionUserDetails) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserPrincipalName gets the userPrincipalName property value. The user principal name (UPN) of the user. +// returns a *string when successful +func (m *ConversionUserDetails) GetUserPrincipalName()(*string) { + val, err := m.GetBackingStore().Get("userPrincipalName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ConversionUserDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("convertedToInternalUserDateTime", m.GetConvertedToInternalUserDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("mail", m.GetMail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ConversionUserDetails) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ConversionUserDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetConvertedToInternalUserDateTime sets the convertedToInternalUserDateTime property value. The convertedToInternalUserDateTime property +func (m *ConversionUserDetails) SetConvertedToInternalUserDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("convertedToInternalUserDateTime", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. Name displayed for the user. +func (m *ConversionUserDetails) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetMail sets the mail property value. The SMTP address for the user. +func (m *ConversionUserDetails) SetMail(value *string)() { + err := m.GetBackingStore().Set("mail", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConversionUserDetails) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetUserPrincipalName sets the userPrincipalName property value. The user principal name (UPN) of the user. +func (m *ConversionUserDetails) SetUserPrincipalName(value *string)() { + err := m.GetBackingStore().Set("userPrincipalName", value) + if err != nil { + panic(err) + } +} +type ConversionUserDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetConvertedToInternalUserDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDisplayName()(*string) + GetMail()(*string) + GetOdataType()(*string) + GetUserPrincipalName()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetConvertedToInternalUserDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDisplayName(value *string)() + SetMail(value *string)() + SetOdataType(value *string)() + SetUserPrincipalName(value *string)() +} diff --git a/models/device_app_management.go b/models/device_app_management.go index a1eee39648e..c890f522c32 100644 --- a/models/device_app_management.go +++ b/models/device_app_management.go @@ -315,6 +315,22 @@ func (m *DeviceAppManagement) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["mobileAppCatalogPackages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMobileAppCatalogPackageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MobileAppCatalogPackageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MobileAppCatalogPackageable) + } + } + m.SetMobileAppCatalogPackages(res) + } + return nil + } res["mobileAppCategories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateMobileAppCategoryFromDiscriminatorValue) if err != nil { @@ -669,6 +685,18 @@ func (m *DeviceAppManagement) GetMicrosoftStoreForBusinessPortalSelection()(*Mic } return nil } +// GetMobileAppCatalogPackages gets the mobileAppCatalogPackages property value. MobileAppCatalogPackage entities. +// returns a []MobileAppCatalogPackageable when successful +func (m *DeviceAppManagement) GetMobileAppCatalogPackages()([]MobileAppCatalogPackageable) { + val, err := m.GetBackingStore().Get("mobileAppCatalogPackages") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MobileAppCatalogPackageable) + } + return nil +} // GetMobileAppCategories gets the mobileAppCategories property value. The mobile app categories. // returns a []MobileAppCategoryable when successful func (m *DeviceAppManagement) GetMobileAppCategories()([]MobileAppCategoryable) { @@ -1006,6 +1034,18 @@ func (m *DeviceAppManagement) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + if m.GetMobileAppCatalogPackages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMobileAppCatalogPackages())) + for i, v := range m.GetMobileAppCatalogPackages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("mobileAppCatalogPackages", cast) + if err != nil { + return err + } + } if m.GetMobileAppCategories() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMobileAppCategories())) for i, v := range m.GetMobileAppCategories() { @@ -1271,6 +1311,13 @@ func (m *DeviceAppManagement) SetMicrosoftStoreForBusinessPortalSelection(value panic(err) } } +// SetMobileAppCatalogPackages sets the mobileAppCatalogPackages property value. MobileAppCatalogPackage entities. +func (m *DeviceAppManagement) SetMobileAppCatalogPackages(value []MobileAppCatalogPackageable)() { + err := m.GetBackingStore().Set("mobileAppCatalogPackages", value) + if err != nil { + panic(err) + } +} // SetMobileAppCategories sets the mobileAppCategories property value. The mobile app categories. func (m *DeviceAppManagement) SetMobileAppCategories(value []MobileAppCategoryable)() { err := m.GetBackingStore().Set("mobileAppCategories", value) @@ -1382,6 +1429,7 @@ type DeviceAppManagementable interface { GetMicrosoftStoreForBusinessLastCompletedApplicationSyncTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMicrosoftStoreForBusinessLastSuccessfulSyncDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMicrosoftStoreForBusinessPortalSelection()(*MicrosoftStoreForBusinessPortalSelectionOptions) + GetMobileAppCatalogPackages()([]MobileAppCatalogPackageable) GetMobileAppCategories()([]MobileAppCategoryable) GetMobileAppConfigurations()([]ManagedDeviceMobileAppConfigurationable) GetMobileApps()([]MobileAppable) @@ -1412,6 +1460,7 @@ type DeviceAppManagementable interface { SetMicrosoftStoreForBusinessLastCompletedApplicationSyncTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMicrosoftStoreForBusinessLastSuccessfulSyncDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMicrosoftStoreForBusinessPortalSelection(value *MicrosoftStoreForBusinessPortalSelectionOptions)() + SetMobileAppCatalogPackages(value []MobileAppCatalogPackageable)() SetMobileAppCategories(value []MobileAppCategoryable)() SetMobileAppConfigurations(value []ManagedDeviceMobileAppConfigurationable)() SetMobileApps(value []MobileAppable)() diff --git a/models/device_compliance_policy.go b/models/device_compliance_policy.go index 0fbecee2804..79acc594d7c 100644 --- a/models/device_compliance_policy.go +++ b/models/device_compliance_policy.go @@ -341,7 +341,7 @@ func (m *DeviceCompliancePolicy) GetRoleScopeTagIds()([]string) { } return nil } -// GetScheduledActionsForRule gets the scheduledActionsForRule property value. The list of scheduled action for this rule +// GetScheduledActionsForRule gets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. // returns a []DeviceComplianceScheduledActionForRuleable when successful func (m *DeviceCompliancePolicy) GetScheduledActionsForRule()([]DeviceComplianceScheduledActionForRuleable) { val, err := m.GetBackingStore().Get("scheduledActionsForRule") @@ -568,7 +568,7 @@ func (m *DeviceCompliancePolicy) SetRoleScopeTagIds(value []string)() { panic(err) } } -// SetScheduledActionsForRule sets the scheduledActionsForRule property value. The list of scheduled action for this rule +// SetScheduledActionsForRule sets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. func (m *DeviceCompliancePolicy) SetScheduledActionsForRule(value []DeviceComplianceScheduledActionForRuleable)() { err := m.GetBackingStore().Set("scheduledActionsForRule", value) if err != nil { diff --git a/models/device_enrollment_windows_hello_for_business_configuration.go b/models/device_enrollment_windows_hello_for_business_configuration.go index bfda1919e6b..65291aa6688 100644 --- a/models/device_enrollment_windows_hello_for_business_configuration.go +++ b/models/device_enrollment_windows_hello_for_business_configuration.go @@ -34,7 +34,7 @@ func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) GetEnhancedBiomet } return nil } -// GetEnhancedSignInSecurity gets the enhancedSignInSecurity property value. Setting to configure Enahcned sign-in security. Default is enabled on one secure modality (face or fingerprint) +// GetEnhancedSignInSecurity gets the enhancedSignInSecurity property value. Setting to configure Enhanced sign-in security. Default is Not Configured // returns a *int32 when successful func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) GetEnhancedSignInSecurity()(*int32) { val, err := m.GetBackingStore().Get("enhancedSignInSecurity") @@ -441,7 +441,7 @@ func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetEnhancedBiomet panic(err) } } -// SetEnhancedSignInSecurity sets the enhancedSignInSecurity property value. Setting to configure Enahcned sign-in security. Default is enabled on one secure modality (face or fingerprint) +// SetEnhancedSignInSecurity sets the enhancedSignInSecurity property value. Setting to configure Enhanced sign-in security. Default is Not Configured func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetEnhancedSignInSecurity(value *int32)() { err := m.GetBackingStore().Set("enhancedSignInSecurity", value) if err != nil { diff --git a/models/device_info.go b/models/device_info.go new file mode 100644 index 00000000000..422111b1ee9 --- /dev/null +++ b/models/device_info.go @@ -0,0 +1,1198 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type DeviceInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeviceInfo instantiates a new DeviceInfo and sets the default values. +func NewDeviceInfo()(*DeviceInfo) { + m := &DeviceInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeviceInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeviceInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeviceInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *DeviceInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *DeviceInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDeviceId gets the deviceId property value. The deviceId property +// returns a *string when successful +func (m *DeviceInfo) GetDeviceId()(*string) { + val, err := m.GetBackingStore().Get("deviceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *DeviceInfo) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEnrollmentProfileName gets the enrollmentProfileName property value. The enrollmentProfileName property +// returns a *string when successful +func (m *DeviceInfo) GetEnrollmentProfileName()(*string) { + val, err := m.GetBackingStore().Get("enrollmentProfileName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute1 gets the extensionAttribute1 property value. The extensionAttribute1 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute1()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute1") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute10 gets the extensionAttribute10 property value. The extensionAttribute10 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute10()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute10") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute11 gets the extensionAttribute11 property value. The extensionAttribute11 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute11()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute11") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute12 gets the extensionAttribute12 property value. The extensionAttribute12 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute12()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute12") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute13 gets the extensionAttribute13 property value. The extensionAttribute13 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute13()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute13") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute14 gets the extensionAttribute14 property value. The extensionAttribute14 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute14()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute14") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute15 gets the extensionAttribute15 property value. The extensionAttribute15 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute15()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute15") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute2 gets the extensionAttribute2 property value. The extensionAttribute2 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute2()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute2") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute3 gets the extensionAttribute3 property value. The extensionAttribute3 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute3()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute3") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute4 gets the extensionAttribute4 property value. The extensionAttribute4 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute4()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute4") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute5 gets the extensionAttribute5 property value. The extensionAttribute5 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute5()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute5") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute6 gets the extensionAttribute6 property value. The extensionAttribute6 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute6()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute6") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute7 gets the extensionAttribute7 property value. The extensionAttribute7 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute7()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute7") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute8 gets the extensionAttribute8 property value. The extensionAttribute8 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute8()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute8") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExtensionAttribute9 gets the extensionAttribute9 property value. The extensionAttribute9 property +// returns a *string when successful +func (m *DeviceInfo) GetExtensionAttribute9()(*string) { + val, err := m.GetBackingStore().Get("extensionAttribute9") + 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 *DeviceInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["deviceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceId(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["enrollmentProfileName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEnrollmentProfileName(val) + } + return nil + } + res["extensionAttribute1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute1(val) + } + return nil + } + res["extensionAttribute10"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute10(val) + } + return nil + } + res["extensionAttribute11"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute11(val) + } + return nil + } + res["extensionAttribute12"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute12(val) + } + return nil + } + res["extensionAttribute13"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute13(val) + } + return nil + } + res["extensionAttribute14"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute14(val) + } + return nil + } + res["extensionAttribute15"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute15(val) + } + return nil + } + res["extensionAttribute2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute2(val) + } + return nil + } + res["extensionAttribute3"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute3(val) + } + return nil + } + res["extensionAttribute4"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute4(val) + } + return nil + } + res["extensionAttribute5"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute5(val) + } + return nil + } + res["extensionAttribute6"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute6(val) + } + return nil + } + res["extensionAttribute7"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute7(val) + } + return nil + } + res["extensionAttribute8"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute8(val) + } + return nil + } + res["extensionAttribute9"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExtensionAttribute9(val) + } + return nil + } + res["isCompliant"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCompliant(val) + } + return nil + } + res["manufacturer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetManufacturer(val) + } + return nil + } + res["mdmAppId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMdmAppId(val) + } + return nil + } + res["model"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetModel(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["operatingSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOperatingSystem(val) + } + return nil + } + res["operatingSystemVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOperatingSystemVersion(val) + } + return nil + } + res["ownership"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOwnership(val) + } + return nil + } + res["physicalIds"] = 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.SetPhysicalIds(res) + } + return nil + } + res["profileType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProfileType(val) + } + return nil + } + res["systemLabels"] = 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.SetSystemLabels(res) + } + return nil + } + res["trustType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTrustType(val) + } + return nil + } + return res +} +// GetIsCompliant gets the isCompliant property value. The isCompliant property +// returns a *bool when successful +func (m *DeviceInfo) GetIsCompliant()(*bool) { + val, err := m.GetBackingStore().Get("isCompliant") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetManufacturer gets the manufacturer property value. The manufacturer property +// returns a *string when successful +func (m *DeviceInfo) GetManufacturer()(*string) { + val, err := m.GetBackingStore().Get("manufacturer") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetMdmAppId gets the mdmAppId property value. The mdmAppId property +// returns a *string when successful +func (m *DeviceInfo) GetMdmAppId()(*string) { + val, err := m.GetBackingStore().Get("mdmAppId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetModel gets the model property value. The model property +// returns a *string when successful +func (m *DeviceInfo) GetModel()(*string) { + val, err := m.GetBackingStore().Get("model") + 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 *DeviceInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOperatingSystem gets the operatingSystem property value. The operatingSystem property +// returns a *string when successful +func (m *DeviceInfo) GetOperatingSystem()(*string) { + val, err := m.GetBackingStore().Get("operatingSystem") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOperatingSystemVersion gets the operatingSystemVersion property value. The operatingSystemVersion property +// returns a *string when successful +func (m *DeviceInfo) GetOperatingSystemVersion()(*string) { + val, err := m.GetBackingStore().Get("operatingSystemVersion") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOwnership gets the ownership property value. The ownership property +// returns a *string when successful +func (m *DeviceInfo) GetOwnership()(*string) { + val, err := m.GetBackingStore().Get("ownership") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPhysicalIds gets the physicalIds property value. The physicalIds property +// returns a []string when successful +func (m *DeviceInfo) GetPhysicalIds()([]string) { + val, err := m.GetBackingStore().Get("physicalIds") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetProfileType gets the profileType property value. The profileType property +// returns a *string when successful +func (m *DeviceInfo) GetProfileType()(*string) { + val, err := m.GetBackingStore().Get("profileType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSystemLabels gets the systemLabels property value. The systemLabels property +// returns a []string when successful +func (m *DeviceInfo) GetSystemLabels()([]string) { + val, err := m.GetBackingStore().Get("systemLabels") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetTrustType gets the trustType property value. The trustType property +// returns a *string when successful +func (m *DeviceInfo) GetTrustType()(*string) { + val, err := m.GetBackingStore().Get("trustType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *DeviceInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("deviceId", m.GetDeviceId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("enrollmentProfileName", m.GetEnrollmentProfileName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute1", m.GetExtensionAttribute1()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute10", m.GetExtensionAttribute10()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute11", m.GetExtensionAttribute11()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute12", m.GetExtensionAttribute12()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute13", m.GetExtensionAttribute13()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute14", m.GetExtensionAttribute14()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute15", m.GetExtensionAttribute15()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute2", m.GetExtensionAttribute2()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute3", m.GetExtensionAttribute3()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute4", m.GetExtensionAttribute4()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute5", m.GetExtensionAttribute5()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute6", m.GetExtensionAttribute6()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute7", m.GetExtensionAttribute7()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute8", m.GetExtensionAttribute8()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("extensionAttribute9", m.GetExtensionAttribute9()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isCompliant", m.GetIsCompliant()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("manufacturer", m.GetManufacturer()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("mdmAppId", m.GetMdmAppId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("model", m.GetModel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("operatingSystem", m.GetOperatingSystem()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("operatingSystemVersion", m.GetOperatingSystemVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("ownership", m.GetOwnership()) + if err != nil { + return err + } + } + if m.GetPhysicalIds() != nil { + err := writer.WriteCollectionOfStringValues("physicalIds", m.GetPhysicalIds()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("profileType", m.GetProfileType()) + if err != nil { + return err + } + } + if m.GetSystemLabels() != nil { + err := writer.WriteCollectionOfStringValues("systemLabels", m.GetSystemLabels()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("trustType", m.GetTrustType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeviceInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeviceInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDeviceId sets the deviceId property value. The deviceId property +func (m *DeviceInfo) SetDeviceId(value *string)() { + err := m.GetBackingStore().Set("deviceId", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *DeviceInfo) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetEnrollmentProfileName sets the enrollmentProfileName property value. The enrollmentProfileName property +func (m *DeviceInfo) SetEnrollmentProfileName(value *string)() { + err := m.GetBackingStore().Set("enrollmentProfileName", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute1 sets the extensionAttribute1 property value. The extensionAttribute1 property +func (m *DeviceInfo) SetExtensionAttribute1(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute1", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute10 sets the extensionAttribute10 property value. The extensionAttribute10 property +func (m *DeviceInfo) SetExtensionAttribute10(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute10", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute11 sets the extensionAttribute11 property value. The extensionAttribute11 property +func (m *DeviceInfo) SetExtensionAttribute11(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute11", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute12 sets the extensionAttribute12 property value. The extensionAttribute12 property +func (m *DeviceInfo) SetExtensionAttribute12(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute12", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute13 sets the extensionAttribute13 property value. The extensionAttribute13 property +func (m *DeviceInfo) SetExtensionAttribute13(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute13", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute14 sets the extensionAttribute14 property value. The extensionAttribute14 property +func (m *DeviceInfo) SetExtensionAttribute14(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute14", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute15 sets the extensionAttribute15 property value. The extensionAttribute15 property +func (m *DeviceInfo) SetExtensionAttribute15(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute15", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute2 sets the extensionAttribute2 property value. The extensionAttribute2 property +func (m *DeviceInfo) SetExtensionAttribute2(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute2", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute3 sets the extensionAttribute3 property value. The extensionAttribute3 property +func (m *DeviceInfo) SetExtensionAttribute3(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute3", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute4 sets the extensionAttribute4 property value. The extensionAttribute4 property +func (m *DeviceInfo) SetExtensionAttribute4(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute4", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute5 sets the extensionAttribute5 property value. The extensionAttribute5 property +func (m *DeviceInfo) SetExtensionAttribute5(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute5", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute6 sets the extensionAttribute6 property value. The extensionAttribute6 property +func (m *DeviceInfo) SetExtensionAttribute6(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute6", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute7 sets the extensionAttribute7 property value. The extensionAttribute7 property +func (m *DeviceInfo) SetExtensionAttribute7(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute7", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute8 sets the extensionAttribute8 property value. The extensionAttribute8 property +func (m *DeviceInfo) SetExtensionAttribute8(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute8", value) + if err != nil { + panic(err) + } +} +// SetExtensionAttribute9 sets the extensionAttribute9 property value. The extensionAttribute9 property +func (m *DeviceInfo) SetExtensionAttribute9(value *string)() { + err := m.GetBackingStore().Set("extensionAttribute9", value) + if err != nil { + panic(err) + } +} +// SetIsCompliant sets the isCompliant property value. The isCompliant property +func (m *DeviceInfo) SetIsCompliant(value *bool)() { + err := m.GetBackingStore().Set("isCompliant", value) + if err != nil { + panic(err) + } +} +// SetManufacturer sets the manufacturer property value. The manufacturer property +func (m *DeviceInfo) SetManufacturer(value *string)() { + err := m.GetBackingStore().Set("manufacturer", value) + if err != nil { + panic(err) + } +} +// SetMdmAppId sets the mdmAppId property value. The mdmAppId property +func (m *DeviceInfo) SetMdmAppId(value *string)() { + err := m.GetBackingStore().Set("mdmAppId", value) + if err != nil { + panic(err) + } +} +// SetModel sets the model property value. The model property +func (m *DeviceInfo) SetModel(value *string)() { + err := m.GetBackingStore().Set("model", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOperatingSystem sets the operatingSystem property value. The operatingSystem property +func (m *DeviceInfo) SetOperatingSystem(value *string)() { + err := m.GetBackingStore().Set("operatingSystem", value) + if err != nil { + panic(err) + } +} +// SetOperatingSystemVersion sets the operatingSystemVersion property value. The operatingSystemVersion property +func (m *DeviceInfo) SetOperatingSystemVersion(value *string)() { + err := m.GetBackingStore().Set("operatingSystemVersion", value) + if err != nil { + panic(err) + } +} +// SetOwnership sets the ownership property value. The ownership property +func (m *DeviceInfo) SetOwnership(value *string)() { + err := m.GetBackingStore().Set("ownership", value) + if err != nil { + panic(err) + } +} +// SetPhysicalIds sets the physicalIds property value. The physicalIds property +func (m *DeviceInfo) SetPhysicalIds(value []string)() { + err := m.GetBackingStore().Set("physicalIds", value) + if err != nil { + panic(err) + } +} +// SetProfileType sets the profileType property value. The profileType property +func (m *DeviceInfo) SetProfileType(value *string)() { + err := m.GetBackingStore().Set("profileType", value) + if err != nil { + panic(err) + } +} +// SetSystemLabels sets the systemLabels property value. The systemLabels property +func (m *DeviceInfo) SetSystemLabels(value []string)() { + err := m.GetBackingStore().Set("systemLabels", value) + if err != nil { + panic(err) + } +} +// SetTrustType sets the trustType property value. The trustType property +func (m *DeviceInfo) SetTrustType(value *string)() { + err := m.GetBackingStore().Set("trustType", value) + if err != nil { + panic(err) + } +} +type DeviceInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDeviceId()(*string) + GetDisplayName()(*string) + GetEnrollmentProfileName()(*string) + GetExtensionAttribute1()(*string) + GetExtensionAttribute10()(*string) + GetExtensionAttribute11()(*string) + GetExtensionAttribute12()(*string) + GetExtensionAttribute13()(*string) + GetExtensionAttribute14()(*string) + GetExtensionAttribute15()(*string) + GetExtensionAttribute2()(*string) + GetExtensionAttribute3()(*string) + GetExtensionAttribute4()(*string) + GetExtensionAttribute5()(*string) + GetExtensionAttribute6()(*string) + GetExtensionAttribute7()(*string) + GetExtensionAttribute8()(*string) + GetExtensionAttribute9()(*string) + GetIsCompliant()(*bool) + GetManufacturer()(*string) + GetMdmAppId()(*string) + GetModel()(*string) + GetOdataType()(*string) + GetOperatingSystem()(*string) + GetOperatingSystemVersion()(*string) + GetOwnership()(*string) + GetPhysicalIds()([]string) + GetProfileType()(*string) + GetSystemLabels()([]string) + GetTrustType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDeviceId(value *string)() + SetDisplayName(value *string)() + SetEnrollmentProfileName(value *string)() + SetExtensionAttribute1(value *string)() + SetExtensionAttribute10(value *string)() + SetExtensionAttribute11(value *string)() + SetExtensionAttribute12(value *string)() + SetExtensionAttribute13(value *string)() + SetExtensionAttribute14(value *string)() + SetExtensionAttribute15(value *string)() + SetExtensionAttribute2(value *string)() + SetExtensionAttribute3(value *string)() + SetExtensionAttribute4(value *string)() + SetExtensionAttribute5(value *string)() + SetExtensionAttribute6(value *string)() + SetExtensionAttribute7(value *string)() + SetExtensionAttribute8(value *string)() + SetExtensionAttribute9(value *string)() + SetIsCompliant(value *bool)() + SetManufacturer(value *string)() + SetMdmAppId(value *string)() + SetModel(value *string)() + SetOdataType(value *string)() + SetOperatingSystem(value *string)() + SetOperatingSystemVersion(value *string)() + SetOwnership(value *string)() + SetPhysicalIds(value []string)() + SetProfileType(value *string)() + SetSystemLabels(value []string)() + SetTrustType(value *string)() +} diff --git a/models/device_management_configuration_just_in_time_assignment_policy.go b/models/device_management_configuration_just_in_time_assignment_policy.go new file mode 100644 index 00000000000..ee2d8f9d0c3 --- /dev/null +++ b/models/device_management_configuration_just_in_time_assignment_policy.go @@ -0,0 +1,114 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// DeviceManagementConfigurationJustInTimeAssignmentPolicy the DeviceManagementConfigurationJustInTimeAssignmentPolicy entity is used to create a just-in-time assignment of specific DeviceManagementConfigurationPolicy to an AAD group. +type DeviceManagementConfigurationJustInTimeAssignmentPolicy struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeviceManagementConfigurationJustInTimeAssignmentPolicy instantiates a new DeviceManagementConfigurationJustInTimeAssignmentPolicy and sets the default values. +func NewDeviceManagementConfigurationJustInTimeAssignmentPolicy()(*DeviceManagementConfigurationJustInTimeAssignmentPolicy) { + m := &DeviceManagementConfigurationJustInTimeAssignmentPolicy{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeviceManagementConfigurationJustInTimeAssignmentPolicyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeviceManagementConfigurationJustInTimeAssignmentPolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeviceManagementConfigurationJustInTimeAssignmentPolicy(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *DeviceManagementConfigurationJustInTimeAssignmentPolicy) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *DeviceManagementConfigurationJustInTimeAssignmentPolicy) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeviceManagementConfigurationJustInTimeAssignmentPolicy) 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 + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *DeviceManagementConfigurationJustInTimeAssignmentPolicy) 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 *DeviceManagementConfigurationJustInTimeAssignmentPolicy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + 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 *DeviceManagementConfigurationJustInTimeAssignmentPolicy) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeviceManagementConfigurationJustInTimeAssignmentPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationJustInTimeAssignmentPolicy) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type DeviceManagementConfigurationJustInTimeAssignmentPolicyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} 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_settings.go b/models/device_management_settings.go index ba1e9cbd1c2..dccee72ab5e 100644 --- a/models/device_management_settings.go +++ b/models/device_management_settings.go @@ -284,6 +284,16 @@ func (m *DeviceManagementSettings) GetFieldDeserializers()(map[string]func(i878a } return nil } + res["m365AppDiagnosticsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetM365AppDiagnosticsEnabled(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -330,6 +340,18 @@ func (m *DeviceManagementSettings) GetIsScheduledActionEnabled()(*bool) { } return nil } +// GetM365AppDiagnosticsEnabled gets the m365AppDiagnosticsEnabled property value. The property to determine if M365 App log collection is enabled for account. When TRUE it indicates that M365 app log collection is enabled for account. When FALSE it indicates that M365 app log collection is disabled for account. Default value is FALSE +// returns a *bool when successful +func (m *DeviceManagementSettings) GetM365AppDiagnosticsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("m365AppDiagnosticsEnabled") + 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 *DeviceManagementSettings) GetOdataType()(*string) { @@ -429,6 +451,12 @@ func (m *DeviceManagementSettings) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err := writer.WriteBoolValue("m365AppDiagnosticsEnabled", m.GetM365AppDiagnosticsEnabled()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -544,6 +572,13 @@ func (m *DeviceManagementSettings) SetIsScheduledActionEnabled(value *bool)() { panic(err) } } +// SetM365AppDiagnosticsEnabled sets the m365AppDiagnosticsEnabled property value. The property to determine if M365 App log collection is enabled for account. When TRUE it indicates that M365 app log collection is enabled for account. When FALSE it indicates that M365 app log collection is disabled for account. Default value is FALSE +func (m *DeviceManagementSettings) SetM365AppDiagnosticsEnabled(value *bool)() { + err := m.GetBackingStore().Set("m365AppDiagnosticsEnabled", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *DeviceManagementSettings) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -575,6 +610,7 @@ type DeviceManagementSettingsable interface { GetEnhancedJailBreak()(*bool) GetIgnoreDevicesForUnsupportedSettingsEnabled()(*bool) GetIsScheduledActionEnabled()(*bool) + GetM365AppDiagnosticsEnabled()(*bool) GetOdataType()(*string) GetSecureByDefault()(*bool) SetAndroidDeviceAdministratorEnrollmentEnabled(value *bool)() @@ -590,6 +626,7 @@ type DeviceManagementSettingsable interface { SetEnhancedJailBreak(value *bool)() SetIgnoreDevicesForUnsupportedSettingsEnabled(value *bool)() SetIsScheduledActionEnabled(value *bool)() + SetM365AppDiagnosticsEnabled(value *bool)() SetOdataType(value *string)() SetSecureByDefault(value *bool)() } diff --git a/models/document_set_version.go b/models/document_set_version.go index 6de7dec96a9..2542b32a371 100644 --- a/models/document_set_version.go +++ b/models/document_set_version.go @@ -132,7 +132,7 @@ func (m *DocumentSetVersion) GetItems()([]DocumentSetVersionItemable) { } return nil } -// GetShouldCaptureMinorVersion gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false. +// GetShouldCaptureMinorVersion gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false. // returns a *bool when successful func (m *DocumentSetVersion) GetShouldCaptureMinorVersion()(*bool) { val, err := m.GetBackingStore().Get("shouldCaptureMinorVersion") @@ -216,7 +216,7 @@ func (m *DocumentSetVersion) SetItems(value []DocumentSetVersionItemable)() { panic(err) } } -// SetShouldCaptureMinorVersion sets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false. +// SetShouldCaptureMinorVersion sets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false. func (m *DocumentSetVersion) SetShouldCaptureMinorVersion(value *bool)() { err := m.GetBackingStore().Set("shouldCaptureMinorVersion", value) if err != nil { diff --git a/models/drive_item.go b/models/drive_item.go index 3ba788477d8..e9299ad023e 100644 --- a/models/drive_item.go +++ b/models/drive_item.go @@ -81,7 +81,7 @@ func (m *DriveItem) GetChildren()([]DriveItemable) { } return nil } -// GetContent gets the content property value. The content stream, if the item represents a file. +// GetContent gets the content property value. The content property // returns a []byte when successful func (m *DriveItem) GetContent()([]byte) { val, err := m.GetBackingStore().Get("content") @@ -93,6 +93,18 @@ func (m *DriveItem) GetContent()([]byte) { } return nil } +// GetContentStream gets the contentStream property value. The content stream, if the item represents a file. +// returns a []byte when successful +func (m *DriveItem) GetContentStream()([]byte) { + val, err := m.GetBackingStore().Get("contentStream") + if err != nil { + panic(err) + } + if val != nil { + return val.([]byte) + } + return nil +} // GetCTag gets the cTag property value. An eTag for the content of the item. This eTag isn't changed if only the metadata is changed. Note This property isn't returned if the item is a folder. Read-only. // returns a *string when successful func (m *DriveItem) GetCTag()(*string) { @@ -193,6 +205,16 @@ func (m *DriveItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return nil } + res["contentStream"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetByteArrayValue() + if err != nil { + return err + } + if val != nil { + m.SetContentStream(val) + } + return nil + } res["cTag"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -909,6 +931,12 @@ func (m *DriveItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + { + err = writer.WriteByteArrayValue("contentStream", m.GetContentStream()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("cTag", m.GetCTag()) if err != nil { @@ -1150,13 +1178,20 @@ func (m *DriveItem) SetChildren(value []DriveItemable)() { panic(err) } } -// SetContent sets the content property value. The content stream, if the item represents a file. +// SetContent sets the content property value. The content property func (m *DriveItem) SetContent(value []byte)() { err := m.GetBackingStore().Set("content", value) if err != nil { panic(err) } } +// SetContentStream sets the contentStream property value. The content stream, if the item represents a file. +func (m *DriveItem) SetContentStream(value []byte)() { + err := m.GetBackingStore().Set("contentStream", value) + if err != nil { + panic(err) + } +} // SetCTag sets the cTag property value. An eTag for the content of the item. This eTag isn't changed if only the metadata is changed. Note This property isn't returned if the item is a folder. Read-only. func (m *DriveItem) SetCTag(value *string)() { err := m.GetBackingStore().Set("cTag", value) @@ -1376,6 +1411,7 @@ type DriveItemable interface { GetBundle()(Bundleable) GetChildren()([]DriveItemable) GetContent()([]byte) + GetContentStream()([]byte) GetCTag()(*string) GetDeleted()(Deletedable) GetFile()(Fileable) @@ -1412,6 +1448,7 @@ type DriveItemable interface { SetBundle(value Bundleable)() SetChildren(value []DriveItemable)() SetContent(value []byte)() + SetContentStream(value []byte)() SetCTag(value *string)() SetDeleted(value Deletedable)() SetFile(value Fileable)() diff --git a/models/education_grading_scheme.go b/models/education_grading_scheme.go index bde4e1ecb7c..46b26e8cd43 100644 --- a/models/education_grading_scheme.go +++ b/models/education_grading_scheme.go @@ -19,7 +19,7 @@ func NewEducationGradingScheme()(*EducationGradingScheme) { func CreateEducationGradingSchemeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewEducationGradingScheme(), nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The name of the grading scheme. // returns a *string when successful func (m *EducationGradingScheme) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -73,7 +73,7 @@ func (m *EducationGradingScheme) GetFieldDeserializers()(map[string]func(i878a80 } return res } -// GetGrades gets the grades property value. The grades property +// GetGrades gets the grades property value. The grades that make up the scheme. // returns a []EducationGradingSchemeGradeable when successful func (m *EducationGradingScheme) GetGrades()([]EducationGradingSchemeGradeable) { val, err := m.GetBackingStore().Get("grades") @@ -85,7 +85,7 @@ func (m *EducationGradingScheme) GetGrades()([]EducationGradingSchemeGradeable) } return nil } -// GetHidePointsDuringGrading gets the hidePointsDuringGrading property value. The hidePointsDuringGrading property +// GetHidePointsDuringGrading gets the hidePointsDuringGrading property value. The display setting for the UI. Indicates whether teachers can grade with points in addition to letter grades. // returns a *bool when successful func (m *EducationGradingScheme) GetHidePointsDuringGrading()(*bool) { val, err := m.GetBackingStore().Get("hidePointsDuringGrading") @@ -129,21 +129,21 @@ func (m *EducationGradingScheme) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The name of the grading scheme. func (m *EducationGradingScheme) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetGrades sets the grades property value. The grades property +// SetGrades sets the grades property value. The grades that make up the scheme. func (m *EducationGradingScheme) SetGrades(value []EducationGradingSchemeGradeable)() { err := m.GetBackingStore().Set("grades", value) if err != nil { panic(err) } } -// SetHidePointsDuringGrading sets the hidePointsDuringGrading property value. The hidePointsDuringGrading property +// SetHidePointsDuringGrading sets the hidePointsDuringGrading property value. The display setting for the UI. Indicates whether teachers can grade with points in addition to letter grades. func (m *EducationGradingScheme) SetHidePointsDuringGrading(value *bool)() { err := m.GetBackingStore().Set("hidePointsDuringGrading", value) if err != nil { diff --git a/models/education_grading_scheme_grade.go b/models/education_grading_scheme_grade.go index 902293905bf..b40ef30d2fa 100644 --- a/models/education_grading_scheme_grade.go +++ b/models/education_grading_scheme_grade.go @@ -40,7 +40,7 @@ func (m *EducationGradingSchemeGrade) GetAdditionalData()(map[string]any) { func (m *EducationGradingSchemeGrade) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDefaultPercentage gets the defaultPercentage property value. The defaultPercentage property +// GetDefaultPercentage gets the defaultPercentage property value. The midpoint of the grade range. // returns a *float32 when successful func (m *EducationGradingSchemeGrade) GetDefaultPercentage()(*float32) { val, err := m.GetBackingStore().Get("defaultPercentage") @@ -52,7 +52,7 @@ func (m *EducationGradingSchemeGrade) GetDefaultPercentage()(*float32) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The name of the grading scheme. // returns a *string when successful func (m *EducationGradingSchemeGrade) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -110,7 +110,7 @@ func (m *EducationGradingSchemeGrade) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetMinPercentage gets the minPercentage property value. The minPercentage property +// GetMinPercentage gets the minPercentage property value. The minimum percentage of the total points needed to achieve this grade. // returns a *float32 when successful func (m *EducationGradingSchemeGrade) GetMinPercentage()(*float32) { val, err := m.GetBackingStore().Get("minPercentage") @@ -179,21 +179,21 @@ func (m *EducationGradingSchemeGrade) SetAdditionalData(value map[string]any)() func (m *EducationGradingSchemeGrade) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDefaultPercentage sets the defaultPercentage property value. The defaultPercentage property +// SetDefaultPercentage sets the defaultPercentage property value. The midpoint of the grade range. func (m *EducationGradingSchemeGrade) SetDefaultPercentage(value *float32)() { err := m.GetBackingStore().Set("defaultPercentage", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The name of the grading scheme. func (m *EducationGradingSchemeGrade) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetMinPercentage sets the minPercentage property value. The minPercentage property +// SetMinPercentage sets the minPercentage property value. The minimum percentage of the total points needed to achieve this grade. func (m *EducationGradingSchemeGrade) SetMinPercentage(value *float32)() { err := m.GetBackingStore().Set("minPercentage", value) if err != nil { diff --git a/models/entity.go b/models/entity.go index b7a5cb81cd2..b6176d5fab4 100644 --- a/models/entity.go +++ b/models/entity.go @@ -686,6 +686,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewConditionalAccessRoot(), nil case "#microsoft.graph.conditionalAccessTemplate": return NewConditionalAccessTemplate(), nil + case "#microsoft.graph.conditionalAccessWhatIfPolicy": + return NewConditionalAccessWhatIfPolicy(), nil case "#microsoft.graph.configManagerCollection": return NewConfigManagerCollection(), nil case "#microsoft.graph.connectedOrganization": @@ -1806,6 +1808,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewMobileApp(), nil case "#microsoft.graph.mobileAppAssignment": return NewMobileAppAssignment(), nil + case "#microsoft.graph.mobileAppCatalogPackage": + return NewMobileAppCatalogPackage(), nil case "#microsoft.graph.mobileAppCategory": return NewMobileAppCategory(), nil case "#microsoft.graph.mobileAppContent": @@ -2926,6 +2930,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewWin32CatalogApp(), nil case "#microsoft.graph.win32LobApp": return NewWin32LobApp(), nil + case "#microsoft.graph.win32MobileAppCatalogPackage": + return NewWin32MobileAppCatalogPackage(), nil case "#microsoft.graph.windows10CertificateProfileBase": return NewWindows10CertificateProfileBase(), nil case "#microsoft.graph.windows10CompliancePolicy": @@ -3232,6 +3238,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewWorkbookWorksheetProtection(), nil case "#microsoft.graph.workforceIntegration": return NewWorkforceIntegration(), nil + case "#microsoft.graph.workplaceSensorDevice": + return NewWorkplaceSensorDevice(), nil case "#microsoft.graph.workPosition": return NewWorkPosition(), nil case "#microsoft.graph.workspace": diff --git a/models/event.go b/models/event.go index 3cc9754be3c..6fe6e051ec6 100644 --- a/models/event.go +++ b/models/event.go @@ -676,7 +676,7 @@ func (m *Event) GetHideAttendees()(*bool) { } return nil } -// GetImportance gets the importance property value. The importance property +// GetImportance gets the importance property value. The importance of the event. Possible values are: low, normal, high. // returns a *Importance when successful func (m *Event) GetImportance()(*Importance) { val, err := m.GetBackingStore().Get("importance") @@ -700,7 +700,7 @@ func (m *Event) GetInstances()([]Eventable) { } return nil } -// GetIsAllDay gets the isAllDay property value. The isAllDay property +// GetIsAllDay gets the isAllDay property value. Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start and end time must be set to midnight and be in the same time zone. // returns a *bool when successful func (m *Event) GetIsAllDay()(*bool) { val, err := m.GetBackingStore().Get("isAllDay") @@ -712,7 +712,7 @@ func (m *Event) GetIsAllDay()(*bool) { } return nil } -// GetIsCancelled gets the isCancelled property value. The isCancelled property +// GetIsCancelled gets the isCancelled property value. Set to true if the event has been canceled. // returns a *bool when successful func (m *Event) GetIsCancelled()(*bool) { val, err := m.GetBackingStore().Get("isCancelled") @@ -724,7 +724,7 @@ func (m *Event) GetIsCancelled()(*bool) { } return nil } -// GetIsDraft gets the isDraft property value. The isDraft property +// GetIsDraft gets the isDraft property value. Set to true if the user has updated the meeting in Outlook but hasn't sent the updates to attendees. Set to false if all changes have been sent, or if the event is an appointment without any attendees. // returns a *bool when successful func (m *Event) GetIsDraft()(*bool) { val, err := m.GetBackingStore().Get("isDraft") @@ -736,7 +736,7 @@ func (m *Event) GetIsDraft()(*bool) { } return nil } -// GetIsOnlineMeeting gets the isOnlineMeeting property value. The isOnlineMeeting property +// 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. // returns a *bool when successful func (m *Event) GetIsOnlineMeeting()(*bool) { val, err := m.GetBackingStore().Get("isOnlineMeeting") @@ -748,7 +748,7 @@ func (m *Event) GetIsOnlineMeeting()(*bool) { } return nil } -// GetIsOrganizer gets the isOrganizer property value. The isOrganizer property +// GetIsOrganizer gets the isOrganizer property value. Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). This also applies if a delegate organized the event on behalf of the owner. // returns a *bool when successful func (m *Event) GetIsOrganizer()(*bool) { val, err := m.GetBackingStore().Get("isOrganizer") @@ -760,7 +760,7 @@ func (m *Event) GetIsOrganizer()(*bool) { } return nil } -// GetIsReminderOn gets the isReminderOn property value. The isReminderOn property +// GetIsReminderOn gets the isReminderOn property value. Set to true if an alert is set to remind the user of the event. // returns a *bool when successful func (m *Event) GetIsReminderOn()(*bool) { val, err := m.GetBackingStore().Get("isReminderOn") @@ -772,7 +772,7 @@ func (m *Event) GetIsReminderOn()(*bool) { } return nil } -// GetLocation gets the location property value. The location property +// GetLocation gets the location property value. The location of the event. // returns a Locationable when successful func (m *Event) GetLocation()(Locationable) { val, err := m.GetBackingStore().Get("location") @@ -784,7 +784,7 @@ func (m *Event) GetLocation()(Locationable) { } return nil } -// GetLocations gets the locations property value. The locations property +// GetLocations gets the locations property value. The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection would be removed and replaced by the new location value. // returns a []Locationable when successful func (m *Event) GetLocations()([]Locationable) { val, err := m.GetBackingStore().Get("locations") @@ -808,7 +808,7 @@ func (m *Event) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedProp } return nil } -// GetOccurrenceId gets the occurrenceId property value. The occurrenceId property +// GetOccurrenceId gets the occurrenceId property value. An identifier for an occurrence in a recurring event series. Null if the event isn't part of a recurring series.The format of the property value is OID.{seriesMasterId-value}.{occurrence-start-date}. The time zone for {occurrence-start-date} is the recurrenceTimeZone property defined for the corresponding recurrenceRange.This property can identify any occurrence in a recurring series, including an occurrence that has been modified or canceled. You can use this property to perform all operations supported by occurrences in the recurring series. // returns a *string when successful func (m *Event) GetOccurrenceId()(*string) { val, err := m.GetBackingStore().Get("occurrenceId") @@ -820,7 +820,7 @@ func (m *Event) GetOccurrenceId()(*string) { } return nil } -// GetOnlineMeeting gets the onlineMeeting property value. The onlineMeeting property +// 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. // returns a OnlineMeetingInfoable when successful func (m *Event) GetOnlineMeeting()(OnlineMeetingInfoable) { val, err := m.GetBackingStore().Get("onlineMeeting") @@ -832,7 +832,7 @@ func (m *Event) GetOnlineMeeting()(OnlineMeetingInfoable) { } return nil } -// GetOnlineMeetingProvider gets the onlineMeetingProvider property value. The onlineMeetingProvider property +// 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. // returns a *OnlineMeetingProviderType when successful func (m *Event) GetOnlineMeetingProvider()(*OnlineMeetingProviderType) { val, err := m.GetBackingStore().Get("onlineMeetingProvider") @@ -844,7 +844,7 @@ func (m *Event) GetOnlineMeetingProvider()(*OnlineMeetingProviderType) { } return nil } -// GetOnlineMeetingUrl gets the onlineMeetingUrl property value. The onlineMeetingUrl property +// GetOnlineMeetingUrl gets the onlineMeetingUrl property value. A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future. // returns a *string when successful func (m *Event) GetOnlineMeetingUrl()(*string) { val, err := m.GetBackingStore().Get("onlineMeetingUrl") @@ -856,7 +856,7 @@ func (m *Event) GetOnlineMeetingUrl()(*string) { } return nil } -// GetOrganizer gets the organizer property value. The organizer property +// GetOrganizer gets the organizer property value. The organizer of the event. // returns a Recipientable when successful func (m *Event) GetOrganizer()(Recipientable) { val, err := m.GetBackingStore().Get("organizer") @@ -868,7 +868,7 @@ func (m *Event) GetOrganizer()(Recipientable) { } return nil } -// GetOriginalEndTimeZone gets the originalEndTimeZone property value. The originalEndTimeZone property +// GetOriginalEndTimeZone gets the originalEndTimeZone property value. The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. // returns a *string when successful func (m *Event) GetOriginalEndTimeZone()(*string) { val, err := m.GetBackingStore().Get("originalEndTimeZone") @@ -880,7 +880,7 @@ func (m *Event) GetOriginalEndTimeZone()(*string) { } return nil } -// GetOriginalStart gets the originalStart property value. The originalStart property +// 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 // returns a *Time when successful func (m *Event) GetOriginalStart()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("originalStart") @@ -892,7 +892,7 @@ func (m *Event) GetOriginalStart()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a163 } return nil } -// GetOriginalStartTimeZone gets the originalStartTimeZone property value. The originalStartTimeZone property +// GetOriginalStartTimeZone gets the originalStartTimeZone property value. The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. // returns a *string when successful func (m *Event) GetOriginalStartTimeZone()(*string) { val, err := m.GetBackingStore().Get("originalStartTimeZone") @@ -904,7 +904,7 @@ func (m *Event) GetOriginalStartTimeZone()(*string) { } return nil } -// GetRecurrence gets the recurrence property value. The recurrence property +// GetRecurrence gets the recurrence property value. The recurrence pattern for the event. // returns a PatternedRecurrenceable when successful func (m *Event) GetRecurrence()(PatternedRecurrenceable) { val, err := m.GetBackingStore().Get("recurrence") @@ -916,7 +916,7 @@ func (m *Event) GetRecurrence()(PatternedRecurrenceable) { } return nil } -// GetReminderMinutesBeforeStart gets the reminderMinutesBeforeStart property value. The reminderMinutesBeforeStart property +// GetReminderMinutesBeforeStart gets the reminderMinutesBeforeStart property value. The number of minutes before the event start time that the reminder alert occurs. // returns a *int32 when successful func (m *Event) GetReminderMinutesBeforeStart()(*int32) { val, err := m.GetBackingStore().Get("reminderMinutesBeforeStart") @@ -928,7 +928,7 @@ func (m *Event) GetReminderMinutesBeforeStart()(*int32) { } return nil } -// GetResponseRequested gets the responseRequested property value. The responseRequested property +// GetResponseRequested gets the responseRequested property value. Default is true, which represents the organizer would like an invitee to send a response to the event. // returns a *bool when successful func (m *Event) GetResponseRequested()(*bool) { val, err := m.GetBackingStore().Get("responseRequested") @@ -940,7 +940,7 @@ func (m *Event) GetResponseRequested()(*bool) { } return nil } -// GetResponseStatus gets the responseStatus property value. The responseStatus property +// GetResponseStatus gets the responseStatus property value. Indicates the type of response sent in response to an event message. // returns a ResponseStatusable when successful func (m *Event) GetResponseStatus()(ResponseStatusable) { val, err := m.GetBackingStore().Get("responseStatus") @@ -952,7 +952,7 @@ func (m *Event) GetResponseStatus()(ResponseStatusable) { } return nil } -// GetSensitivity gets the sensitivity property value. The sensitivity property +// GetSensitivity gets the sensitivity property value. Possible values are: normal, personal, private, confidential. // returns a *Sensitivity when successful func (m *Event) GetSensitivity()(*Sensitivity) { val, err := m.GetBackingStore().Get("sensitivity") @@ -964,7 +964,7 @@ func (m *Event) GetSensitivity()(*Sensitivity) { } return nil } -// GetSeriesMasterId gets the seriesMasterId property value. The seriesMasterId property +// GetSeriesMasterId gets the seriesMasterId property value. The ID for the recurring series master item, if this event is part of a recurring series. // returns a *string when successful func (m *Event) GetSeriesMasterId()(*string) { val, err := m.GetBackingStore().Get("seriesMasterId") @@ -976,7 +976,7 @@ func (m *Event) GetSeriesMasterId()(*string) { } return nil } -// GetShowAs gets the showAs property value. The showAs property +// GetShowAs gets the showAs property value. The status to show. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. // returns a *FreeBusyStatus when successful func (m *Event) GetShowAs()(*FreeBusyStatus) { val, err := m.GetBackingStore().Get("showAs") @@ -1000,7 +1000,7 @@ func (m *Event) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPr } return nil } -// GetStart gets the start property value. The start property +// GetStart gets the start property value. The start date, time, and time zone of the event. By default, the start time is in UTC. // returns a DateTimeTimeZoneable when successful func (m *Event) GetStart()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("start") @@ -1012,7 +1012,7 @@ func (m *Event) GetStart()(DateTimeTimeZoneable) { } return nil } -// GetSubject gets the subject property value. The subject property +// GetSubject gets the subject property value. The text of the event's subject line. // returns a *string when successful func (m *Event) GetSubject()(*string) { val, err := m.GetBackingStore().Get("subject") @@ -1024,7 +1024,7 @@ func (m *Event) GetSubject()(*string) { } return nil } -// GetTransactionId gets the transactionId property value. The transactionId property +// 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. // returns a *string when successful func (m *Event) GetTransactionId()(*string) { val, err := m.GetBackingStore().Get("transactionId") @@ -1036,7 +1036,7 @@ func (m *Event) GetTransactionId()(*string) { } return nil } -// GetTypeEscaped gets the type property value. The type property +// GetTypeEscaped gets the type property value. The event type. Possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only // returns a *EventType when successful func (m *Event) GetTypeEscaped()(*EventType) { val, err := m.GetBackingStore().Get("typeEscaped") @@ -1048,7 +1048,7 @@ func (m *Event) GetTypeEscaped()(*EventType) { } return nil } -// GetUid gets the uid property value. The uid property +// GetUid gets the uid property value. A unique identifier for calendar events. For recurring events, the value is the same for the series master and all of its occurrences including exceptions. // returns a *string when successful func (m *Event) GetUid()(*string) { val, err := m.GetBackingStore().Get("uid") @@ -1060,7 +1060,7 @@ func (m *Event) GetUid()(*string) { } return nil } -// GetWebLink gets the webLink property value. The webLink property +// 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. // returns a *string when successful func (m *Event) GetWebLink()(*string) { val, err := m.GetBackingStore().Get("webLink") @@ -1487,7 +1487,7 @@ func (m *Event) SetHideAttendees(value *bool)() { panic(err) } } -// SetImportance sets the importance property value. The importance property +// SetImportance sets the importance property value. The importance of the event. Possible values are: low, normal, high. func (m *Event) SetImportance(value *Importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { @@ -1501,56 +1501,56 @@ func (m *Event) SetInstances(value []Eventable)() { panic(err) } } -// SetIsAllDay sets the isAllDay property value. The isAllDay property +// SetIsAllDay sets the isAllDay property value. Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start and end time must be set to midnight and be in the same time zone. func (m *Event) SetIsAllDay(value *bool)() { err := m.GetBackingStore().Set("isAllDay", value) if err != nil { panic(err) } } -// SetIsCancelled sets the isCancelled property value. The isCancelled property +// SetIsCancelled sets the isCancelled property value. Set to true if the event has been canceled. func (m *Event) SetIsCancelled(value *bool)() { err := m.GetBackingStore().Set("isCancelled", value) if err != nil { panic(err) } } -// SetIsDraft sets the isDraft property value. The isDraft property +// SetIsDraft sets the isDraft property value. Set to true if the user has updated the meeting in Outlook but hasn't sent the updates to attendees. Set to false if all changes have been sent, or if the event is an appointment without any attendees. func (m *Event) SetIsDraft(value *bool)() { err := m.GetBackingStore().Set("isDraft", value) if err != nil { panic(err) } } -// SetIsOnlineMeeting sets the isOnlineMeeting property value. The isOnlineMeeting property +// 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. func (m *Event) SetIsOnlineMeeting(value *bool)() { err := m.GetBackingStore().Set("isOnlineMeeting", value) if err != nil { panic(err) } } -// SetIsOrganizer sets the isOrganizer property value. The isOrganizer property +// SetIsOrganizer sets the isOrganizer property value. Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). This also applies if a delegate organized the event on behalf of the owner. func (m *Event) SetIsOrganizer(value *bool)() { err := m.GetBackingStore().Set("isOrganizer", value) if err != nil { panic(err) } } -// SetIsReminderOn sets the isReminderOn property value. The isReminderOn property +// SetIsReminderOn sets the isReminderOn property value. Set to true if an alert is set to remind the user of the event. func (m *Event) SetIsReminderOn(value *bool)() { err := m.GetBackingStore().Set("isReminderOn", value) if err != nil { panic(err) } } -// SetLocation sets the location property value. The location property +// SetLocation sets the location property value. The location of the event. func (m *Event) SetLocation(value Locationable)() { err := m.GetBackingStore().Set("location", value) if err != nil { panic(err) } } -// SetLocations sets the locations property value. The locations property +// SetLocations sets the locations property value. The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection would be removed and replaced by the new location value. func (m *Event) SetLocations(value []Locationable)() { err := m.GetBackingStore().Set("locations", value) if err != nil { @@ -1564,105 +1564,105 @@ func (m *Event) SetMultiValueExtendedProperties(value []MultiValueLegacyExtended panic(err) } } -// SetOccurrenceId sets the occurrenceId property value. The occurrenceId property +// SetOccurrenceId sets the occurrenceId property value. An identifier for an occurrence in a recurring event series. Null if the event isn't part of a recurring series.The format of the property value is OID.{seriesMasterId-value}.{occurrence-start-date}. The time zone for {occurrence-start-date} is the recurrenceTimeZone property defined for the corresponding recurrenceRange.This property can identify any occurrence in a recurring series, including an occurrence that has been modified or canceled. You can use this property to perform all operations supported by occurrences in the recurring series. func (m *Event) SetOccurrenceId(value *string)() { err := m.GetBackingStore().Set("occurrenceId", value) if err != nil { panic(err) } } -// SetOnlineMeeting sets the onlineMeeting property value. The onlineMeeting property +// 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. func (m *Event) SetOnlineMeeting(value OnlineMeetingInfoable)() { err := m.GetBackingStore().Set("onlineMeeting", value) if err != nil { panic(err) } } -// SetOnlineMeetingProvider sets the onlineMeetingProvider property value. The onlineMeetingProvider property +// 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. func (m *Event) SetOnlineMeetingProvider(value *OnlineMeetingProviderType)() { err := m.GetBackingStore().Set("onlineMeetingProvider", value) if err != nil { panic(err) } } -// SetOnlineMeetingUrl sets the onlineMeetingUrl property value. The onlineMeetingUrl property +// SetOnlineMeetingUrl sets the onlineMeetingUrl property value. A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future. func (m *Event) SetOnlineMeetingUrl(value *string)() { err := m.GetBackingStore().Set("onlineMeetingUrl", value) if err != nil { panic(err) } } -// SetOrganizer sets the organizer property value. The organizer property +// SetOrganizer sets the organizer property value. The organizer of the event. func (m *Event) SetOrganizer(value Recipientable)() { err := m.GetBackingStore().Set("organizer", value) if err != nil { panic(err) } } -// SetOriginalEndTimeZone sets the originalEndTimeZone property value. The originalEndTimeZone property +// SetOriginalEndTimeZone sets the originalEndTimeZone property value. The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. func (m *Event) SetOriginalEndTimeZone(value *string)() { err := m.GetBackingStore().Set("originalEndTimeZone", value) if err != nil { panic(err) } } -// SetOriginalStart sets the originalStart property value. The originalStart property +// 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 func (m *Event) SetOriginalStart(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("originalStart", value) if err != nil { panic(err) } } -// SetOriginalStartTimeZone sets the originalStartTimeZone property value. The originalStartTimeZone property +// SetOriginalStartTimeZone sets the originalStartTimeZone property value. The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. func (m *Event) SetOriginalStartTimeZone(value *string)() { err := m.GetBackingStore().Set("originalStartTimeZone", value) if err != nil { panic(err) } } -// SetRecurrence sets the recurrence property value. The recurrence property +// SetRecurrence sets the recurrence property value. The recurrence pattern for the event. func (m *Event) SetRecurrence(value PatternedRecurrenceable)() { err := m.GetBackingStore().Set("recurrence", value) if err != nil { panic(err) } } -// SetReminderMinutesBeforeStart sets the reminderMinutesBeforeStart property value. The reminderMinutesBeforeStart property +// SetReminderMinutesBeforeStart sets the reminderMinutesBeforeStart property value. The number of minutes before the event start time that the reminder alert occurs. func (m *Event) SetReminderMinutesBeforeStart(value *int32)() { err := m.GetBackingStore().Set("reminderMinutesBeforeStart", value) if err != nil { panic(err) } } -// SetResponseRequested sets the responseRequested property value. The responseRequested property +// SetResponseRequested sets the responseRequested property value. Default is true, which represents the organizer would like an invitee to send a response to the event. func (m *Event) SetResponseRequested(value *bool)() { err := m.GetBackingStore().Set("responseRequested", value) if err != nil { panic(err) } } -// SetResponseStatus sets the responseStatus property value. The responseStatus property +// SetResponseStatus sets the responseStatus property value. Indicates the type of response sent in response to an event message. func (m *Event) SetResponseStatus(value ResponseStatusable)() { err := m.GetBackingStore().Set("responseStatus", value) if err != nil { panic(err) } } -// SetSensitivity sets the sensitivity property value. The sensitivity property +// SetSensitivity sets the sensitivity property value. Possible values are: normal, personal, private, confidential. func (m *Event) SetSensitivity(value *Sensitivity)() { err := m.GetBackingStore().Set("sensitivity", value) if err != nil { panic(err) } } -// SetSeriesMasterId sets the seriesMasterId property value. The seriesMasterId property +// SetSeriesMasterId sets the seriesMasterId property value. The ID for the recurring series master item, if this event is part of a recurring series. func (m *Event) SetSeriesMasterId(value *string)() { err := m.GetBackingStore().Set("seriesMasterId", value) if err != nil { panic(err) } } -// SetShowAs sets the showAs property value. The showAs property +// SetShowAs sets the showAs property value. The status to show. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. func (m *Event) SetShowAs(value *FreeBusyStatus)() { err := m.GetBackingStore().Set("showAs", value) if err != nil { @@ -1676,42 +1676,42 @@ func (m *Event) SetSingleValueExtendedProperties(value []SingleValueLegacyExtend panic(err) } } -// SetStart sets the start property value. The start property +// SetStart sets the start property value. The start date, time, and time zone of the event. By default, the start time is in UTC. func (m *Event) SetStart(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("start", value) if err != nil { panic(err) } } -// SetSubject sets the subject property value. The subject property +// SetSubject sets the subject property value. The text of the event's subject line. func (m *Event) SetSubject(value *string)() { err := m.GetBackingStore().Set("subject", value) if err != nil { panic(err) } } -// SetTransactionId sets the transactionId property value. The transactionId property +// 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. func (m *Event) SetTransactionId(value *string)() { err := m.GetBackingStore().Set("transactionId", value) if err != nil { panic(err) } } -// SetTypeEscaped sets the type property value. The type property +// SetTypeEscaped sets the type property value. The event type. Possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only func (m *Event) SetTypeEscaped(value *EventType)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) } } -// SetUid sets the uid property value. The uid property +// SetUid sets the uid property value. A unique identifier for calendar events. For recurring events, the value is the same for the series master and all of its occurrences including exceptions. func (m *Event) SetUid(value *string)() { err := m.GetBackingStore().Set("uid", value) if err != nil { panic(err) } } -// SetWebLink sets the webLink property value. The webLink property +// 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. func (m *Event) SetWebLink(value *string)() { err := m.GetBackingStore().Set("webLink", value) if err != nil { diff --git a/models/event_message.go b/models/event_message.go index c48f7165acf..1edc9ddb3a9 100644 --- a/models/event_message.go +++ b/models/event_message.go @@ -171,7 +171,7 @@ func (m *EventMessage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetIsAllDay gets the isAllDay property value. The isAllDay property +// GetIsAllDay gets the isAllDay property value. Indicates whether the event lasts the entire day. Adjusting this property requires adjusting the startDateTime and endDateTime properties of the event as well. // returns a *bool when successful func (m *EventMessage) GetIsAllDay()(*bool) { val, err := m.GetBackingStore().Get("isAllDay") @@ -183,7 +183,7 @@ func (m *EventMessage) GetIsAllDay()(*bool) { } return nil } -// GetIsDelegated gets the isDelegated property value. The isDelegated property +// GetIsDelegated gets the isDelegated property value. True if this meeting request is accessible to a delegate, false otherwise. Default is false. // returns a *bool when successful func (m *EventMessage) GetIsDelegated()(*bool) { val, err := m.GetBackingStore().Get("isDelegated") @@ -195,7 +195,7 @@ func (m *EventMessage) GetIsDelegated()(*bool) { } return nil } -// GetIsOutOfDate gets the isOutOfDate property value. The isOutOfDate property +// GetIsOutOfDate gets the isOutOfDate property value. Indicates whether this meeting request has been made out-of-date by a more recent request. // returns a *bool when successful func (m *EventMessage) GetIsOutOfDate()(*bool) { val, err := m.GetBackingStore().Get("isOutOfDate") @@ -207,7 +207,7 @@ func (m *EventMessage) GetIsOutOfDate()(*bool) { } return nil } -// GetLocation gets the location property value. The location property +// GetLocation gets the location property value. The location of the requested meeting. // returns a Locationable when successful func (m *EventMessage) GetLocation()(Locationable) { val, err := m.GetBackingStore().Get("location") @@ -219,7 +219,7 @@ func (m *EventMessage) GetLocation()(Locationable) { } return nil } -// GetMeetingMessageType gets the meetingMessageType property value. The meetingMessageType property +// GetMeetingMessageType gets the meetingMessageType property value. The type of event message: none, meetingRequest, meetingCancelled, meetingAccepted, meetingTentativelyAccepted, meetingDeclined. // returns a *MeetingMessageType when successful func (m *EventMessage) GetMeetingMessageType()(*MeetingMessageType) { val, err := m.GetBackingStore().Get("meetingMessageType") @@ -231,7 +231,7 @@ func (m *EventMessage) GetMeetingMessageType()(*MeetingMessageType) { } return nil } -// GetRecurrence gets the recurrence property value. The recurrence property +// GetRecurrence gets the recurrence property value. The recurrence pattern of the requested meeting. // returns a PatternedRecurrenceable when successful func (m *EventMessage) GetRecurrence()(PatternedRecurrenceable) { val, err := m.GetBackingStore().Get("recurrence") @@ -243,7 +243,7 @@ func (m *EventMessage) GetRecurrence()(PatternedRecurrenceable) { } return nil } -// GetStartDateTime gets the startDateTime property value. The startDateTime property +// GetStartDateTime gets the startDateTime property value. The start time of the requested meeting. // returns a DateTimeTimeZoneable when successful func (m *EventMessage) GetStartDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("startDateTime") @@ -255,7 +255,7 @@ func (m *EventMessage) GetStartDateTime()(DateTimeTimeZoneable) { } return nil } -// GetTypeEscaped gets the type property value. The type property +// GetTypeEscaped gets the type property value. The type of requested meeting: singleInstance, occurence, exception, seriesMaster. // returns a *EventType when successful func (m *EventMessage) GetTypeEscaped()(*EventType) { val, err := m.GetBackingStore().Get("typeEscaped") @@ -351,56 +351,56 @@ func (m *EventMessage) SetEvent(value Eventable)() { panic(err) } } -// SetIsAllDay sets the isAllDay property value. The isAllDay property +// SetIsAllDay sets the isAllDay property value. Indicates whether the event lasts the entire day. Adjusting this property requires adjusting the startDateTime and endDateTime properties of the event as well. func (m *EventMessage) SetIsAllDay(value *bool)() { err := m.GetBackingStore().Set("isAllDay", value) if err != nil { panic(err) } } -// SetIsDelegated sets the isDelegated property value. The isDelegated property +// SetIsDelegated sets the isDelegated property value. True if this meeting request is accessible to a delegate, false otherwise. Default is false. func (m *EventMessage) SetIsDelegated(value *bool)() { err := m.GetBackingStore().Set("isDelegated", value) if err != nil { panic(err) } } -// SetIsOutOfDate sets the isOutOfDate property value. The isOutOfDate property +// SetIsOutOfDate sets the isOutOfDate property value. Indicates whether this meeting request has been made out-of-date by a more recent request. func (m *EventMessage) SetIsOutOfDate(value *bool)() { err := m.GetBackingStore().Set("isOutOfDate", value) if err != nil { panic(err) } } -// SetLocation sets the location property value. The location property +// SetLocation sets the location property value. The location of the requested meeting. func (m *EventMessage) SetLocation(value Locationable)() { err := m.GetBackingStore().Set("location", value) if err != nil { panic(err) } } -// SetMeetingMessageType sets the meetingMessageType property value. The meetingMessageType property +// SetMeetingMessageType sets the meetingMessageType property value. The type of event message: none, meetingRequest, meetingCancelled, meetingAccepted, meetingTentativelyAccepted, meetingDeclined. func (m *EventMessage) SetMeetingMessageType(value *MeetingMessageType)() { err := m.GetBackingStore().Set("meetingMessageType", value) if err != nil { panic(err) } } -// SetRecurrence sets the recurrence property value. The recurrence property +// SetRecurrence sets the recurrence property value. The recurrence pattern of the requested meeting. func (m *EventMessage) SetRecurrence(value PatternedRecurrenceable)() { err := m.GetBackingStore().Set("recurrence", value) if err != nil { panic(err) } } -// SetStartDateTime sets the startDateTime property value. The startDateTime property +// SetStartDateTime sets the startDateTime property value. The start time of the requested meeting. func (m *EventMessage) SetStartDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { panic(err) } } -// SetTypeEscaped sets the type property value. The type property +// SetTypeEscaped sets the type property value. The type of requested meeting: singleInstance, occurence, exception, seriesMaster. func (m *EventMessage) SetTypeEscaped(value *EventType)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { diff --git a/models/event_message_response.go b/models/event_message_response.go index b521044f1d2..a3a7f18bc98 100644 --- a/models/event_message_response.go +++ b/models/event_message_response.go @@ -47,7 +47,7 @@ func (m *EventMessageResponse) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetProposedNewTime gets the proposedNewTime property value. The proposedNewTime property +// GetProposedNewTime gets the proposedNewTime property value. An alternate date/time proposed by an invitee for a meeting request to start and end. Read-only. Not filterable. // returns a TimeSlotable when successful func (m *EventMessageResponse) GetProposedNewTime()(TimeSlotable) { val, err := m.GetBackingStore().Get("proposedNewTime") @@ -59,7 +59,7 @@ func (m *EventMessageResponse) GetProposedNewTime()(TimeSlotable) { } return nil } -// GetResponseType gets the responseType property value. The responseType property +// GetResponseType gets the responseType property value. Specifies the type of response to a meeting request. Possible values are: tentativelyAccepted, accepted, declined. For the eventMessageResponse type, none, organizer, and notResponded are not supported. Read-only. Not filterable. // returns a *ResponseType when successful func (m *EventMessageResponse) GetResponseType()(*ResponseType) { val, err := m.GetBackingStore().Get("responseType") @@ -92,14 +92,14 @@ func (m *EventMessageResponse) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetProposedNewTime sets the proposedNewTime property value. The proposedNewTime property +// SetProposedNewTime sets the proposedNewTime property value. An alternate date/time proposed by an invitee for a meeting request to start and end. Read-only. Not filterable. func (m *EventMessageResponse) SetProposedNewTime(value TimeSlotable)() { err := m.GetBackingStore().Set("proposedNewTime", value) if err != nil { panic(err) } } -// SetResponseType sets the responseType property value. The responseType property +// SetResponseType sets the responseType property value. Specifies the type of response to a meeting request. Possible values are: tentativelyAccepted, accepted, declined. For the eventMessageResponse type, none, organizer, and notResponded are not supported. Read-only. Not filterable. func (m *EventMessageResponse) SetResponseType(value *ResponseType)() { err := m.GetBackingStore().Set("responseType", value) if err != nil { diff --git a/models/federated_identity_credential.go b/models/federated_identity_credential.go index a976e3ee347..e6f1179d070 100644 --- a/models/federated_identity_credential.go +++ b/models/federated_identity_credential.go @@ -117,7 +117,7 @@ func (m *FederatedIdentityCredential) GetIssuer()(*string) { } return nil } -// GetName gets the name property value. is the unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Required. Not nullable. Supports $filter (eq). +// GetName gets the name property value. The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Alternate key. Required. Not nullable. Supports $filter (eq). // returns a *string when successful func (m *FederatedIdentityCredential) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -200,7 +200,7 @@ func (m *FederatedIdentityCredential) SetIssuer(value *string)() { panic(err) } } -// SetName sets the name property value. is the unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Required. Not nullable. Supports $filter (eq). +// SetName sets the name property value. The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Alternate key. Required. Not nullable. Supports $filter (eq). func (m *FederatedIdentityCredential) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { diff --git a/models/group.go b/models/group.go index f8f0d428671..9597a6191cf 100644 --- a/models/group.go +++ b/models/group.go @@ -1752,7 +1752,7 @@ func (m *Group) GetRenewedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a1 } return nil } -// GetResourceBehaviorOptions gets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This can be set only as part of creation (POST). For the list of possible values, see Set Microsoft 365 group behaviors and provisioning options. +// GetResourceBehaviorOptions gets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options. // returns a []string when successful func (m *Group) GetResourceBehaviorOptions()([]string) { val, err := m.GetBackingStore().Get("resourceBehaviorOptions") @@ -1764,7 +1764,7 @@ func (m *Group) GetResourceBehaviorOptions()([]string) { } return nil } -// GetResourceProvisioningOptions gets the resourceProvisioningOptions property value. Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Set Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. +// GetResourceProvisioningOptions gets the resourceProvisioningOptions property value. Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. // returns a []string when successful func (m *Group) GetResourceProvisioningOptions()([]string) { val, err := m.GetBackingStore().Get("resourceProvisioningOptions") @@ -1896,7 +1896,7 @@ func (m *Group) GetTransitiveMembers()([]DirectoryObjectable) { } return nil } -// GetUniqueName gets the uniqueName property value. The uniqueName property +// GetUniqueName gets the uniqueName property value. The unique identifier that can be assigned to a group and used as an alternate key. Immutable. Read-only. // returns a *string when successful func (m *Group) GetUniqueName()(*string) { val, err := m.GetBackingStore().Get("uniqueName") @@ -3041,14 +3041,14 @@ func (m *Group) SetRenewedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f30 panic(err) } } -// SetResourceBehaviorOptions sets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This can be set only as part of creation (POST). For the list of possible values, see Set Microsoft 365 group behaviors and provisioning options. +// SetResourceBehaviorOptions sets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options. func (m *Group) SetResourceBehaviorOptions(value []string)() { err := m.GetBackingStore().Set("resourceBehaviorOptions", value) if err != nil { panic(err) } } -// SetResourceProvisioningOptions sets the resourceProvisioningOptions property value. Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Set Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. +// SetResourceProvisioningOptions sets the resourceProvisioningOptions property value. Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. func (m *Group) SetResourceProvisioningOptions(value []string)() { err := m.GetBackingStore().Set("resourceProvisioningOptions", value) if err != nil { @@ -3125,7 +3125,7 @@ func (m *Group) SetTransitiveMembers(value []DirectoryObjectable)() { panic(err) } } -// SetUniqueName sets the uniqueName property value. The uniqueName property +// SetUniqueName sets the uniqueName property value. The unique identifier that can be assigned to a group and used as an alternate key. Immutable. Read-only. func (m *Group) SetUniqueName(value *string)() { err := m.GetBackingStore().Set("uniqueName", value) if err != nil { diff --git a/models/identitygovernance/task.go b/models/identitygovernance/task.go index 40dcfcb2365..adc0e1e9401 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 will stop, and subsequent tasks will not 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") @@ -80,7 +80,7 @@ func (m *Task) GetDisplayName()(*string) { } return nil } -// GetExecutionSequence gets the executionSequence property value. An integer that states in what order the task will run in a workflow.Supports $orderby. +// GetExecutionSequence gets the executionSequence property value. An integer that states in what order the task runs in a workflow.Supports $orderby. // returns a *int32 when successful func (m *Task) GetExecutionSequence()(*int32) { val, err := m.GetBackingStore().Get("executionSequence") @@ -212,7 +212,7 @@ func (m *Task) GetIsEnabled()(*bool) { } return nil } -// GetTaskDefinitionId gets the taskDefinitionId property value. A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks. Required.Supports $filter(eq, ne). +// GetTaskDefinitionId gets the taskDefinitionId property value. A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see Configure the arguments for built-in Lifecycle Workflow tasks. Required.Supports $filter(eq, ne). // returns a *string when successful func (m *Task) GetTaskDefinitionId()(*string) { val, err := m.GetBackingStore().Get("taskDefinitionId") @@ -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 will stop, and subsequent tasks will not 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 { @@ -346,7 +346,7 @@ func (m *Task) SetDisplayName(value *string)() { panic(err) } } -// SetExecutionSequence sets the executionSequence property value. An integer that states in what order the task will run in a workflow.Supports $orderby. +// SetExecutionSequence sets the executionSequence property value. An integer that states in what order the task runs in a workflow.Supports $orderby. func (m *Task) SetExecutionSequence(value *int32)() { err := m.GetBackingStore().Set("executionSequence", value) if err != nil { @@ -360,7 +360,7 @@ func (m *Task) SetIsEnabled(value *bool)() { panic(err) } } -// SetTaskDefinitionId sets the taskDefinitionId property value. A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks. Required.Supports $filter(eq, ne). +// SetTaskDefinitionId sets the taskDefinitionId property value. A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see Configure the arguments for built-in Lifecycle Workflow tasks. Required.Supports $filter(eq, ne). func (m *Task) SetTaskDefinitionId(value *string)() { err := m.GetBackingStore().Set("taskDefinitionId", value) if err != nil { diff --git a/models/imported_device_identity_type.go b/models/imported_device_identity_type.go index bc4cbd0e390..9fbd77f661c 100644 --- a/models/imported_device_identity_type.go +++ b/models/imported_device_identity_type.go @@ -11,10 +11,12 @@ const ( IMEI_IMPORTEDDEVICEIDENTITYTYPE // Device Identity is of type serial number. SERIALNUMBER_IMPORTEDDEVICEIDENTITYTYPE + // Device Identity is of type manufacturer + model + serial number semi-colon delimited tuple with enforced order. + MANUFACTURERMODELSERIAL_IMPORTEDDEVICEIDENTITYTYPE ) func (i ImportedDeviceIdentityType) String() string { - return []string{"unknown", "imei", "serialNumber"}[i] + return []string{"unknown", "imei", "serialNumber", "manufacturerModelSerial"}[i] } func ParseImportedDeviceIdentityType(v string) (any, error) { result := UNKNOWN_IMPORTEDDEVICEIDENTITYTYPE @@ -25,6 +27,8 @@ func ParseImportedDeviceIdentityType(v string) (any, error) { result = IMEI_IMPORTEDDEVICEIDENTITYTYPE case "serialNumber": result = SERIALNUMBER_IMPORTEDDEVICEIDENTITYTYPE + case "manufacturerModelSerial": + result = MANUFACTURERMODELSERIAL_IMPORTEDDEVICEIDENTITYTYPE default: return 0, errors.New("Unknown ImportedDeviceIdentityType value: " + v) } diff --git a/models/insider_risk_level.go b/models/insider_risk_level.go new file mode 100644 index 00000000000..7b7db1b571c --- /dev/null +++ b/models/insider_risk_level.go @@ -0,0 +1,45 @@ +package models +import ( + "errors" +) +type InsiderRiskLevel int + +const ( + NONE_INSIDERRISKLEVEL InsiderRiskLevel = iota + MINOR_INSIDERRISKLEVEL + MODERATE_INSIDERRISKLEVEL + ELEVATED_INSIDERRISKLEVEL + UNKNOWNFUTUREVALUE_INSIDERRISKLEVEL +) + +func (i InsiderRiskLevel) String() string { + return []string{"none", "minor", "moderate", "elevated", "unknownFutureValue"}[i] +} +func ParseInsiderRiskLevel(v string) (any, error) { + result := NONE_INSIDERRISKLEVEL + switch v { + case "none": + result = NONE_INSIDERRISKLEVEL + case "minor": + result = MINOR_INSIDERRISKLEVEL + case "moderate": + result = MODERATE_INSIDERRISKLEVEL + case "elevated": + result = ELEVATED_INSIDERRISKLEVEL + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_INSIDERRISKLEVEL + default: + return 0, errors.New("Unknown InsiderRiskLevel value: " + v) + } + return &result, nil +} +func SerializeInsiderRiskLevel(values []InsiderRiskLevel) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i InsiderRiskLevel) isMultiValue() bool { + return false +} diff --git a/models/insights_settings.go b/models/insights_settings.go index 71c801ef222..82e4df87618 100644 --- a/models/insights_settings.go +++ b/models/insights_settings.go @@ -57,7 +57,7 @@ func (m *InsightsSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetIsEnabledInOrganization gets the isEnabledInOrganization property value. true if the specified type of insights are enabled for the organization; false if the specified type of insights are disabled for all users without exceptions. Default is true. Optional. +// GetIsEnabledInOrganization gets the isEnabledInOrganization property value. true if the specified type of insights is enabled for the organization; false if the specified type of insights is disabled for all users without exceptions. Default is true. Optional. // returns a *bool when successful func (m *InsightsSettings) GetIsEnabledInOrganization()(*bool) { val, err := m.GetBackingStore().Get("isEnabledInOrganization") @@ -96,7 +96,7 @@ func (m *InsightsSettings) SetDisabledForGroup(value *string)() { panic(err) } } -// SetIsEnabledInOrganization sets the isEnabledInOrganization property value. true if the specified type of insights are enabled for the organization; false if the specified type of insights are disabled for all users without exceptions. Default is true. Optional. +// SetIsEnabledInOrganization sets the isEnabledInOrganization property value. true if the specified type of insights is enabled for the organization; false if the specified type of insights is disabled for all users without exceptions. Default is true. Optional. func (m *InsightsSettings) SetIsEnabledInOrganization(value *bool)() { err := m.GetBackingStore().Set("isEnabledInOrganization", value) if err != nil { diff --git a/models/ios_lob_app_assignment_settings.go b/models/ios_lob_app_assignment_settings.go index 22a8ff0f2b9..926cf1eeff5 100644 --- a/models/ios_lob_app_assignment_settings.go +++ b/models/ios_lob_app_assignment_settings.go @@ -92,7 +92,7 @@ func (m *IosLobAppAssignmentSettings) GetPreventManagedAppBackup()(*bool) { } return nil } -// 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. By default, property is set to null which internally is treated as TRUE. // returns a *bool when successful func (m *IosLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") @@ -104,7 +104,7 @@ func (m *IosLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { } return nil } -// GetVpnConfigurationId gets the vpnConfigurationId property value. The VPN Configuration Id to apply for this app. +// GetVpnConfigurationId gets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app. // returns a *string when successful func (m *IosLobAppAssignmentSettings) GetVpnConfigurationId()(*string) { val, err := m.GetBackingStore().Get("vpnConfigurationId") @@ -162,14 +162,14 @@ func (m *IosLobAppAssignmentSettings) SetPreventManagedAppBackup(value *bool)() panic(err) } } -// 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. By default, property is set to null which internally is treated as TRUE. func (m *IosLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { panic(err) } } -// SetVpnConfigurationId sets the vpnConfigurationId property value. The VPN Configuration Id to apply for this app. +// SetVpnConfigurationId sets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app. func (m *IosLobAppAssignmentSettings) SetVpnConfigurationId(value *string)() { err := m.GetBackingStore().Set("vpnConfigurationId", 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/ios_managed_app_protection.go b/models/ios_managed_app_protection.go index 77a6c256ec8..c2a068b4bc0 100644 --- a/models/ios_managed_app_protection.go +++ b/models/ios_managed_app_protection.go @@ -70,7 +70,7 @@ func (m *IosManagedAppProtection) GetApps()([]ManagedMobileAppable) { } return nil } -// GetCustomBrowserProtocol gets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. +// GetCustomBrowserProtocol gets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. // returns a *string when successful func (m *IosManagedAppProtection) GetCustomBrowserProtocol()(*string) { val, err := m.GetBackingStore().Get("customBrowserProtocol") @@ -662,7 +662,7 @@ func (m *IosManagedAppProtection) SetApps(value []ManagedMobileAppable)() { panic(err) } } -// SetCustomBrowserProtocol sets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. +// SetCustomBrowserProtocol sets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. func (m *IosManagedAppProtection) SetCustomBrowserProtocol(value *string)() { err := m.GetBackingStore().Set("customBrowserProtocol", value) if err != nil { diff --git a/models/ios_store_app_assignment_settings.go b/models/ios_store_app_assignment_settings.go index f8829246c96..332167acc05 100644 --- a/models/ios_store_app_assignment_settings.go +++ b/models/ios_store_app_assignment_settings.go @@ -92,7 +92,7 @@ func (m *IosStoreAppAssignmentSettings) GetPreventManagedAppBackup()(*bool) { } return nil } -// 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. By default, property is set to null which internally is treated as TRUE. // returns a *bool when successful func (m *IosStoreAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") @@ -104,7 +104,7 @@ func (m *IosStoreAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { } return nil } -// GetVpnConfigurationId gets the vpnConfigurationId property value. The VPN Configuration Id to apply for this app. +// GetVpnConfigurationId gets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app. // returns a *string when successful func (m *IosStoreAppAssignmentSettings) GetVpnConfigurationId()(*string) { val, err := m.GetBackingStore().Get("vpnConfigurationId") @@ -162,14 +162,14 @@ func (m *IosStoreAppAssignmentSettings) SetPreventManagedAppBackup(value *bool)( panic(err) } } -// 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. By default, property is set to null which internally is treated as TRUE. func (m *IosStoreAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { panic(err) } } -// SetVpnConfigurationId sets the vpnConfigurationId property value. The VPN Configuration Id to apply for this app. +// SetVpnConfigurationId sets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app. func (m *IosStoreAppAssignmentSettings) SetVpnConfigurationId(value *string)() { err := m.GetBackingStore().Set("vpnConfigurationId", value) if err != nil { diff --git a/models/key_value.go b/models/key_value.go index 422f3c025fd..bebb09fce47 100644 --- a/models/key_value.go +++ b/models/key_value.go @@ -76,7 +76,7 @@ func (m *KeyValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetKey gets the key property value. Contains the name of the field that a value is associated with. +// GetKey gets the key property value. Key. // returns a *string when successful func (m *KeyValue) GetKey()(*string) { val, err := m.GetBackingStore().Get("key") @@ -100,7 +100,7 @@ func (m *KeyValue) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. Contains the corresponding value for the specified key. +// GetValue gets the value property value. Value. // returns a *string when successful func (m *KeyValue) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") @@ -151,7 +151,7 @@ func (m *KeyValue) SetAdditionalData(value map[string]any)() { func (m *KeyValue) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetKey sets the key property value. Contains the name of the field that a value is associated with. +// SetKey sets the key property value. Key. func (m *KeyValue) SetKey(value *string)() { err := m.GetBackingStore().Set("key", value) if err != nil { @@ -165,7 +165,7 @@ func (m *KeyValue) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. Contains the corresponding value for the specified key. +// SetValue sets the value property value. Value. func (m *KeyValue) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/mac_o_s_dmg_app.go b/models/mac_o_s_dmg_app.go index d7695084ddb..c43eb1d9c51 100644 --- a/models/mac_o_s_dmg_app.go +++ b/models/mac_o_s_dmg_app.go @@ -96,7 +96,7 @@ func (m *MacOSDmgApp) GetIgnoreVersionDetection()(*bool) { } return nil } -// GetIncludedApps gets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image) +// GetIncludedApps gets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image). This collection can contain a maximum of 500 elements. // returns a []MacOSIncludedAppable when successful func (m *MacOSDmgApp) GetIncludedApps()([]MacOSIncludedAppable) { val, err := m.GetBackingStore().Get("includedApps") @@ -195,7 +195,7 @@ func (m *MacOSDmgApp) SetIgnoreVersionDetection(value *bool)() { panic(err) } } -// SetIncludedApps sets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image) +// SetIncludedApps sets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image). This collection can contain a maximum of 500 elements. func (m *MacOSDmgApp) SetIncludedApps(value []MacOSIncludedAppable)() { err := m.GetBackingStore().Set("includedApps", value) if err != nil { diff --git a/models/mac_o_s_pkg_app.go b/models/mac_o_s_pkg_app.go index 6971da930c0..fea86b3e14e 100644 --- a/models/mac_o_s_pkg_app.go +++ b/models/mac_o_s_pkg_app.go @@ -116,7 +116,7 @@ func (m *MacOSPkgApp) GetIgnoreVersionDetection()(*bool) { } return nil } -// GetIncludedApps gets the includedApps property value. The list of apps expected to be installed by the PKG. +// GetIncludedApps gets the includedApps property value. The list of apps expected to be installed by the PKG. This collection can contain a maximum of 500 elements. // returns a []MacOSIncludedAppable when successful func (m *MacOSPkgApp) GetIncludedApps()([]MacOSIncludedAppable) { val, err := m.GetBackingStore().Get("includedApps") @@ -251,7 +251,7 @@ func (m *MacOSPkgApp) SetIgnoreVersionDetection(value *bool)() { panic(err) } } -// SetIncludedApps sets the includedApps property value. The list of apps expected to be installed by the PKG. +// SetIncludedApps sets the includedApps property value. The list of apps expected to be installed by the PKG. This collection can contain a maximum of 500 elements. func (m *MacOSPkgApp) SetIncludedApps(value []MacOSIncludedAppable)() { err := m.GetBackingStore().Set("includedApps", 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/managed_mobile_lob_app.go b/models/managed_mobile_lob_app.go index 59db5cb3927..b0d53b92116 100644 --- a/models/managed_mobile_lob_app.go +++ b/models/managed_mobile_lob_app.go @@ -54,7 +54,7 @@ func (m *ManagedMobileLobApp) GetCommittedContentVersion()(*string) { } return nil } -// GetContentVersions gets the contentVersions property value. The list of content versions for this app. +// GetContentVersions gets the contentVersions property value. The list of content versions for this app. This property is read-only. // returns a []MobileAppContentable when successful func (m *ManagedMobileLobApp) GetContentVersions()([]MobileAppContentable) { val, err := m.GetBackingStore().Get("contentVersions") @@ -130,7 +130,7 @@ func (m *ManagedMobileLobApp) GetFileName()(*string) { } return nil } -// GetSize gets the size property value. The total size, including all uploaded files. +// GetSize gets the size property value. The total size, including all uploaded files. This property is read-only. // returns a *int64 when successful func (m *ManagedMobileLobApp) GetSize()(*int64) { val, err := m.GetBackingStore().Get("size") @@ -172,12 +172,6 @@ func (m *ManagedMobileLobApp) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } - { - err = writer.WriteInt64Value("size", m.GetSize()) - if err != nil { - return err - } - } return nil } // SetCommittedContentVersion sets the committedContentVersion property value. The internal committed content version. @@ -187,7 +181,7 @@ func (m *ManagedMobileLobApp) SetCommittedContentVersion(value *string)() { panic(err) } } -// SetContentVersions sets the contentVersions property value. The list of content versions for this app. +// SetContentVersions sets the contentVersions property value. The list of content versions for this app. This property is read-only. func (m *ManagedMobileLobApp) SetContentVersions(value []MobileAppContentable)() { err := m.GetBackingStore().Set("contentVersions", value) if err != nil { @@ -201,7 +195,7 @@ func (m *ManagedMobileLobApp) SetFileName(value *string)() { panic(err) } } -// SetSize sets the size property value. The total size, including all uploaded files. +// SetSize sets the size property value. The total size, including all uploaded files. This property is read-only. func (m *ManagedMobileLobApp) SetSize(value *int64)() { err := m.GetBackingStore().Set("size", value) if err != nil { diff --git a/models/managedtenants/tenant_onboarding_status.go b/models/managedtenants/tenant_onboarding_status.go index bd2dcc0954e..d7a5a5692bd 100644 --- a/models/managedtenants/tenant_onboarding_status.go +++ b/models/managedtenants/tenant_onboarding_status.go @@ -10,10 +10,11 @@ const ( ACTIVE_TENANTONBOARDINGSTATUS INACTIVE_TENANTONBOARDINGSTATUS UNKNOWNFUTUREVALUE_TENANTONBOARDINGSTATUS + DISABLED_TENANTONBOARDINGSTATUS ) func (i TenantOnboardingStatus) String() string { - return []string{"ineligible", "inProcess", "active", "inactive", "unknownFutureValue"}[i] + return []string{"ineligible", "inProcess", "active", "inactive", "unknownFutureValue", "disabled"}[i] } func ParseTenantOnboardingStatus(v string) (any, error) { result := INELIGIBLE_TENANTONBOARDINGSTATUS @@ -28,6 +29,8 @@ func ParseTenantOnboardingStatus(v string) (any, error) { result = INACTIVE_TENANTONBOARDINGSTATUS case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TENANTONBOARDINGSTATUS + case "disabled": + result = DISABLED_TENANTONBOARDINGSTATUS default: return 0, errors.New("Unknown TenantOnboardingStatus value: " + v) } diff --git a/models/message.go b/models/message.go index d28bd179e63..07aa2f07aca 100644 --- a/models/message.go +++ b/models/message.go @@ -590,7 +590,7 @@ func (m *Message) GetHasAttachments()(*bool) { } return nil } -// GetImportance gets the importance property value. The importance property +// GetImportance gets the importance property value. The importance of the message. The possible values are: low, normal, and high. // returns a *Importance when successful func (m *Message) GetImportance()(*Importance) { val, err := m.GetBackingStore().Get("importance") @@ -602,7 +602,7 @@ func (m *Message) GetImportance()(*Importance) { } return nil } -// GetInferenceClassification gets the inferenceClassification property value. The inferenceClassification property +// GetInferenceClassification gets the inferenceClassification property value. The classification of the message for the user, based on inferred relevance or importance, or on an explicit override. Possible values are: focused, other. // returns a *InferenceClassificationType when successful func (m *Message) GetInferenceClassification()(*InferenceClassificationType) { val, err := m.GetBackingStore().Get("inferenceClassification") @@ -614,7 +614,7 @@ func (m *Message) GetInferenceClassification()(*InferenceClassificationType) { } return nil } -// GetInternetMessageHeaders gets the internetMessageHeaders property value. The internetMessageHeaders property +// GetInternetMessageHeaders gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. // returns a []InternetMessageHeaderable when successful func (m *Message) GetInternetMessageHeaders()([]InternetMessageHeaderable) { val, err := m.GetBackingStore().Get("internetMessageHeaders") @@ -626,7 +626,7 @@ func (m *Message) GetInternetMessageHeaders()([]InternetMessageHeaderable) { } return nil } -// GetInternetMessageId gets the internetMessageId property value. The internetMessageId property +// GetInternetMessageId gets the internetMessageId property value. The message ID in the format specified by RFC5322. Updatable only if isDraft is true. // returns a *string when successful func (m *Message) GetInternetMessageId()(*string) { val, err := m.GetBackingStore().Get("internetMessageId") @@ -638,7 +638,7 @@ func (m *Message) GetInternetMessageId()(*string) { } return nil } -// GetIsDeliveryReceiptRequested gets the isDeliveryReceiptRequested property value. The isDeliveryReceiptRequested property +// GetIsDeliveryReceiptRequested gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. // returns a *bool when successful func (m *Message) GetIsDeliveryReceiptRequested()(*bool) { val, err := m.GetBackingStore().Get("isDeliveryReceiptRequested") @@ -650,7 +650,7 @@ func (m *Message) GetIsDeliveryReceiptRequested()(*bool) { } return nil } -// GetIsDraft gets the isDraft property value. The isDraft property +// GetIsDraft gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. // returns a *bool when successful func (m *Message) GetIsDraft()(*bool) { val, err := m.GetBackingStore().Get("isDraft") @@ -662,7 +662,7 @@ func (m *Message) GetIsDraft()(*bool) { } return nil } -// GetIsRead gets the isRead property value. The isRead property +// GetIsRead gets the isRead property value. Indicates whether the message has been read. // returns a *bool when successful func (m *Message) GetIsRead()(*bool) { val, err := m.GetBackingStore().Get("isRead") @@ -674,7 +674,7 @@ func (m *Message) GetIsRead()(*bool) { } return nil } -// GetIsReadReceiptRequested gets the isReadReceiptRequested property value. The isReadReceiptRequested property +// GetIsReadReceiptRequested gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. // returns a *bool when successful func (m *Message) GetIsReadReceiptRequested()(*bool) { val, err := m.GetBackingStore().Get("isReadReceiptRequested") @@ -698,7 +698,7 @@ func (m *Message) GetMentions()([]Mentionable) { } return nil } -// GetMentionsPreview gets the mentionsPreview property value. The mentionsPreview property +// GetMentionsPreview gets the mentionsPreview property value. Information about mentions in the message. When processing a GET /messages request, the server sets this property and includes it in the response by default. The server returns null if there are no mentions in the message. Optional. // returns a MentionsPreviewable when successful func (m *Message) GetMentionsPreview()(MentionsPreviewable) { val, err := m.GetBackingStore().Get("mentionsPreview") @@ -722,7 +722,7 @@ func (m *Message) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPr } return nil } -// GetParentFolderId gets the parentFolderId property value. The parentFolderId property +// GetParentFolderId gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. // returns a *string when successful func (m *Message) GetParentFolderId()(*string) { val, err := m.GetBackingStore().Get("parentFolderId") @@ -734,7 +734,7 @@ func (m *Message) GetParentFolderId()(*string) { } return nil } -// GetReceivedDateTime gets the receivedDateTime property value. The receivedDateTime property +// GetReceivedDateTime gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *Message) GetReceivedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("receivedDateTime") @@ -746,7 +746,7 @@ func (m *Message) GetReceivedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f307 } return nil } -// GetReplyTo gets the replyTo property value. The replyTo property +// GetReplyTo gets the replyTo property value. The email addresses to use when replying. // returns a []Recipientable when successful func (m *Message) GetReplyTo()([]Recipientable) { val, err := m.GetBackingStore().Get("replyTo") @@ -758,7 +758,7 @@ func (m *Message) GetReplyTo()([]Recipientable) { } return nil } -// GetSender gets the sender property value. The sender property +// GetSender gets the sender property value. The account that is actually used to generate the message. In most cases, this value is the same as the from property. You can set this property to a different value when sending a message from a shared mailbox, for a shared calendar, or as a delegate. In any case, the value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message. // returns a Recipientable when successful func (m *Message) GetSender()(Recipientable) { val, err := m.GetBackingStore().Get("sender") @@ -770,7 +770,7 @@ func (m *Message) GetSender()(Recipientable) { } return nil } -// GetSentDateTime gets the sentDateTime property value. The sentDateTime property +// GetSentDateTime gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *Message) GetSentDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("sentDateTime") @@ -794,7 +794,7 @@ func (m *Message) GetSingleValueExtendedProperties()([]SingleValueLegacyExtended } return nil } -// GetSubject gets the subject property value. The subject property +// GetSubject gets the subject property value. The subject of the message. // returns a *string when successful func (m *Message) GetSubject()(*string) { val, err := m.GetBackingStore().Get("subject") @@ -806,7 +806,7 @@ func (m *Message) GetSubject()(*string) { } return nil } -// GetToRecipients gets the toRecipients property value. The toRecipients property +// GetToRecipients gets the toRecipients property value. The To: recipients for the message. // returns a []Recipientable when successful func (m *Message) GetToRecipients()([]Recipientable) { val, err := m.GetBackingStore().Get("toRecipients") @@ -818,7 +818,7 @@ func (m *Message) GetToRecipients()([]Recipientable) { } return nil } -// GetUniqueBody gets the uniqueBody property value. The uniqueBody property +// GetUniqueBody gets the uniqueBody property value. The part of the body of the message that is unique to the current message. uniqueBody is not returned by default but can be retrieved for a given message by use of the ?$select=uniqueBody query. It can be in HTML or text format. // returns a ItemBodyable when successful func (m *Message) GetUniqueBody()(ItemBodyable) { val, err := m.GetBackingStore().Get("uniqueBody") @@ -830,7 +830,7 @@ func (m *Message) GetUniqueBody()(ItemBodyable) { } return nil } -// GetUnsubscribeData gets the unsubscribeData property value. The unsubscribeData property +// GetUnsubscribeData gets the unsubscribeData property value. The valid entries parsed from the List-Unsubscribe header. This is the data for the mail command in the List-Unsubscribe header if UnsubscribeEnabled property is true. // returns a []string when successful func (m *Message) GetUnsubscribeData()([]string) { val, err := m.GetBackingStore().Get("unsubscribeData") @@ -842,7 +842,7 @@ func (m *Message) GetUnsubscribeData()([]string) { } return nil } -// GetUnsubscribeEnabled gets the unsubscribeEnabled property value. The unsubscribeEnabled property +// GetUnsubscribeEnabled gets the unsubscribeEnabled property value. Indicates whether the message is enabled for unsubscribe. Its valueTrue if the list-Unsubscribe header conforms to rfc-2369. // returns a *bool when successful func (m *Message) GetUnsubscribeEnabled()(*bool) { val, err := m.GetBackingStore().Get("unsubscribeEnabled") @@ -854,7 +854,7 @@ func (m *Message) GetUnsubscribeEnabled()(*bool) { } return nil } -// GetWebLink gets the webLink property value. The webLink property +// GetWebLink gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame. // returns a *string when successful func (m *Message) GetWebLink()(*string) { val, err := m.GetBackingStore().Get("webLink") @@ -1217,56 +1217,56 @@ func (m *Message) SetHasAttachments(value *bool)() { panic(err) } } -// SetImportance sets the importance property value. The importance property +// SetImportance sets the importance property value. The importance of the message. The possible values are: low, normal, and high. func (m *Message) SetImportance(value *Importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) } } -// SetInferenceClassification sets the inferenceClassification property value. The inferenceClassification property +// SetInferenceClassification sets the inferenceClassification property value. The classification of the message for the user, based on inferred relevance or importance, or on an explicit override. Possible values are: focused, other. func (m *Message) SetInferenceClassification(value *InferenceClassificationType)() { err := m.GetBackingStore().Set("inferenceClassification", value) if err != nil { panic(err) } } -// SetInternetMessageHeaders sets the internetMessageHeaders property value. The internetMessageHeaders property +// SetInternetMessageHeaders sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. func (m *Message) SetInternetMessageHeaders(value []InternetMessageHeaderable)() { err := m.GetBackingStore().Set("internetMessageHeaders", value) if err != nil { panic(err) } } -// SetInternetMessageId sets the internetMessageId property value. The internetMessageId property +// SetInternetMessageId sets the internetMessageId property value. The message ID in the format specified by RFC5322. Updatable only if isDraft is true. func (m *Message) SetInternetMessageId(value *string)() { err := m.GetBackingStore().Set("internetMessageId", value) if err != nil { panic(err) } } -// SetIsDeliveryReceiptRequested sets the isDeliveryReceiptRequested property value. The isDeliveryReceiptRequested property +// SetIsDeliveryReceiptRequested sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. func (m *Message) SetIsDeliveryReceiptRequested(value *bool)() { err := m.GetBackingStore().Set("isDeliveryReceiptRequested", value) if err != nil { panic(err) } } -// SetIsDraft sets the isDraft property value. The isDraft property +// SetIsDraft sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. func (m *Message) SetIsDraft(value *bool)() { err := m.GetBackingStore().Set("isDraft", value) if err != nil { panic(err) } } -// SetIsRead sets the isRead property value. The isRead property +// SetIsRead sets the isRead property value. Indicates whether the message has been read. func (m *Message) SetIsRead(value *bool)() { err := m.GetBackingStore().Set("isRead", value) if err != nil { panic(err) } } -// SetIsReadReceiptRequested sets the isReadReceiptRequested property value. The isReadReceiptRequested property +// SetIsReadReceiptRequested sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. func (m *Message) SetIsReadReceiptRequested(value *bool)() { err := m.GetBackingStore().Set("isReadReceiptRequested", value) if err != nil { @@ -1280,7 +1280,7 @@ func (m *Message) SetMentions(value []Mentionable)() { panic(err) } } -// SetMentionsPreview sets the mentionsPreview property value. The mentionsPreview property +// SetMentionsPreview sets the mentionsPreview property value. Information about mentions in the message. When processing a GET /messages request, the server sets this property and includes it in the response by default. The server returns null if there are no mentions in the message. Optional. func (m *Message) SetMentionsPreview(value MentionsPreviewable)() { err := m.GetBackingStore().Set("mentionsPreview", value) if err != nil { @@ -1294,35 +1294,35 @@ func (m *Message) SetMultiValueExtendedProperties(value []MultiValueLegacyExtend panic(err) } } -// SetParentFolderId sets the parentFolderId property value. The parentFolderId property +// SetParentFolderId sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. func (m *Message) SetParentFolderId(value *string)() { err := m.GetBackingStore().Set("parentFolderId", value) if err != nil { panic(err) } } -// SetReceivedDateTime sets the receivedDateTime property value. The receivedDateTime property +// SetReceivedDateTime sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *Message) SetReceivedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("receivedDateTime", value) if err != nil { panic(err) } } -// SetReplyTo sets the replyTo property value. The replyTo property +// SetReplyTo sets the replyTo property value. The email addresses to use when replying. func (m *Message) SetReplyTo(value []Recipientable)() { err := m.GetBackingStore().Set("replyTo", value) if err != nil { panic(err) } } -// SetSender sets the sender property value. The sender property +// SetSender sets the sender property value. The account that is actually used to generate the message. In most cases, this value is the same as the from property. You can set this property to a different value when sending a message from a shared mailbox, for a shared calendar, or as a delegate. In any case, the value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message. func (m *Message) SetSender(value Recipientable)() { err := m.GetBackingStore().Set("sender", value) if err != nil { panic(err) } } -// SetSentDateTime sets the sentDateTime property value. The sentDateTime property +// SetSentDateTime sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *Message) SetSentDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("sentDateTime", value) if err != nil { @@ -1336,42 +1336,42 @@ func (m *Message) SetSingleValueExtendedProperties(value []SingleValueLegacyExte panic(err) } } -// SetSubject sets the subject property value. The subject property +// SetSubject sets the subject property value. The subject of the message. func (m *Message) SetSubject(value *string)() { err := m.GetBackingStore().Set("subject", value) if err != nil { panic(err) } } -// SetToRecipients sets the toRecipients property value. The toRecipients property +// SetToRecipients sets the toRecipients property value. The To: recipients for the message. func (m *Message) SetToRecipients(value []Recipientable)() { err := m.GetBackingStore().Set("toRecipients", value) if err != nil { panic(err) } } -// SetUniqueBody sets the uniqueBody property value. The uniqueBody property +// SetUniqueBody sets the uniqueBody property value. The part of the body of the message that is unique to the current message. uniqueBody is not returned by default but can be retrieved for a given message by use of the ?$select=uniqueBody query. It can be in HTML or text format. func (m *Message) SetUniqueBody(value ItemBodyable)() { err := m.GetBackingStore().Set("uniqueBody", value) if err != nil { panic(err) } } -// SetUnsubscribeData sets the unsubscribeData property value. The unsubscribeData property +// SetUnsubscribeData sets the unsubscribeData property value. The valid entries parsed from the List-Unsubscribe header. This is the data for the mail command in the List-Unsubscribe header if UnsubscribeEnabled property is true. func (m *Message) SetUnsubscribeData(value []string)() { err := m.GetBackingStore().Set("unsubscribeData", value) if err != nil { panic(err) } } -// SetUnsubscribeEnabled sets the unsubscribeEnabled property value. The unsubscribeEnabled property +// SetUnsubscribeEnabled sets the unsubscribeEnabled property value. Indicates whether the message is enabled for unsubscribe. Its valueTrue if the list-Unsubscribe header conforms to rfc-2369. func (m *Message) SetUnsubscribeEnabled(value *bool)() { err := m.GetBackingStore().Set("unsubscribeEnabled", value) if err != nil { panic(err) } } -// SetWebLink sets the webLink property value. The webLink property +// SetWebLink sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame. func (m *Message) SetWebLink(value *string)() { err := m.GetBackingStore().Set("webLink", value) if err != nil { diff --git a/models/mobile_app.go b/models/mobile_app.go index 5194622997e..9d4b6d04b34 100644 --- a/models/mobile_app.go +++ b/models/mobile_app.go @@ -595,7 +595,7 @@ func (m *MobileApp) GetRoleScopeTagIds()([]string) { } return nil } -// GetSupersededAppCount gets the supersededAppCount property value. The total number of apps this app is directly or indirectly superseded by. +// GetSupersededAppCount gets the supersededAppCount property value. The total number of apps this app is directly or indirectly superseded by. This property is read-only. // returns a *int32 when successful func (m *MobileApp) GetSupersededAppCount()(*int32) { val, err := m.GetBackingStore().Get("supersededAppCount") @@ -607,7 +607,7 @@ func (m *MobileApp) GetSupersededAppCount()(*int32) { } return nil } -// GetSupersedingAppCount gets the supersedingAppCount property value. The total number of apps this app directly or indirectly supersedes. +// GetSupersedingAppCount gets the supersedingAppCount property value. The total number of apps this app directly or indirectly supersedes. This property is read-only. // returns a *int32 when successful func (m *MobileApp) GetSupersedingAppCount()(*int32) { val, err := m.GetBackingStore().Get("supersedingAppCount") @@ -661,18 +661,6 @@ func (m *MobileApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("dependentAppCount", m.GetDependentAppCount()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("description", m.GetDescription()) if err != nil { @@ -697,12 +685,6 @@ func (m *MobileApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } - { - err = writer.WriteBoolValue("isAssigned", m.GetIsAssigned()) - if err != nil { - return err - } - } { err = writer.WriteBoolValue("isFeatured", m.GetIsFeatured()) if err != nil { @@ -715,12 +697,6 @@ func (m *MobileApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } - { - err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("notes", m.GetNotes()) if err != nil { @@ -770,24 +746,6 @@ func (m *MobileApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } - { - err = writer.WriteInt32Value("supersededAppCount", m.GetSupersededAppCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("supersedingAppCount", m.GetSupersedingAppCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("uploadState", m.GetUploadState()) - if err != nil { - return err - } - } return nil } // SetAssignments sets the assignments property value. The list of group assignments for this mobile app. @@ -923,14 +881,14 @@ func (m *MobileApp) SetRoleScopeTagIds(value []string)() { panic(err) } } -// SetSupersededAppCount sets the supersededAppCount property value. The total number of apps this app is directly or indirectly superseded by. +// SetSupersededAppCount sets the supersededAppCount property value. The total number of apps this app is directly or indirectly superseded by. This property is read-only. func (m *MobileApp) SetSupersededAppCount(value *int32)() { err := m.GetBackingStore().Set("supersededAppCount", value) if err != nil { panic(err) } } -// SetSupersedingAppCount sets the supersedingAppCount property value. The total number of apps this app directly or indirectly supersedes. +// SetSupersedingAppCount sets the supersedingAppCount property value. The total number of apps this app directly or indirectly supersedes. This property is read-only. func (m *MobileApp) SetSupersedingAppCount(value *int32)() { err := m.GetBackingStore().Set("supersedingAppCount", value) if err != nil { diff --git a/models/mobile_app_assignment.go b/models/mobile_app_assignment.go index 4738e4bbc3d..c9dc50a9995 100644 --- a/models/mobile_app_assignment.go +++ b/models/mobile_app_assignment.go @@ -112,7 +112,7 @@ func (m *MobileAppAssignment) GetSource()(*DeviceAndAppManagementAssignmentSourc } return nil } -// GetSourceId gets the sourceId property value. The identifier of the source of the assignment. +// GetSourceId gets the sourceId property value. The identifier of the source of the assignment. This property is read-only. // returns a *string when successful func (m *MobileAppAssignment) GetSourceId()(*string) { val, err := m.GetBackingStore().Get("sourceId") @@ -162,12 +162,6 @@ func (m *MobileAppAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } - { - err = writer.WriteStringValue("sourceId", m.GetSourceId()) - if err != nil { - return err - } - } { err = writer.WriteObjectValue("target", m.GetTarget()) if err != nil { @@ -197,7 +191,7 @@ func (m *MobileAppAssignment) SetSource(value *DeviceAndAppManagementAssignmentS panic(err) } } -// SetSourceId sets the sourceId property value. The identifier of the source of the assignment. +// SetSourceId sets the sourceId property value. The identifier of the source of the assignment. This property is read-only. func (m *MobileAppAssignment) SetSourceId(value *string)() { err := m.GetBackingStore().Set("sourceId", value) if err != nil { diff --git a/models/mobile_app_catalog_package.go b/models/mobile_app_catalog_package.go new file mode 100644 index 00000000000..3b83be24dec --- /dev/null +++ b/models/mobile_app_catalog_package.go @@ -0,0 +1,182 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MobileAppCatalogPackage mobileAppCatalogPackage is an abstract type that application catalog package entities derive from. A mobileAppCatalogPackage entity contains information about an application catalog package that can be deployed to Intune-managed devices. +type MobileAppCatalogPackage struct { + Entity +} +// NewMobileAppCatalogPackage instantiates a new MobileAppCatalogPackage and sets the default values. +func NewMobileAppCatalogPackage()(*MobileAppCatalogPackage) { + m := &MobileAppCatalogPackage{ + Entity: *NewEntity(), + } + return m +} +// CreateMobileAppCatalogPackageFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMobileAppCatalogPackageFromDiscriminatorValue(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.win32MobileAppCatalogPackage": + return NewWin32MobileAppCatalogPackage(), nil + } + } + } + } + return NewMobileAppCatalogPackage(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MobileAppCatalogPackage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["productDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductDisplayName(val) + } + return nil + } + res["productId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductId(val) + } + return nil + } + res["publisherDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPublisherDisplayName(val) + } + return nil + } + res["versionDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersionDisplayName(val) + } + return nil + } + return res +} +// GetProductDisplayName gets the productDisplayName property value. The name of the product (example: "Fabrikam for Business"). Returned by default. Read-only. Supports: $filter, $search, $select. This property is read-only. +// returns a *string when successful +func (m *MobileAppCatalogPackage) GetProductDisplayName()(*string) { + val, err := m.GetBackingStore().Get("productDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetProductId gets the productId property value. The identifier of a specific product irrespective of version, or other attributes. Read-only. Returned by default. Supports: $filter, $select. This property is read-only. +// returns a *string when successful +func (m *MobileAppCatalogPackage) GetProductId()(*string) { + val, err := m.GetBackingStore().Get("productId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPublisherDisplayName gets the publisherDisplayName property value. The name of the application catalog package publisher (example: "Fabrikam"). Returned by default. Read-only. Supports $filter, $search, $select. This property is read-only. +// returns a *string when successful +func (m *MobileAppCatalogPackage) GetPublisherDisplayName()(*string) { + val, err := m.GetBackingStore().Get("publisherDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetVersionDisplayName gets the versionDisplayName property value. The name of the product version (example: "1.2203.156"). Returned by default. Read-only. Supports: $filter, $search, $select. This property is read-only. +// returns a *string when successful +func (m *MobileAppCatalogPackage) GetVersionDisplayName()(*string) { + val, err := m.GetBackingStore().Get("versionDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MobileAppCatalogPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + return nil +} +// SetProductDisplayName sets the productDisplayName property value. The name of the product (example: "Fabrikam for Business"). Returned by default. Read-only. Supports: $filter, $search, $select. This property is read-only. +func (m *MobileAppCatalogPackage) SetProductDisplayName(value *string)() { + err := m.GetBackingStore().Set("productDisplayName", value) + if err != nil { + panic(err) + } +} +// SetProductId sets the productId property value. The identifier of a specific product irrespective of version, or other attributes. Read-only. Returned by default. Supports: $filter, $select. This property is read-only. +func (m *MobileAppCatalogPackage) SetProductId(value *string)() { + err := m.GetBackingStore().Set("productId", value) + if err != nil { + panic(err) + } +} +// SetPublisherDisplayName sets the publisherDisplayName property value. The name of the application catalog package publisher (example: "Fabrikam"). Returned by default. Read-only. Supports $filter, $search, $select. This property is read-only. +func (m *MobileAppCatalogPackage) SetPublisherDisplayName(value *string)() { + err := m.GetBackingStore().Set("publisherDisplayName", value) + if err != nil { + panic(err) + } +} +// SetVersionDisplayName sets the versionDisplayName property value. The name of the product version (example: "1.2203.156"). Returned by default. Read-only. Supports: $filter, $search, $select. This property is read-only. +func (m *MobileAppCatalogPackage) SetVersionDisplayName(value *string)() { + err := m.GetBackingStore().Set("versionDisplayName", value) + if err != nil { + panic(err) + } +} +type MobileAppCatalogPackageable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetProductDisplayName()(*string) + GetProductId()(*string) + GetPublisherDisplayName()(*string) + GetVersionDisplayName()(*string) + SetProductDisplayName(value *string)() + SetProductId(value *string)() + SetPublisherDisplayName(value *string)() + SetVersionDisplayName(value *string)() +} diff --git a/models/mobile_app_catalog_package_collection_response.go b/models/mobile_app_catalog_package_collection_response.go new file mode 100644 index 00000000000..79c0dace493 --- /dev/null +++ b/models/mobile_app_catalog_package_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type MobileAppCatalogPackageCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewMobileAppCatalogPackageCollectionResponse instantiates a new MobileAppCatalogPackageCollectionResponse and sets the default values. +func NewMobileAppCatalogPackageCollectionResponse()(*MobileAppCatalogPackageCollectionResponse) { + m := &MobileAppCatalogPackageCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateMobileAppCatalogPackageCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMobileAppCatalogPackageCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMobileAppCatalogPackageCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MobileAppCatalogPackageCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMobileAppCatalogPackageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MobileAppCatalogPackageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MobileAppCatalogPackageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []MobileAppCatalogPackageable when successful +func (m *MobileAppCatalogPackageCollectionResponse) GetValue()([]MobileAppCatalogPackageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MobileAppCatalogPackageable) + } + return nil +} +// Serialize serializes information the current object +func (m *MobileAppCatalogPackageCollectionResponse) 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 *MobileAppCatalogPackageCollectionResponse) SetValue(value []MobileAppCatalogPackageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type MobileAppCatalogPackageCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]MobileAppCatalogPackageable) + SetValue(value []MobileAppCatalogPackageable)() +} diff --git a/models/mobile_app_category.go b/models/mobile_app_category.go index 425d0b2b39b..b7ff8d121b9 100644 --- a/models/mobile_app_category.go +++ b/models/mobile_app_category.go @@ -59,7 +59,7 @@ func (m *MobileAppCategory) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time the mobileAppCategory was last modified. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time the mobileAppCategory was last modified. This property is read-only. // returns a *Time when successful func (m *MobileAppCategory) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -83,12 +83,6 @@ func (m *MobileAppCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } - { - err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) - if err != nil { - return err - } - } return nil } // SetDisplayName sets the displayName property value. The name of the app category. @@ -98,7 +92,7 @@ func (m *MobileAppCategory) SetDisplayName(value *string)() { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time the mobileAppCategory was last modified. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time the mobileAppCategory was last modified. This property is read-only. func (m *MobileAppCategory) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/mobile_app_content_file.go b/models/mobile_app_content_file.go index 6d2b3563af5..34bef1f7eb6 100644 --- a/models/mobile_app_content_file.go +++ b/models/mobile_app_content_file.go @@ -21,7 +21,7 @@ func NewMobileAppContentFile()(*MobileAppContentFile) { func CreateMobileAppContentFileFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewMobileAppContentFile(), nil } -// GetAzureStorageUri gets the azureStorageUri property value. Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. +// GetAzureStorageUri gets the azureStorageUri property value. Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. This property is read-only. // returns a *string when successful func (m *MobileAppContentFile) GetAzureStorageUri()(*string) { val, err := m.GetBackingStore().Get("azureStorageUri") @@ -33,7 +33,7 @@ func (m *MobileAppContentFile) GetAzureStorageUri()(*string) { } return nil } -// GetAzureStorageUriExpirationDateTime gets the azureStorageUriExpirationDateTime property value. Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. +// GetAzureStorageUriExpirationDateTime gets the azureStorageUriExpirationDateTime property value. Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. This property is read-only. // returns a *Time when successful func (m *MobileAppContentFile) GetAzureStorageUriExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("azureStorageUriExpirationDateTime") @@ -45,7 +45,7 @@ func (m *MobileAppContentFile) GetAzureStorageUriExpirationDateTime()(*i33607480 } return nil } -// GetCreatedDateTime gets the createdDateTime property value. Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. +// GetCreatedDateTime gets the createdDateTime property value. Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. This property is read-only. // returns a *Time when successful func (m *MobileAppContentFile) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -193,7 +193,7 @@ func (m *MobileAppContentFile) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetIsCommitted gets the isCommitted property value. A value indicating whether the file is committed. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. +// GetIsCommitted gets the isCommitted property value. A value indicating whether the file is committed. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. This property is read-only. // returns a *bool when successful func (m *MobileAppContentFile) GetIsCommitted()(*bool) { val, err := m.GetBackingStore().Get("isCommitted") @@ -277,7 +277,7 @@ func (m *MobileAppContentFile) GetSizeEncrypted()(*int64) { } return nil } -// GetSizeEncryptedInBytes gets the sizeEncryptedInBytes property value. Indicates the size of the file after encryption, in bytes. +// GetSizeEncryptedInBytes gets the sizeEncryptedInBytes property value. Indicates the size of the file after encryption, in bytes. Valid values 0 to 9.22337203685478E+18 // returns a *int64 when successful func (m *MobileAppContentFile) GetSizeEncryptedInBytes()(*int64) { val, err := m.GetBackingStore().Get("sizeEncryptedInBytes") @@ -289,7 +289,7 @@ func (m *MobileAppContentFile) GetSizeEncryptedInBytes()(*int64) { } return nil } -// GetSizeInBytes gets the sizeInBytes property value. Indicates the original size of the file, in bytes. +// GetSizeInBytes gets the sizeInBytes property value. Indicates the original size of the file, in bytes. Valid values 0 to 9.22337203685478E+18 // returns a *int64 when successful func (m *MobileAppContentFile) GetSizeInBytes()(*int64) { val, err := m.GetBackingStore().Get("sizeInBytes") @@ -319,30 +319,6 @@ func (m *MobileAppContentFile) Serialize(writer i878a80d2330e89d26896388a3f487ee if err != nil { return err } - { - err = writer.WriteStringValue("azureStorageUri", m.GetAzureStorageUri()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("azureStorageUriExpirationDateTime", m.GetAzureStorageUriExpirationDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteBoolValue("isCommitted", m.GetIsCommitted()) - if err != nil { - return err - } - } { err = writer.WriteBoolValue("isDependency", m.GetIsDependency()) if err != nil { @@ -400,28 +376,28 @@ func (m *MobileAppContentFile) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetAzureStorageUri sets the azureStorageUri property value. Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. +// SetAzureStorageUri sets the azureStorageUri property value. Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. This property is read-only. func (m *MobileAppContentFile) SetAzureStorageUri(value *string)() { err := m.GetBackingStore().Set("azureStorageUri", value) if err != nil { panic(err) } } -// SetAzureStorageUriExpirationDateTime sets the azureStorageUriExpirationDateTime property value. Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. +// SetAzureStorageUriExpirationDateTime sets the azureStorageUriExpirationDateTime property value. Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. This property is read-only. func (m *MobileAppContentFile) SetAzureStorageUriExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("azureStorageUriExpirationDateTime", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. +// SetCreatedDateTime sets the createdDateTime property value. Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. This property is read-only. func (m *MobileAppContentFile) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetIsCommitted sets the isCommitted property value. A value indicating whether the file is committed. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. +// SetIsCommitted sets the isCommitted property value. A value indicating whether the file is committed. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. This property is read-only. func (m *MobileAppContentFile) SetIsCommitted(value *bool)() { err := m.GetBackingStore().Set("isCommitted", value) if err != nil { @@ -470,14 +446,14 @@ func (m *MobileAppContentFile) SetSizeEncrypted(value *int64)() { panic(err) } } -// SetSizeEncryptedInBytes sets the sizeEncryptedInBytes property value. Indicates the size of the file after encryption, in bytes. +// SetSizeEncryptedInBytes sets the sizeEncryptedInBytes property value. Indicates the size of the file after encryption, in bytes. Valid values 0 to 9.22337203685478E+18 func (m *MobileAppContentFile) SetSizeEncryptedInBytes(value *int64)() { err := m.GetBackingStore().Set("sizeEncryptedInBytes", value) if err != nil { panic(err) } } -// SetSizeInBytes sets the sizeInBytes property value. Indicates the original size of the file, in bytes. +// SetSizeInBytes sets the sizeInBytes property value. Indicates the original size of the file, in bytes. Valid values 0 to 9.22337203685478E+18 func (m *MobileAppContentFile) SetSizeInBytes(value *int64)() { err := m.GetBackingStore().Set("sizeInBytes", value) if err != nil { diff --git a/models/mobile_app_dependency.go b/models/mobile_app_dependency.go index 95a941eb106..3a94a2a797e 100644 --- a/models/mobile_app_dependency.go +++ b/models/mobile_app_dependency.go @@ -34,7 +34,7 @@ func (m *MobileAppDependency) GetDependencyType()(*MobileAppDependencyType) { } return nil } -// GetDependentAppCount gets the dependentAppCount property value. The total number of apps that directly or indirectly depend on the parent app. +// GetDependentAppCount gets the dependentAppCount property value. The total number of apps that directly or indirectly depend on the parent app. This property is read-only. // returns a *int32 when successful func (m *MobileAppDependency) GetDependentAppCount()(*int32) { val, err := m.GetBackingStore().Get("dependentAppCount") @@ -46,7 +46,7 @@ func (m *MobileAppDependency) GetDependentAppCount()(*int32) { } return nil } -// GetDependsOnAppCount gets the dependsOnAppCount property value. The total number of apps the child app directly or indirectly depends on. +// GetDependsOnAppCount gets the dependsOnAppCount property value. The total number of apps the child app directly or indirectly depends on. This property is read-only. // returns a *int32 when successful func (m *MobileAppDependency) GetDependsOnAppCount()(*int32) { val, err := m.GetBackingStore().Get("dependsOnAppCount") @@ -107,18 +107,6 @@ func (m *MobileAppDependency) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } - { - err = writer.WriteInt32Value("dependentAppCount", m.GetDependentAppCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("dependsOnAppCount", m.GetDependsOnAppCount()) - if err != nil { - return err - } - } return nil } // SetDependencyType sets the dependencyType property value. Indicates the dependency type associated with a relationship between two mobile apps. @@ -128,14 +116,14 @@ func (m *MobileAppDependency) SetDependencyType(value *MobileAppDependencyType)( panic(err) } } -// SetDependentAppCount sets the dependentAppCount property value. The total number of apps that directly or indirectly depend on the parent app. +// SetDependentAppCount sets the dependentAppCount property value. The total number of apps that directly or indirectly depend on the parent app. This property is read-only. func (m *MobileAppDependency) SetDependentAppCount(value *int32)() { err := m.GetBackingStore().Set("dependentAppCount", value) if err != nil { panic(err) } } -// SetDependsOnAppCount sets the dependsOnAppCount property value. The total number of apps the child app directly or indirectly depends on. +// SetDependsOnAppCount sets the dependsOnAppCount property value. The total number of apps the child app directly or indirectly depends on. This property is read-only. func (m *MobileAppDependency) SetDependsOnAppCount(value *int32)() { err := m.GetBackingStore().Set("dependsOnAppCount", value) if err != nil { diff --git a/models/mobile_app_install_summary.go b/models/mobile_app_install_summary.go index facd2c38d45..eada138faf6 100644 --- a/models/mobile_app_install_summary.go +++ b/models/mobile_app_install_summary.go @@ -252,66 +252,6 @@ func (m *MobileAppInstallSummary) Serialize(writer i878a80d2330e89d26896388a3f48 if err != nil { return err } - { - err = writer.WriteInt32Value("failedDeviceCount", m.GetFailedDeviceCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("failedUserCount", m.GetFailedUserCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("installedDeviceCount", m.GetInstalledDeviceCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("installedUserCount", m.GetInstalledUserCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("notApplicableDeviceCount", m.GetNotApplicableDeviceCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("notApplicableUserCount", m.GetNotApplicableUserCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("notInstalledDeviceCount", m.GetNotInstalledDeviceCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("notInstalledUserCount", m.GetNotInstalledUserCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("pendingInstallDeviceCount", m.GetPendingInstallDeviceCount()) - if err != nil { - return err - } - } - { - err = writer.WriteInt32Value("pendingInstallUserCount", m.GetPendingInstallUserCount()) - if err != nil { - return err - } - } return nil } // SetFailedDeviceCount sets the failedDeviceCount property value. Number of Devices that have failed to install this app. diff --git a/models/mobile_app_relationship.go b/models/mobile_app_relationship.go index 642beb6f6c3..7586fa70c3e 100644 --- a/models/mobile_app_relationship.go +++ b/models/mobile_app_relationship.go @@ -96,7 +96,7 @@ func (m *MobileAppRelationship) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetTargetDisplayName gets the targetDisplayName property value. The target mobile app's display name. +// GetTargetDisplayName gets the targetDisplayName property value. The target mobile app's display name. This property is read-only. // returns a *string when successful func (m *MobileAppRelationship) GetTargetDisplayName()(*string) { val, err := m.GetBackingStore().Get("targetDisplayName") @@ -108,7 +108,7 @@ func (m *MobileAppRelationship) GetTargetDisplayName()(*string) { } return nil } -// GetTargetDisplayVersion gets the targetDisplayVersion property value. The target mobile app's display version. +// GetTargetDisplayVersion gets the targetDisplayVersion property value. The target mobile app's display version. This property is read-only. // returns a *string when successful func (m *MobileAppRelationship) GetTargetDisplayVersion()(*string) { val, err := m.GetBackingStore().Get("targetDisplayVersion") @@ -132,7 +132,7 @@ func (m *MobileAppRelationship) GetTargetId()(*string) { } return nil } -// GetTargetPublisher gets the targetPublisher property value. The target mobile app's publisher. +// GetTargetPublisher gets the targetPublisher property value. The target mobile app's publisher. This property is read-only. // returns a *string when successful func (m *MobileAppRelationship) GetTargetPublisher()(*string) { val, err := m.GetBackingStore().Get("targetPublisher") @@ -162,30 +162,12 @@ func (m *MobileAppRelationship) Serialize(writer i878a80d2330e89d26896388a3f487e if err != nil { return err } - { - err = writer.WriteStringValue("targetDisplayName", m.GetTargetDisplayName()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("targetDisplayVersion", m.GetTargetDisplayVersion()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("targetId", m.GetTargetId()) if err != nil { return err } } - { - err = writer.WriteStringValue("targetPublisher", m.GetTargetPublisher()) - if err != nil { - return err - } - } if m.GetTargetType() != nil { cast := (*m.GetTargetType()).String() err = writer.WriteStringValue("targetType", &cast) @@ -195,14 +177,14 @@ func (m *MobileAppRelationship) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } -// SetTargetDisplayName sets the targetDisplayName property value. The target mobile app's display name. +// SetTargetDisplayName sets the targetDisplayName property value. The target mobile app's display name. This property is read-only. func (m *MobileAppRelationship) SetTargetDisplayName(value *string)() { err := m.GetBackingStore().Set("targetDisplayName", value) if err != nil { panic(err) } } -// SetTargetDisplayVersion sets the targetDisplayVersion property value. The target mobile app's display version. +// SetTargetDisplayVersion sets the targetDisplayVersion property value. The target mobile app's display version. This property is read-only. func (m *MobileAppRelationship) SetTargetDisplayVersion(value *string)() { err := m.GetBackingStore().Set("targetDisplayVersion", value) if err != nil { @@ -216,7 +198,7 @@ func (m *MobileAppRelationship) SetTargetId(value *string)() { panic(err) } } -// SetTargetPublisher sets the targetPublisher property value. The target mobile app's publisher. +// SetTargetPublisher sets the targetPublisher property value. The target mobile app's publisher. This property is read-only. func (m *MobileAppRelationship) SetTargetPublisher(value *string)() { err := m.GetBackingStore().Set("targetPublisher", value) if err != nil { diff --git a/models/mobile_app_supersedence.go b/models/mobile_app_supersedence.go index fbe5167edbd..eaf189d8c63 100644 --- a/models/mobile_app_supersedence.go +++ b/models/mobile_app_supersedence.go @@ -58,7 +58,7 @@ func (m *MobileAppSupersedence) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetSupersededAppCount gets the supersededAppCount property value. The total number of apps directly or indirectly superseded by the child app. +// GetSupersededAppCount gets the supersededAppCount property value. The total number of apps directly or indirectly superseded by the child app. This property is read-only. // returns a *int32 when successful func (m *MobileAppSupersedence) GetSupersededAppCount()(*int32) { val, err := m.GetBackingStore().Get("supersededAppCount") @@ -82,7 +82,7 @@ func (m *MobileAppSupersedence) GetSupersedenceType()(*MobileAppSupersedenceType } return nil } -// GetSupersedingAppCount gets the supersedingAppCount property value. The total number of apps directly or indirectly superseding the parent app. +// GetSupersedingAppCount gets the supersedingAppCount property value. The total number of apps directly or indirectly superseding the parent app. This property is read-only. // returns a *int32 when successful func (m *MobileAppSupersedence) GetSupersedingAppCount()(*int32) { val, err := m.GetBackingStore().Get("supersedingAppCount") @@ -100,12 +100,6 @@ func (m *MobileAppSupersedence) Serialize(writer i878a80d2330e89d26896388a3f487e if err != nil { return err } - { - err = writer.WriteInt32Value("supersededAppCount", m.GetSupersededAppCount()) - if err != nil { - return err - } - } if m.GetSupersedenceType() != nil { cast := (*m.GetSupersedenceType()).String() err = writer.WriteStringValue("supersedenceType", &cast) @@ -113,15 +107,9 @@ func (m *MobileAppSupersedence) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } - { - err = writer.WriteInt32Value("supersedingAppCount", m.GetSupersedingAppCount()) - if err != nil { - return err - } - } return nil } -// SetSupersededAppCount sets the supersededAppCount property value. The total number of apps directly or indirectly superseded by the child app. +// SetSupersededAppCount sets the supersededAppCount property value. The total number of apps directly or indirectly superseded by the child app. This property is read-only. func (m *MobileAppSupersedence) SetSupersededAppCount(value *int32)() { err := m.GetBackingStore().Set("supersededAppCount", value) if err != nil { @@ -135,7 +123,7 @@ func (m *MobileAppSupersedence) SetSupersedenceType(value *MobileAppSupersedence panic(err) } } -// SetSupersedingAppCount sets the supersedingAppCount property value. The total number of apps directly or indirectly superseding the parent app. +// SetSupersedingAppCount sets the supersedingAppCount property value. The total number of apps directly or indirectly superseding the parent app. This property is read-only. func (m *MobileAppSupersedence) SetSupersedingAppCount(value *int32)() { err := m.GetBackingStore().Set("supersedingAppCount", value) if err != nil { diff --git a/models/mobile_app_troubleshooting_event.go b/models/mobile_app_troubleshooting_event.go index d7f4a34e5ae..df58bebcc6b 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. The collection property of AppLogUploadRequest. +// GetAppLogCollectionRequests gets the appLogCollectionRequests property value. Indicates collection of App Log Upload Request. // 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. The collection property of AppLogUploadRequest. +// SetAppLogCollectionRequests sets the appLogCollectionRequests property value. Indicates collection of App Log Upload Request. func (m *MobileAppTroubleshootingEvent) SetAppLogCollectionRequests(value []AppLogCollectionRequestable)() { err := m.GetBackingStore().Set("appLogCollectionRequests", value) if err != nil { diff --git a/models/mobile_lob_app.go b/models/mobile_lob_app.go index 2594087b603..b3ff0eb968f 100644 --- a/models/mobile_lob_app.go +++ b/models/mobile_lob_app.go @@ -76,7 +76,7 @@ func (m *MobileLobApp) GetCommittedContentVersion()(*string) { } return nil } -// GetContentVersions gets the contentVersions property value. The list of content versions for this app. +// GetContentVersions gets the contentVersions property value. The list of content versions for this app. This property is read-only. // returns a []MobileAppContentable when successful func (m *MobileLobApp) GetContentVersions()([]MobileAppContentable) { val, err := m.GetBackingStore().Get("contentVersions") @@ -152,7 +152,7 @@ func (m *MobileLobApp) GetFileName()(*string) { } return nil } -// GetSize gets the size property value. The total size, including all uploaded files. +// GetSize gets the size property value. The total size, including all uploaded files. This property is read-only. // returns a *int64 when successful func (m *MobileLobApp) GetSize()(*int64) { val, err := m.GetBackingStore().Get("size") @@ -194,12 +194,6 @@ func (m *MobileLobApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } - { - err = writer.WriteInt64Value("size", m.GetSize()) - if err != nil { - return err - } - } return nil } // SetCommittedContentVersion sets the committedContentVersion property value. The internal committed content version. @@ -209,7 +203,7 @@ func (m *MobileLobApp) SetCommittedContentVersion(value *string)() { panic(err) } } -// SetContentVersions sets the contentVersions property value. The list of content versions for this app. +// SetContentVersions sets the contentVersions property value. The list of content versions for this app. This property is read-only. func (m *MobileLobApp) SetContentVersions(value []MobileAppContentable)() { err := m.GetBackingStore().Set("contentVersions", value) if err != nil { @@ -223,7 +217,7 @@ func (m *MobileLobApp) SetFileName(value *string)() { panic(err) } } -// SetSize sets the size property value. The total size, including all uploaded files. +// SetSize sets the size property value. The total size, including all uploaded files. This property is read-only. func (m *MobileLobApp) SetSize(value *int64)() { err := m.GetBackingStore().Set("size", value) if err != nil { diff --git a/models/networkaccess/alert.go b/models/networkaccess/alert.go index 1fbd606d204..ebd7a98de17 100644 --- a/models/networkaccess/alert.go +++ b/models/networkaccess/alert.go @@ -119,16 +119,6 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } - res["firstImpactedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetFirstImpactedDateTime(val) - } - return nil - } res["relatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateRelatedResourceFromDiscriminatorValue) if err != nil { @@ -147,18 +137,6 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return res } -// GetFirstImpactedDateTime gets the firstImpactedDateTime property value. The firstImpactedDateTime property -// returns a *Time when successful -func (m *Alert) GetFirstImpactedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("firstImpactedDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetRelatedResources gets the relatedResources property value. The relatedResources property // returns a []RelatedResourceable when successful func (m *Alert) GetRelatedResources()([]RelatedResourceable) { @@ -208,12 +186,6 @@ func (m *Alert) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } - { - err = writer.WriteTimeValue("firstImpactedDateTime", m.GetFirstImpactedDateTime()) - if err != nil { - return err - } - } if m.GetRelatedResources() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRelatedResources())) for i, v := range m.GetRelatedResources() { @@ -256,13 +228,6 @@ func (m *Alert) SetDescription(value *string)() { panic(err) } } -// SetFirstImpactedDateTime sets the firstImpactedDateTime property value. The firstImpactedDateTime property -func (m *Alert) SetFirstImpactedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("firstImpactedDateTime", value) - if err != nil { - panic(err) - } -} // SetRelatedResources sets the relatedResources property value. The relatedResources property func (m *Alert) SetRelatedResources(value []RelatedResourceable)() { err := m.GetBackingStore().Set("relatedResources", value) @@ -277,12 +242,10 @@ type Alertable interface { GetAlertType()(*AlertType) GetCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(*string) - GetFirstImpactedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRelatedResources()([]RelatedResourceable) SetActions(value []AlertActionable)() SetAlertType(value *AlertType)() SetCreationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() - SetFirstImpactedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRelatedResources(value []RelatedResourceable)() } diff --git a/models/operation_approval_policy.go b/models/operation_approval_policy.go index ce5b8e7a8c4..5ac4f60c83c 100644 --- a/models/operation_approval_policy.go +++ b/models/operation_approval_policy.go @@ -139,7 +139,7 @@ func (m *OperationApprovalPolicy) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Indicates the last DateTime that the policy was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'policyType' property changes from `apps` to `scripts`. 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. Read-only. This property is read-only. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Indicates the last DateTime that the policy was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'policyType' property changes from apps to scripts. 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. Read-only. This property is read-only. // returns a *Time when successful func (m *OperationApprovalPolicy) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -254,7 +254,7 @@ func (m *OperationApprovalPolicy) SetDisplayName(value *string)() { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Indicates the last DateTime that the policy was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'policyType' property changes from `apps` to `scripts`. 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. Read-only. This property is read-only. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Indicates the last DateTime that the policy was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'policyType' property changes from apps to scripts. 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. Read-only. This property is read-only. func (m *OperationApprovalPolicy) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/operation_approval_request.go b/models/operation_approval_request.go index cbb316a2cb0..d67b12121f5 100644 --- a/models/operation_approval_request.go +++ b/models/operation_approval_request.go @@ -169,7 +169,7 @@ func (m *OperationApprovalRequest) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Indicates the last DateTime that the request was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'status' property changes from `needsApproval` to `approved`. 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. Read-only. This property is read-only. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Indicates the last DateTime that the request was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'status' property changes from needsApproval to approved. 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. Read-only. This property is read-only. // returns a *Time when successful func (m *OperationApprovalRequest) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -289,7 +289,7 @@ func (m *OperationApprovalRequest) SetExpirationDateTime(value *i336074805fc8539 panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Indicates the last DateTime that the request was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'status' property changes from `needsApproval` to `approved`. 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. Read-only. This property is read-only. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Indicates the last DateTime that the request was modified. The value cannot be modified and is automatically populated whenever values in the request are updated. For example, when the 'status' property changes from needsApproval to approved. 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. Read-only. This property is read-only. func (m *OperationApprovalRequest) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/operation_approval_request_entity_status.go b/models/operation_approval_request_entity_status.go index a961a456af1..5c42f1e56ec 100644 --- a/models/operation_approval_request_entity_status.go +++ b/models/operation_approval_request_entity_status.go @@ -42,7 +42,7 @@ func (m *OperationApprovalRequestEntityStatus) GetAdditionalData()(map[string]an func (m *OperationApprovalRequestEntityStatus) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetEntityLocked gets the entityLocked property value. The status of the Entity connected to the OperationApprovalRequest in regard to changes, whether further requests are allowed or if the Entity is locked. When `true`, a lock is present on the Entity and no approval requests can be currently made for it. When `false`, the Entity is not locked and approval requests are allowed. Default value is `false`. Read-only. This property is read-only. +// GetEntityLocked gets the entityLocked property value. The status of the Entity connected to the OperationApprovalRequest in regard to changes, whether further requests are allowed or if the Entity is locked. When true, a lock is present on the Entity and no approval requests can be currently made for it. When false, the Entity is not locked and approval requests are allowed. Default value is false. Read-only. This property is read-only. // returns a *bool when successful func (m *OperationApprovalRequestEntityStatus) GetEntityLocked()(*bool) { val, err := m.GetBackingStore().Get("entityLocked") @@ -192,7 +192,7 @@ func (m *OperationApprovalRequestEntityStatus) SetAdditionalData(value map[strin func (m *OperationApprovalRequestEntityStatus) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetEntityLocked sets the entityLocked property value. The status of the Entity connected to the OperationApprovalRequest in regard to changes, whether further requests are allowed or if the Entity is locked. When `true`, a lock is present on the Entity and no approval requests can be currently made for it. When `false`, the Entity is not locked and approval requests are allowed. Default value is `false`. Read-only. This property is read-only. +// SetEntityLocked sets the entityLocked property value. The status of the Entity connected to the OperationApprovalRequest in regard to changes, whether further requests are allowed or if the Entity is locked. When true, a lock is present on the Entity and no approval requests can be currently made for it. When false, the Entity is not locked and approval requests are allowed. Default value is false. Read-only. This property is read-only. func (m *OperationApprovalRequestEntityStatus) SetEntityLocked(value *bool)() { err := m.GetBackingStore().Set("entityLocked", value) if err != nil { diff --git a/models/organization.go b/models/organization.go index 1eeb6b1cb06..5a5ed798363 100644 --- a/models/organization.go +++ b/models/organization.go @@ -46,7 +46,7 @@ func (m *Organization) GetBranding()(OrganizationalBrandingable) { } return nil } -// GetBusinessPhones gets the businessPhones property value. Telephone number for the organization. Although this is a string collection, only one number can be set for this property. +// GetBusinessPhones gets the businessPhones property value. Telephone number for the organization. Although this property is a string collection, only one number can be set. // returns a []string when successful func (m *Organization) GetBusinessPhones()([]string) { val, err := m.GetBackingStore().Get("businessPhones") @@ -118,7 +118,7 @@ func (m *Organization) GetCountryLetterCode()(*string) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// GetCreatedDateTime gets the createdDateTime property value. Timestamp of when the organization was created. The value can't be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *Organization) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -546,6 +546,16 @@ func (m *Organization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["tenantType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantType(val) + } + return nil + } res["verifiedDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVerifiedDomainFromDiscriminatorValue) if err != nil { @@ -564,7 +574,7 @@ func (m *Organization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetIsMultipleDataLocationsForServicesEnabled gets the isMultipleDataLocationsForServicesEnabled property value. true if organization is Multi-Geo enabled; false if organization is not Multi-Geo enabled; null (default). Read-only. For more information, see OneDrive Online Multi-Geo. +// GetIsMultipleDataLocationsForServicesEnabled gets the isMultipleDataLocationsForServicesEnabled property value. true if organization is Multi-Geo enabled; false if organization isn't Multi-Geo enabled; null (default). Read-only. For more information, see OneDrive Online Multi-Geo. // returns a *bool when successful func (m *Organization) GetIsMultipleDataLocationsForServicesEnabled()(*bool) { val, err := m.GetBackingStore().Get("isMultipleDataLocationsForServicesEnabled") @@ -624,7 +634,7 @@ func (m *Organization) GetOnPremisesLastSyncDateTime()(*i336074805fc853987abe6f7 } return nil } -// GetOnPremisesSyncEnabled gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; Nullable. null if this object has never been synced from an on-premises directory (default). +// GetOnPremisesSyncEnabled gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; Nullable. null, if this object isn't synced from on-premises active directory (default). // returns a *bool when successful func (m *Organization) GetOnPremisesSyncEnabled()(*bool) { val, err := m.GetBackingStore().Get("onPremisesSyncEnabled") @@ -672,7 +682,7 @@ func (m *Organization) GetPostalCode()(*string) { } return nil } -// GetPreferredLanguage gets the preferredLanguage property value. The preferred language for the organization. Should follow ISO 639-1 Code; for example en. +// GetPreferredLanguage gets the preferredLanguage property value. The preferred language for the organization. Should follow ISO 639-1 code; for example, en. // returns a *string when successful func (m *Organization) GetPreferredLanguage()(*string) { val, err := m.GetBackingStore().Get("preferredLanguage") @@ -780,6 +790,18 @@ func (m *Organization) GetTechnicalNotificationMails()([]string) { } return nil } +// GetTenantType gets the tenantType property value. Not nullable. Can be one of the following types: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C An identity access management (IAM) service that serves business-to-consumer (B2C) scenarios. CIAM - A customer identity & access management (CIAM) solution that provides an integrated platform to serve consumers, partners, and citizen scenarios. +// returns a *string when successful +func (m *Organization) GetTenantType()(*string) { + val, err := m.GetBackingStore().Get("tenantType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetVerifiedDomains gets the verifiedDomains property value. The collection of domains associated with this tenant. Not nullable. // returns a []VerifiedDomainable when successful func (m *Organization) GetVerifiedDomains()([]VerifiedDomainable) { @@ -1010,6 +1032,12 @@ func (m *Organization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("tenantType", m.GetTenantType()) + if err != nil { + return err + } + } if m.GetVerifiedDomains() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetVerifiedDomains())) for i, v := range m.GetVerifiedDomains() { @@ -1038,7 +1066,7 @@ func (m *Organization) SetBranding(value OrganizationalBrandingable)() { panic(err) } } -// SetBusinessPhones sets the businessPhones property value. Telephone number for the organization. Although this is a string collection, only one number can be set for this property. +// SetBusinessPhones sets the businessPhones property value. Telephone number for the organization. Although this property is a string collection, only one number can be set. func (m *Organization) SetBusinessPhones(value []string)() { err := m.GetBackingStore().Set("businessPhones", value) if err != nil { @@ -1080,7 +1108,7 @@ func (m *Organization) SetCountryLetterCode(value *string)() { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// SetCreatedDateTime sets the createdDateTime property value. Timestamp of when the organization was created. The value can't be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *Organization) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { @@ -1115,7 +1143,7 @@ func (m *Organization) SetExtensions(value []Extensionable)() { panic(err) } } -// SetIsMultipleDataLocationsForServicesEnabled sets the isMultipleDataLocationsForServicesEnabled property value. true if organization is Multi-Geo enabled; false if organization is not Multi-Geo enabled; null (default). Read-only. For more information, see OneDrive Online Multi-Geo. +// SetIsMultipleDataLocationsForServicesEnabled sets the isMultipleDataLocationsForServicesEnabled property value. true if organization is Multi-Geo enabled; false if organization isn't Multi-Geo enabled; null (default). Read-only. For more information, see OneDrive Online Multi-Geo. func (m *Organization) SetIsMultipleDataLocationsForServicesEnabled(value *bool)() { err := m.GetBackingStore().Set("isMultipleDataLocationsForServicesEnabled", value) if err != nil { @@ -1150,7 +1178,7 @@ func (m *Organization) SetOnPremisesLastSyncDateTime(value *i336074805fc853987ab panic(err) } } -// SetOnPremisesSyncEnabled sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; Nullable. null if this object has never been synced from an on-premises directory (default). +// SetOnPremisesSyncEnabled sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; Nullable. null, if this object isn't synced from on-premises active directory (default). func (m *Organization) SetOnPremisesSyncEnabled(value *bool)() { err := m.GetBackingStore().Set("onPremisesSyncEnabled", value) if err != nil { @@ -1178,7 +1206,7 @@ func (m *Organization) SetPostalCode(value *string)() { panic(err) } } -// SetPreferredLanguage sets the preferredLanguage property value. The preferred language for the organization. Should follow ISO 639-1 Code; for example en. +// SetPreferredLanguage sets the preferredLanguage property value. The preferred language for the organization. Should follow ISO 639-1 code; for example, en. func (m *Organization) SetPreferredLanguage(value *string)() { err := m.GetBackingStore().Set("preferredLanguage", value) if err != nil { @@ -1241,6 +1269,13 @@ func (m *Organization) SetTechnicalNotificationMails(value []string)() { panic(err) } } +// SetTenantType sets the tenantType property value. Not nullable. Can be one of the following types: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C An identity access management (IAM) service that serves business-to-consumer (B2C) scenarios. CIAM - A customer identity & access management (CIAM) solution that provides an integrated platform to serve consumers, partners, and citizen scenarios. +func (m *Organization) SetTenantType(value *string)() { + err := m.GetBackingStore().Set("tenantType", value) + if err != nil { + panic(err) + } +} // SetVerifiedDomains sets the verifiedDomains property value. The collection of domains associated with this tenant. Not nullable. func (m *Organization) SetVerifiedDomains(value []VerifiedDomainable)() { err := m.GetBackingStore().Set("verifiedDomains", value) @@ -1282,6 +1317,7 @@ type Organizationable interface { GetState()(*string) GetStreet()(*string) GetTechnicalNotificationMails()([]string) + GetTenantType()(*string) GetVerifiedDomains()([]VerifiedDomainable) SetAssignedPlans(value []AssignedPlanable)() SetBranding(value OrganizationalBrandingable)() @@ -1314,5 +1350,6 @@ type Organizationable interface { SetState(value *string)() SetStreet(value *string)() SetTechnicalNotificationMails(value []string)() + SetTenantType(value *string)() SetVerifiedDomains(value []VerifiedDomainable)() } diff --git a/models/outlook_task.go b/models/outlook_task.go index 5a067ebe335..6e3fb2c76b5 100644 --- a/models/outlook_task.go +++ b/models/outlook_task.go @@ -297,7 +297,7 @@ func (m *OutlookTask) GetHasAttachments()(*bool) { } return nil } -// GetImportance gets the importance property value. The importance property +// GetImportance gets the importance property value. The importance of the event. Possible values are: low, normal, high. // returns a *Importance when successful func (m *OutlookTask) GetImportance()(*Importance) { val, err := m.GetBackingStore().Get("importance") @@ -309,7 +309,7 @@ func (m *OutlookTask) GetImportance()(*Importance) { } return nil } -// GetIsReminderOn gets the isReminderOn property value. The isReminderOn property +// GetIsReminderOn gets the isReminderOn property value. Set to true if an alert is set to remind the user of the task. // returns a *bool when successful func (m *OutlookTask) GetIsReminderOn()(*bool) { val, err := m.GetBackingStore().Get("isReminderOn") @@ -333,7 +333,7 @@ func (m *OutlookTask) GetMultiValueExtendedProperties()([]MultiValueLegacyExtend } return nil } -// GetOwner gets the owner property value. The owner property +// GetOwner gets the owner property value. The name of the person who created the task. // returns a *string when successful func (m *OutlookTask) GetOwner()(*string) { val, err := m.GetBackingStore().Get("owner") @@ -345,7 +345,7 @@ func (m *OutlookTask) GetOwner()(*string) { } return nil } -// GetParentFolderId gets the parentFolderId property value. The parentFolderId property +// GetParentFolderId gets the parentFolderId property value. The unique identifier for the task's parent folder. // returns a *string when successful func (m *OutlookTask) GetParentFolderId()(*string) { val, err := m.GetBackingStore().Get("parentFolderId") @@ -357,7 +357,7 @@ func (m *OutlookTask) GetParentFolderId()(*string) { } return nil } -// GetRecurrence gets the recurrence property value. The recurrence property +// GetRecurrence gets the recurrence property value. The recurrence pattern for the task. // returns a PatternedRecurrenceable when successful func (m *OutlookTask) GetRecurrence()(PatternedRecurrenceable) { val, err := m.GetBackingStore().Get("recurrence") @@ -369,7 +369,7 @@ func (m *OutlookTask) GetRecurrence()(PatternedRecurrenceable) { } return nil } -// GetReminderDateTime gets the reminderDateTime property value. The reminderDateTime property +// GetReminderDateTime gets the reminderDateTime property value. The date and time for a reminder alert of the task to occur. // returns a DateTimeTimeZoneable when successful func (m *OutlookTask) GetReminderDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("reminderDateTime") @@ -381,7 +381,7 @@ func (m *OutlookTask) GetReminderDateTime()(DateTimeTimeZoneable) { } return nil } -// GetSensitivity gets the sensitivity property value. The sensitivity property +// GetSensitivity gets the sensitivity property value. Indicates the level of privacy for the task. Possible values are: normal, personal, private, confidential. // returns a *Sensitivity when successful func (m *OutlookTask) GetSensitivity()(*Sensitivity) { val, err := m.GetBackingStore().Get("sensitivity") @@ -405,7 +405,7 @@ func (m *OutlookTask) GetSingleValueExtendedProperties()([]SingleValueLegacyExte } return nil } -// GetStartDateTime gets the startDateTime property value. The startDateTime property +// GetStartDateTime gets the startDateTime property value. The date in the specified time zone when the task is to begin. // returns a DateTimeTimeZoneable when successful func (m *OutlookTask) GetStartDateTime()(DateTimeTimeZoneable) { val, err := m.GetBackingStore().Get("startDateTime") @@ -417,7 +417,7 @@ func (m *OutlookTask) GetStartDateTime()(DateTimeTimeZoneable) { } return nil } -// GetStatus gets the status property value. The status property +// GetStatus gets the status property value. Indicates the state or progress of the task. Possible values are: notStarted, inProgress, completed, waitingOnOthers, deferred. // returns a *TaskStatus when successful func (m *OutlookTask) GetStatus()(*TaskStatus) { val, err := m.GetBackingStore().Get("status") @@ -429,7 +429,7 @@ func (m *OutlookTask) GetStatus()(*TaskStatus) { } return nil } -// GetSubject gets the subject property value. The subject property +// GetSubject gets the subject property value. A brief description or title of the task. // returns a *string when successful func (m *OutlookTask) GetSubject()(*string) { val, err := m.GetBackingStore().Get("subject") @@ -620,14 +620,14 @@ func (m *OutlookTask) SetHasAttachments(value *bool)() { panic(err) } } -// SetImportance sets the importance property value. The importance property +// SetImportance sets the importance property value. The importance of the event. Possible values are: low, normal, high. func (m *OutlookTask) SetImportance(value *Importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) } } -// SetIsReminderOn sets the isReminderOn property value. The isReminderOn property +// SetIsReminderOn sets the isReminderOn property value. Set to true if an alert is set to remind the user of the task. func (m *OutlookTask) SetIsReminderOn(value *bool)() { err := m.GetBackingStore().Set("isReminderOn", value) if err != nil { @@ -641,35 +641,35 @@ func (m *OutlookTask) SetMultiValueExtendedProperties(value []MultiValueLegacyEx panic(err) } } -// SetOwner sets the owner property value. The owner property +// SetOwner sets the owner property value. The name of the person who created the task. func (m *OutlookTask) SetOwner(value *string)() { err := m.GetBackingStore().Set("owner", value) if err != nil { panic(err) } } -// SetParentFolderId sets the parentFolderId property value. The parentFolderId property +// SetParentFolderId sets the parentFolderId property value. The unique identifier for the task's parent folder. func (m *OutlookTask) SetParentFolderId(value *string)() { err := m.GetBackingStore().Set("parentFolderId", value) if err != nil { panic(err) } } -// SetRecurrence sets the recurrence property value. The recurrence property +// SetRecurrence sets the recurrence property value. The recurrence pattern for the task. func (m *OutlookTask) SetRecurrence(value PatternedRecurrenceable)() { err := m.GetBackingStore().Set("recurrence", value) if err != nil { panic(err) } } -// SetReminderDateTime sets the reminderDateTime property value. The reminderDateTime property +// SetReminderDateTime sets the reminderDateTime property value. The date and time for a reminder alert of the task to occur. func (m *OutlookTask) SetReminderDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("reminderDateTime", value) if err != nil { panic(err) } } -// SetSensitivity sets the sensitivity property value. The sensitivity property +// SetSensitivity sets the sensitivity property value. Indicates the level of privacy for the task. Possible values are: normal, personal, private, confidential. func (m *OutlookTask) SetSensitivity(value *Sensitivity)() { err := m.GetBackingStore().Set("sensitivity", value) if err != nil { @@ -683,21 +683,21 @@ func (m *OutlookTask) SetSingleValueExtendedProperties(value []SingleValueLegacy panic(err) } } -// SetStartDateTime sets the startDateTime property value. The startDateTime property +// SetStartDateTime sets the startDateTime property value. The date in the specified time zone when the task is to begin. func (m *OutlookTask) SetStartDateTime(value DateTimeTimeZoneable)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { panic(err) } } -// SetStatus sets the status property value. The status property +// SetStatus sets the status property value. Indicates the state or progress of the task. Possible values are: notStarted, inProgress, completed, waitingOnOthers, deferred. func (m *OutlookTask) SetStatus(value *TaskStatus)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) } } -// SetSubject sets the subject property value. The subject property +// SetSubject sets the subject property value. A brief description or title of the task. func (m *OutlookTask) SetSubject(value *string)() { err := m.GetBackingStore().Set("subject", value) if err != nil { diff --git a/models/place.go b/models/place.go index e9c041e45d5..cb20c9285fe 100644 --- a/models/place.go +++ b/models/place.go @@ -121,7 +121,7 @@ func (m *Place) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return res } -// GetGeoCoordinates gets the geoCoordinates property value. Specifies the place location in latitude, longitude and (optionally) altitude coordinates. +// GetGeoCoordinates gets the geoCoordinates property value. Specifies the place location in latitude, longitude, and (optionally) altitude coordinates. // returns a OutlookGeoCoordinatesable when successful func (m *Place) GetGeoCoordinates()(OutlookGeoCoordinatesable) { val, err := m.GetBackingStore().Get("geoCoordinates") @@ -145,7 +145,7 @@ func (m *Place) GetPhone()(*string) { } return nil } -// GetPlaceId gets the placeId property value. An alternate immutable unique identifier of the place. +// GetPlaceId gets the placeId property value. A unique, immutable identifier for the place. Read-only. The value of this identifier is equal to the ExternalDirectoryObjectId returned from the Get-Mailbox cmdlet. // returns a *string when successful func (m *Place) GetPlaceId()(*string) { val, err := m.GetBackingStore().Get("placeId") @@ -209,7 +209,7 @@ func (m *Place) SetDisplayName(value *string)() { panic(err) } } -// SetGeoCoordinates sets the geoCoordinates property value. Specifies the place location in latitude, longitude and (optionally) altitude coordinates. +// SetGeoCoordinates sets the geoCoordinates property value. Specifies the place location in latitude, longitude, and (optionally) altitude coordinates. func (m *Place) SetGeoCoordinates(value OutlookGeoCoordinatesable)() { err := m.GetBackingStore().Set("geoCoordinates", value) if err != nil { @@ -223,7 +223,7 @@ func (m *Place) SetPhone(value *string)() { panic(err) } } -// SetPlaceId sets the placeId property value. An alternate immutable unique identifier of the place. +// SetPlaceId sets the placeId property value. A unique, immutable identifier for the place. Read-only. The value of this identifier is equal to the ExternalDirectoryObjectId returned from the Get-Mailbox cmdlet. func (m *Place) SetPlaceId(value *string)() { err := m.GetBackingStore().Set("placeId", 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/risk_detail.go b/models/risk_detail.go index bb20ce13f2f..5dc300af0f8 100644 --- a/models/risk_detail.go +++ b/models/risk_detail.go @@ -20,10 +20,13 @@ const ( ADMINCONFIRMEDSERVICEPRINCIPALCOMPROMISED_RISKDETAIL ADMINDISMISSEDALLRISKFORSERVICEPRINCIPAL_RISKDETAIL M365DADMINDISMISSEDDETECTION_RISKDETAIL + USERCHANGEDPASSWORDONPREMISES_RISKDETAIL + ADMINDISMISSEDRISKFORSIGNIN_RISKDETAIL + ADMINCONFIRMEDACCOUNTSAFE_RISKDETAIL ) func (i RiskDetail) String() string { - return []string{"none", "adminGeneratedTemporaryPassword", "userPerformedSecuredPasswordChange", "userPerformedSecuredPasswordReset", "adminConfirmedSigninSafe", "aiConfirmedSigninSafe", "userPassedMFADrivenByRiskBasedPolicy", "adminDismissedAllRiskForUser", "adminConfirmedSigninCompromised", "hidden", "adminConfirmedUserCompromised", "unknownFutureValue", "adminConfirmedServicePrincipalCompromised", "adminDismissedAllRiskForServicePrincipal", "m365DAdminDismissedDetection"}[i] + return []string{"none", "adminGeneratedTemporaryPassword", "userPerformedSecuredPasswordChange", "userPerformedSecuredPasswordReset", "adminConfirmedSigninSafe", "aiConfirmedSigninSafe", "userPassedMFADrivenByRiskBasedPolicy", "adminDismissedAllRiskForUser", "adminConfirmedSigninCompromised", "hidden", "adminConfirmedUserCompromised", "unknownFutureValue", "adminConfirmedServicePrincipalCompromised", "adminDismissedAllRiskForServicePrincipal", "m365DAdminDismissedDetection", "userChangedPasswordOnPremises", "adminDismissedRiskForSignIn", "adminConfirmedAccountSafe"}[i] } func ParseRiskDetail(v string) (any, error) { result := NONE_RISKDETAIL @@ -58,6 +61,12 @@ func ParseRiskDetail(v string) (any, error) { result = ADMINDISMISSEDALLRISKFORSERVICEPRINCIPAL_RISKDETAIL case "m365DAdminDismissedDetection": result = M365DADMINDISMISSEDDETECTION_RISKDETAIL + case "userChangedPasswordOnPremises": + result = USERCHANGEDPASSWORDONPREMISES_RISKDETAIL + case "adminDismissedRiskForSignIn": + result = ADMINDISMISSEDRISKFORSIGNIN_RISKDETAIL + case "adminConfirmedAccountSafe": + result = ADMINCONFIRMEDACCOUNTSAFE_RISKDETAIL default: return 0, errors.New("Unknown RiskDetail value: " + v) } diff --git a/models/risky_user.go b/models/risky_user.go index a279b67e0c8..c82d8ad3fa1 100644 --- a/models/risky_user.go +++ b/models/risky_user.go @@ -164,7 +164,7 @@ func (m *RiskyUser) GetIsDeleted()(*bool) { } return nil } -// GetIsProcessing gets the isProcessing property value. Indicates whether a user's risky state is being processed by the backend. Supports $filter (eq). +// GetIsProcessing gets the isProcessing property value. Indicates whether a user's risky state is being processed by the backend. // returns a *bool when successful func (m *RiskyUser) GetIsProcessing()(*bool) { val, err := m.GetBackingStore().Get("isProcessing") @@ -176,7 +176,7 @@ func (m *RiskyUser) GetIsProcessing()(*bool) { } return nil } -// GetRiskDetail gets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. +// GetRiskDetail gets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. // returns a *RiskDetail when successful func (m *RiskyUser) GetRiskDetail()(*RiskDetail) { val, err := m.GetBackingStore().Get("riskDetail") @@ -188,7 +188,7 @@ func (m *RiskyUser) GetRiskDetail()(*RiskDetail) { } return nil } -// GetRiskLastUpdatedDateTime gets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, gt, lt). +// GetRiskLastUpdatedDateTime gets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *RiskyUser) GetRiskLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("riskLastUpdatedDateTime") @@ -200,7 +200,7 @@ func (m *RiskyUser) GetRiskLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad9 } return nil } -// GetRiskLevel gets the riskLevel property value. Level of the detected risky user. The possible values are low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). +// GetRiskLevel gets the riskLevel property value. Level of the detected risky user. The possible values are low, medium, high, hidden, none, unknownFutureValue. // returns a *RiskLevel when successful func (m *RiskyUser) GetRiskLevel()(*RiskLevel) { val, err := m.GetBackingStore().Get("riskLevel") @@ -212,7 +212,7 @@ func (m *RiskyUser) GetRiskLevel()(*RiskLevel) { } return nil } -// GetRiskState gets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). +// GetRiskState gets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. // returns a *RiskState when successful func (m *RiskyUser) GetRiskState()(*RiskState) { val, err := m.GetBackingStore().Get("riskState") @@ -333,35 +333,35 @@ func (m *RiskyUser) SetIsDeleted(value *bool)() { panic(err) } } -// SetIsProcessing sets the isProcessing property value. Indicates whether a user's risky state is being processed by the backend. Supports $filter (eq). +// SetIsProcessing sets the isProcessing property value. Indicates whether a user's risky state is being processed by the backend. func (m *RiskyUser) SetIsProcessing(value *bool)() { err := m.GetBackingStore().Set("isProcessing", value) if err != nil { panic(err) } } -// SetRiskDetail sets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. +// SetRiskDetail sets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. func (m *RiskyUser) SetRiskDetail(value *RiskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { panic(err) } } -// SetRiskLastUpdatedDateTime sets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, gt, lt). +// SetRiskLastUpdatedDateTime sets the riskLastUpdatedDateTime property value. The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *RiskyUser) SetRiskLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("riskLastUpdatedDateTime", value) if err != nil { panic(err) } } -// SetRiskLevel sets the riskLevel property value. Level of the detected risky user. The possible values are low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). +// SetRiskLevel sets the riskLevel property value. Level of the detected risky user. The possible values are low, medium, high, hidden, none, unknownFutureValue. func (m *RiskyUser) SetRiskLevel(value *RiskLevel)() { err := m.GetBackingStore().Set("riskLevel", value) if err != nil { panic(err) } } -// SetRiskState sets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). +// SetRiskState sets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. func (m *RiskyUser) SetRiskState(value *RiskState)() { err := m.GetBackingStore().Set("riskState", value) if err != nil { diff --git a/models/search/answer_keyword.go b/models/search/answer_keyword.go index c5e1079dafb..03aa13d19ed 100644 --- a/models/search/answer_keyword.go +++ b/models/search/answer_keyword.go @@ -134,7 +134,7 @@ func (m *AnswerKeyword) GetOdataType()(*string) { } return nil } -// GetReservedKeywords gets the reservedKeywords property value. Unique keywords that will guarantee the search answer is triggered. +// GetReservedKeywords gets the reservedKeywords property value. Unique keywords that guarantee the search answer is triggered. // returns a []string when successful func (m *AnswerKeyword) GetReservedKeywords()([]string) { val, err := m.GetBackingStore().Get("reservedKeywords") @@ -212,7 +212,7 @@ func (m *AnswerKeyword) SetOdataType(value *string)() { panic(err) } } -// SetReservedKeywords sets the reservedKeywords property value. Unique keywords that will guarantee the search answer is triggered. +// SetReservedKeywords sets the reservedKeywords property value. Unique keywords that guarantee the search answer is triggered. func (m *AnswerKeyword) SetReservedKeywords(value []string)() { err := m.GetBackingStore().Set("reservedKeywords", value) if err != nil { diff --git a/models/search/answer_variant.go b/models/search/answer_variant.go index 1b1002d9282..5d71c6ab801 100644 --- a/models/search/answer_variant.go +++ b/models/search/answer_variant.go @@ -41,7 +41,7 @@ func (m *AnswerVariant) GetAdditionalData()(map[string]any) { func (m *AnswerVariant) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDescription gets the description property value. Answer variation description shown on search results page. +// GetDescription gets the description property value. The answer variation description that is shown on the search results page. // returns a *string when successful func (m *AnswerVariant) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -53,7 +53,7 @@ func (m *AnswerVariant) GetDescription()(*string) { } return nil } -// GetDisplayName gets the displayName property value. Answer variation name displayed in search results. +// GetDisplayName gets the displayName property value. The answer variation name that is displayed in search results. // returns a *string when successful func (m *AnswerVariant) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -131,7 +131,7 @@ func (m *AnswerVariant) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetLanguageTag gets the languageTag property value. The languageTag property +// GetLanguageTag gets the languageTag property value. The country or region that can view this answer variation. // returns a *string when successful func (m *AnswerVariant) GetLanguageTag()(*string) { val, err := m.GetBackingStore().Get("languageTag") @@ -155,7 +155,7 @@ func (m *AnswerVariant) GetOdataType()(*string) { } return nil } -// GetPlatform gets the platform property value. The platform property +// GetPlatform gets the platform property value. The device or operating system that can view this answer variation. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. // returns a *DevicePlatformType when successful func (m *AnswerVariant) GetPlatform()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType) { val, err := m.GetBackingStore().Get("platform") @@ -167,7 +167,7 @@ func (m *AnswerVariant) GetPlatform()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697 } return nil } -// GetWebUrl gets the webUrl property value. Answer variation URL link. When users click this answer variation in search results, they will go to this URL. +// GetWebUrl gets the webUrl property value. The URL link for the answer variation. When users select this answer variation from the search results, they're directed to the specified URL. // returns a *string when successful func (m *AnswerVariant) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") @@ -237,21 +237,21 @@ func (m *AnswerVariant) SetAdditionalData(value map[string]any)() { func (m *AnswerVariant) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDescription sets the description property value. Answer variation description shown on search results page. +// SetDescription sets the description property value. The answer variation description that is shown on the search results page. func (m *AnswerVariant) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Answer variation name displayed in search results. +// SetDisplayName sets the displayName property value. The answer variation name that is displayed in search results. func (m *AnswerVariant) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetLanguageTag sets the languageTag property value. The languageTag property +// SetLanguageTag sets the languageTag property value. The country or region that can view this answer variation. func (m *AnswerVariant) SetLanguageTag(value *string)() { err := m.GetBackingStore().Set("languageTag", value) if err != nil { @@ -265,14 +265,14 @@ func (m *AnswerVariant) SetOdataType(value *string)() { panic(err) } } -// SetPlatform sets the platform property value. The platform property +// SetPlatform sets the platform property value. The device or operating system that can view this answer variation. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. func (m *AnswerVariant) SetPlatform(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType)() { err := m.GetBackingStore().Set("platform", value) if err != nil { panic(err) } } -// SetWebUrl sets the webUrl property value. Answer variation URL link. When users click this answer variation in search results, they will go to this URL. +// SetWebUrl sets the webUrl property value. The URL link for the answer variation. When users select this answer variation from the search results, they're directed to the specified URL. func (m *AnswerVariant) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) if err != nil { diff --git a/models/search/bookmark.go b/models/search/bookmark.go index 02e4e3a9e82..1fe4f459577 100644 --- a/models/search/bookmark.go +++ b/models/search/bookmark.go @@ -21,7 +21,7 @@ func NewBookmark()(*Bookmark) { func CreateBookmarkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewBookmark(), nil } -// GetAvailabilityEndDateTime gets the availabilityEndDateTime property value. Timestamp of when the bookmark will stop to appear as a search result. Set as null for always available. +// GetAvailabilityEndDateTime gets the availabilityEndDateTime property value. Date and time when the bookmark stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *Bookmark) GetAvailabilityEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("availabilityEndDateTime") @@ -33,7 +33,7 @@ func (m *Bookmark) GetAvailabilityEndDateTime()(*i336074805fc853987abe6f7fe3ad97 } return nil } -// GetAvailabilityStartDateTime gets the availabilityStartDateTime property value. Timestamp of when the bookmark will start to appear as a search result. Set as null for always available. +// GetAvailabilityStartDateTime gets the availabilityStartDateTime property value. Date and time when the bookmark starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *Bookmark) GetAvailabilityStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("availabilityStartDateTime") @@ -209,7 +209,7 @@ func (m *Bookmark) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetGroupIds gets the groupIds property value. List of security groups able to view this bookmark. +// GetGroupIds gets the groupIds property value. The list of security groups that are able to view this bookmark. // returns a []string when successful func (m *Bookmark) GetGroupIds()([]string) { val, err := m.GetBackingStore().Get("groupIds") @@ -221,7 +221,7 @@ func (m *Bookmark) GetGroupIds()([]string) { } return nil } -// GetIsSuggested gets the isSuggested property value. True if this bookmark was suggested to the admin by a user or was mined and suggested by Microsoft. Read-only. +// GetIsSuggested gets the isSuggested property value. True if this bookmark was suggested to the admin, by a user, or was mined and suggested by Microsoft. Read-only. // returns a *bool when successful func (m *Bookmark) GetIsSuggested()(*bool) { val, err := m.GetBackingStore().Get("isSuggested") @@ -245,7 +245,7 @@ func (m *Bookmark) GetKeywords()(AnswerKeywordable) { } return nil } -// GetLanguageTags gets the languageTags property value. A list of language names that are geographically specific and that this bookmark can be viewed in. Each language tag value follows the pattern {language}-{region}. As an example, en-us is English as used in the United States. See supported language tags for the list of possible values. +// GetLanguageTags gets the languageTags property value. A list of geographically specific language names in which this bookmark can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. // returns a []string when successful func (m *Bookmark) GetLanguageTags()([]string) { val, err := m.GetBackingStore().Get("languageTags") @@ -257,7 +257,7 @@ func (m *Bookmark) GetLanguageTags()([]string) { } return nil } -// GetPlatforms gets the platforms property value. List of devices and operating systems able to view this bookmark. Possible values are: unknown, android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, androidASOP. +// GetPlatforms gets the platforms property value. List of devices and operating systems that are able to view this bookmark. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. // returns a []DevicePlatformType when successful func (m *Bookmark) GetPlatforms()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType) { val, err := m.GetBackingStore().Get("platforms") @@ -269,7 +269,7 @@ func (m *Bookmark) GetPlatforms()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9 } return nil } -// GetPowerAppIds gets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks, such as to enter vacation time or to report expenses on the search results page. +// GetPowerAppIds gets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks directly on the search results page, such as entering vacation time or reporting expenses. // returns a []string when successful func (m *Bookmark) GetPowerAppIds()([]string) { val, err := m.GetBackingStore().Get("powerAppIds") @@ -293,7 +293,7 @@ func (m *Bookmark) GetState()(*AnswerState) { } return nil } -// GetTargetedVariations gets the targetedVariations property value. Variations of a bookmark for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings will apply to all variations. +// GetTargetedVariations gets the targetedVariations property value. Variations of a bookmark for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. // returns a []AnswerVariantable when successful func (m *Bookmark) GetTargetedVariations()([]AnswerVariantable) { val, err := m.GetBackingStore().Get("targetedVariations") @@ -386,14 +386,14 @@ func (m *Bookmark) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } return nil } -// SetAvailabilityEndDateTime sets the availabilityEndDateTime property value. Timestamp of when the bookmark will stop to appear as a search result. Set as null for always available. +// SetAvailabilityEndDateTime sets the availabilityEndDateTime property value. Date and time when the bookmark stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *Bookmark) SetAvailabilityEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("availabilityEndDateTime", value) if err != nil { panic(err) } } -// SetAvailabilityStartDateTime sets the availabilityStartDateTime property value. Timestamp of when the bookmark will start to appear as a search result. Set as null for always available. +// SetAvailabilityStartDateTime sets the availabilityStartDateTime property value. Date and time when the bookmark starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *Bookmark) SetAvailabilityStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("availabilityStartDateTime", value) if err != nil { @@ -407,14 +407,14 @@ func (m *Bookmark) SetCategories(value []string)() { panic(err) } } -// SetGroupIds sets the groupIds property value. List of security groups able to view this bookmark. +// SetGroupIds sets the groupIds property value. The list of security groups that are able to view this bookmark. func (m *Bookmark) SetGroupIds(value []string)() { err := m.GetBackingStore().Set("groupIds", value) if err != nil { panic(err) } } -// SetIsSuggested sets the isSuggested property value. True if this bookmark was suggested to the admin by a user or was mined and suggested by Microsoft. Read-only. +// SetIsSuggested sets the isSuggested property value. True if this bookmark was suggested to the admin, by a user, or was mined and suggested by Microsoft. Read-only. func (m *Bookmark) SetIsSuggested(value *bool)() { err := m.GetBackingStore().Set("isSuggested", value) if err != nil { @@ -428,21 +428,21 @@ func (m *Bookmark) SetKeywords(value AnswerKeywordable)() { panic(err) } } -// SetLanguageTags sets the languageTags property value. A list of language names that are geographically specific and that this bookmark can be viewed in. Each language tag value follows the pattern {language}-{region}. As an example, en-us is English as used in the United States. See supported language tags for the list of possible values. +// SetLanguageTags sets the languageTags property value. A list of geographically specific language names in which this bookmark can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. func (m *Bookmark) SetLanguageTags(value []string)() { err := m.GetBackingStore().Set("languageTags", value) if err != nil { panic(err) } } -// SetPlatforms sets the platforms property value. List of devices and operating systems able to view this bookmark. Possible values are: unknown, android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, androidASOP. +// SetPlatforms sets the platforms property value. List of devices and operating systems that are able to view this bookmark. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. func (m *Bookmark) SetPlatforms(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType)() { err := m.GetBackingStore().Set("platforms", value) if err != nil { panic(err) } } -// SetPowerAppIds sets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks, such as to enter vacation time or to report expenses on the search results page. +// SetPowerAppIds sets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks directly on the search results page, such as entering vacation time or reporting expenses. func (m *Bookmark) SetPowerAppIds(value []string)() { err := m.GetBackingStore().Set("powerAppIds", value) if err != nil { @@ -456,7 +456,7 @@ func (m *Bookmark) SetState(value *AnswerState)() { panic(err) } } -// SetTargetedVariations sets the targetedVariations property value. Variations of a bookmark for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings will apply to all variations. +// SetTargetedVariations sets the targetedVariations property value. Variations of a bookmark for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. func (m *Bookmark) SetTargetedVariations(value []AnswerVariantable)() { err := m.GetBackingStore().Set("targetedVariations", value) if err != nil { diff --git a/models/search/qna.go b/models/search/qna.go index f3aaf8627dc..13579fb1612 100644 --- a/models/search/qna.go +++ b/models/search/qna.go @@ -21,7 +21,7 @@ func NewQna()(*Qna) { func CreateQnaFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewQna(), nil } -// GetAvailabilityEndDateTime gets the availabilityEndDateTime property value. Timestamp of when the qna stops to appear as a search result. Set as null for always available. +// GetAvailabilityEndDateTime gets the availabilityEndDateTime property value. Date and time when the QnA stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *Qna) GetAvailabilityEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("availabilityEndDateTime") @@ -33,7 +33,7 @@ func (m *Qna) GetAvailabilityEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f } return nil } -// GetAvailabilityStartDateTime gets the availabilityStartDateTime property value. Timestamp of when the qna starts to appear as a search result. Set as null for always available. +// GetAvailabilityStartDateTime gets the availabilityStartDateTime property value. Date and time when the QnA starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *Qna) GetAvailabilityStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("availabilityStartDateTime") @@ -165,7 +165,7 @@ func (m *Qna) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 } return res } -// GetGroupIds gets the groupIds property value. List of security groups able to view this qna. +// GetGroupIds gets the groupIds property value. The list of security groups that are able to view this QnA. // returns a []string when successful func (m *Qna) GetGroupIds()([]string) { val, err := m.GetBackingStore().Get("groupIds") @@ -177,7 +177,7 @@ func (m *Qna) GetGroupIds()([]string) { } return nil } -// GetIsSuggested gets the isSuggested property value. True if a user or Microsoft suggested this qna to the admin. Read-only. +// GetIsSuggested gets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only. // returns a *bool when successful func (m *Qna) GetIsSuggested()(*bool) { val, err := m.GetBackingStore().Get("isSuggested") @@ -189,7 +189,7 @@ func (m *Qna) GetIsSuggested()(*bool) { } return nil } -// GetKeywords gets the keywords property value. Keywords that trigger this qna to appear in search results. +// GetKeywords gets the keywords property value. Keywords that trigger this QnA to appear in search results. // returns a AnswerKeywordable when successful func (m *Qna) GetKeywords()(AnswerKeywordable) { val, err := m.GetBackingStore().Get("keywords") @@ -201,7 +201,7 @@ func (m *Qna) GetKeywords()(AnswerKeywordable) { } return nil } -// GetLanguageTags gets the languageTags property value. A list of language names that are geographically specific and that this QnA can be viewed in. Each language tag value follows the pattern {language}-{region}. As an example, en-us is English as used in the United States. For the list of possible values, see supported language tags. +// GetLanguageTags gets the languageTags property value. A list of geographically specific language names in which this QnA can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. // returns a []string when successful func (m *Qna) GetLanguageTags()([]string) { val, err := m.GetBackingStore().Get("languageTags") @@ -213,7 +213,7 @@ func (m *Qna) GetLanguageTags()([]string) { } return nil } -// GetPlatforms gets the platforms property value. List of devices and operating systems able to view this qna. Possible values are: unknown, android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, androidASOP. +// GetPlatforms gets the platforms property value. List of devices and operating systems that are able to view this QnA. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. // returns a []DevicePlatformType when successful func (m *Qna) GetPlatforms()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType) { val, err := m.GetBackingStore().Get("platforms") @@ -237,7 +237,7 @@ func (m *Qna) GetState()(*AnswerState) { } return nil } -// GetTargetedVariations gets the targetedVariations property value. Variations of a qna for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. +// GetTargetedVariations gets the targetedVariations property value. Variations of a QnA for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. // returns a []AnswerVariantable when successful func (m *Qna) GetTargetedVariations()([]AnswerVariantable) { val, err := m.GetBackingStore().Get("targetedVariations") @@ -318,49 +318,49 @@ func (m *Qna) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493 } return nil } -// SetAvailabilityEndDateTime sets the availabilityEndDateTime property value. Timestamp of when the qna stops to appear as a search result. Set as null for always available. +// SetAvailabilityEndDateTime sets the availabilityEndDateTime property value. Date and time when the QnA stops appearing as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *Qna) SetAvailabilityEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("availabilityEndDateTime", value) if err != nil { panic(err) } } -// SetAvailabilityStartDateTime sets the availabilityStartDateTime property value. Timestamp of when the qna starts to appear as a search result. Set as null for always available. +// SetAvailabilityStartDateTime sets the availabilityStartDateTime property value. Date and time when the QnA starts to appear as a search result. Set as null for always available. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *Qna) SetAvailabilityStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("availabilityStartDateTime", value) if err != nil { panic(err) } } -// SetGroupIds sets the groupIds property value. List of security groups able to view this qna. +// SetGroupIds sets the groupIds property value. The list of security groups that are able to view this QnA. func (m *Qna) SetGroupIds(value []string)() { err := m.GetBackingStore().Set("groupIds", value) if err != nil { panic(err) } } -// SetIsSuggested sets the isSuggested property value. True if a user or Microsoft suggested this qna to the admin. Read-only. +// SetIsSuggested sets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only. func (m *Qna) SetIsSuggested(value *bool)() { err := m.GetBackingStore().Set("isSuggested", value) if err != nil { panic(err) } } -// SetKeywords sets the keywords property value. Keywords that trigger this qna to appear in search results. +// SetKeywords sets the keywords property value. Keywords that trigger this QnA to appear in search results. func (m *Qna) SetKeywords(value AnswerKeywordable)() { err := m.GetBackingStore().Set("keywords", value) if err != nil { panic(err) } } -// SetLanguageTags sets the languageTags property value. A list of language names that are geographically specific and that this QnA can be viewed in. Each language tag value follows the pattern {language}-{region}. As an example, en-us is English as used in the United States. For the list of possible values, see supported language tags. +// SetLanguageTags sets the languageTags property value. A list of geographically specific language names in which this QnA can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags. func (m *Qna) SetLanguageTags(value []string)() { err := m.GetBackingStore().Set("languageTags", value) if err != nil { panic(err) } } -// SetPlatforms sets the platforms property value. List of devices and operating systems able to view this qna. Possible values are: unknown, android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, androidASOP. +// SetPlatforms sets the platforms property value. List of devices and operating systems that are able to view this QnA. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue. func (m *Qna) SetPlatforms(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType)() { err := m.GetBackingStore().Set("platforms", value) if err != nil { @@ -374,7 +374,7 @@ func (m *Qna) SetState(value *AnswerState)() { panic(err) } } -// SetTargetedVariations sets the targetedVariations property value. Variations of a qna for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. +// SetTargetedVariations sets the targetedVariations property value. Variations of a QnA for different countries or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations. func (m *Qna) SetTargetedVariations(value []AnswerVariantable)() { err := m.GetBackingStore().Set("targetedVariations", value) if err != nil { diff --git a/models/search/search_answer.go b/models/search/search_answer.go index 29f0f245a87..8dde5fd2f89 100644 --- a/models/search/search_answer.go +++ b/models/search/search_answer.go @@ -43,7 +43,7 @@ func CreateSearchAnswerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 } return NewSearchAnswer(), nil } -// GetDescription gets the description property value. Search answer description shown on search results page. +// GetDescription gets the description property value. The search answer description that is shown on the search results page. // returns a *string when successful func (m *SearchAnswer) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -55,7 +55,7 @@ func (m *SearchAnswer) GetDescription()(*string) { } return nil } -// GetDisplayName gets the displayName property value. Search answer name displayed in search results. +// GetDisplayName gets the displayName property value. The search answer name that is displayed in search results. // returns a *string when successful func (m *SearchAnswer) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -123,7 +123,7 @@ func (m *SearchAnswer) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetLastModifiedBy gets the lastModifiedBy property value. Details of the user that created or last modified the search answer. Read-only. +// GetLastModifiedBy gets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only. // returns a IdentitySetable when successful func (m *SearchAnswer) GetLastModifiedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("lastModifiedBy") @@ -135,7 +135,7 @@ func (m *SearchAnswer) GetLastModifiedBy()(IdentitySetable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Timestamp of when the search answer is created or edited. Read-only. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Date and time when the search answer was created or last edited. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *SearchAnswer) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -147,7 +147,7 @@ func (m *SearchAnswer) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad9 } return nil } -// GetWebUrl gets the webUrl property value. Search answer URL link. When users click this search answer in search results, they'll go to this URL. +// GetWebUrl gets the webUrl property value. The URL link for the search answer. When users select this search answer from the search results, they're directed to the specified URL. // returns a *string when successful func (m *SearchAnswer) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") @@ -197,35 +197,35 @@ func (m *SearchAnswer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetDescription sets the description property value. Search answer description shown on search results page. +// SetDescription sets the description property value. The search answer description that is shown on the search results page. func (m *SearchAnswer) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Search answer name displayed in search results. +// SetDisplayName sets the displayName property value. The search answer name that is displayed in search results. func (m *SearchAnswer) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetLastModifiedBy sets the lastModifiedBy property value. Details of the user that created or last modified the search answer. Read-only. +// SetLastModifiedBy sets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only. func (m *SearchAnswer) SetLastModifiedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("lastModifiedBy", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Timestamp of when the search answer is created or edited. Read-only. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Date and time when the search answer was created or last edited. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *SearchAnswer) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetWebUrl sets the webUrl property value. Search answer URL link. When users click this search answer in search results, they'll go to this URL. +// SetWebUrl sets the webUrl property value. The URL link for the search answer. When users select this search answer from the search results, they're directed to the specified URL. func (m *SearchAnswer) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) if err != nil { diff --git a/models/security/alert.go b/models/security/alert.go index 28ea8e7f499..5e13364d88b 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -33,6 +33,18 @@ func (m *Alert) GetActorDisplayName()(*string) { } return nil } +// GetAdditionalDataProperty gets the additionalData property value. A collection of other alert properties, including user-defined properties. Any custom details defined in the alert, and any dynamic content in the alert details, are stored here. +// returns a Dictionaryable when successful +func (m *Alert) GetAdditionalDataProperty()(Dictionaryable) { + val, err := m.GetBackingStore().Get("additionalDataProperty") + if err != nil { + panic(err) + } + if val != nil { + return val.(Dictionaryable) + } + return nil +} // GetAlertPolicyId gets the alertPolicyId property value. The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. // returns a *string when successful func (m *Alert) GetAlertPolicyId()(*string) { @@ -191,6 +203,16 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["additionalData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateDictionaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAdditionalDataProperty(val.(Dictionaryable)) + } + return nil + } res["alertPolicyId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -745,6 +767,12 @@ func (m *Alert) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err = writer.WriteObjectValue("additionalData", m.GetAdditionalDataProperty()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("alertPolicyId", m.GetAlertPolicyId()) if err != nil { @@ -952,6 +980,13 @@ func (m *Alert) SetActorDisplayName(value *string)() { panic(err) } } +// SetAdditionalDataProperty sets the additionalData property value. A collection of other alert properties, including user-defined properties. Any custom details defined in the alert, and any dynamic content in the alert details, are stored here. +func (m *Alert) SetAdditionalDataProperty(value Dictionaryable)() { + err := m.GetBackingStore().Set("additionalDataProperty", value) + if err != nil { + panic(err) + } +} // SetAlertPolicyId sets the alertPolicyId property value. The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. func (m *Alert) SetAlertPolicyId(value *string)() { err := m.GetBackingStore().Set("alertPolicyId", value) @@ -1166,6 +1201,7 @@ type Alertable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActorDisplayName()(*string) + GetAdditionalDataProperty()(Dictionaryable) GetAlertPolicyId()(*string) GetAlertWebUrl()(*string) GetAssignedTo()(*string) @@ -1197,6 +1233,7 @@ type Alertable interface { GetThreatFamilyName()(*string) GetTitle()(*string) SetActorDisplayName(value *string)() + SetAdditionalDataProperty(value Dictionaryable)() SetAlertPolicyId(value *string)() SetAlertWebUrl(value *string)() SetAssignedTo(value *string)() diff --git a/models/security/alert_evidence.go b/models/security/alert_evidence.go index dab70525a4a..8f3992b278c 100644 --- a/models/security/alert_evidence.go +++ b/models/security/alert_evidence.go @@ -87,6 +87,8 @@ func CreateAlertEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewKubernetesServiceAccountEvidence(), nil case "#microsoft.graph.security.kubernetesServiceEvidence": return NewKubernetesServiceEvidence(), nil + case "#microsoft.graph.security.mailboxConfigurationEvidence": + return NewMailboxConfigurationEvidence(), nil case "#microsoft.graph.security.mailboxEvidence": return NewMailboxEvidence(), nil case "#microsoft.graph.security.mailClusterEvidence": diff --git a/models/security/analyzed_email.go b/models/security/analyzed_email.go index 8a5a89da881..11c8f0bd29a 100644 --- a/models/security/analyzed_email.go +++ b/models/security/analyzed_email.go @@ -21,7 +21,7 @@ func NewAnalyzedEmail()(*AnalyzedEmail) { func CreateAnalyzedEmailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAnalyzedEmail(), nil } -// GetAlertIds gets the alertIds property value. The alertIds property +// GetAlertIds gets the alertIds property value. A collection of values that contain the IDs of any alerts associated with the email. // returns a []string when successful func (m *AnalyzedEmail) GetAlertIds()([]string) { val, err := m.GetBackingStore().Get("alertIds") @@ -33,7 +33,7 @@ func (m *AnalyzedEmail) GetAlertIds()([]string) { } return nil } -// GetAttachments gets the attachments property value. The attachments property +// GetAttachments gets the attachments property value. A collection of the attachments in the email. // returns a []AnalyzedEmailAttachmentable when successful func (m *AnalyzedEmail) GetAttachments()([]AnalyzedEmailAttachmentable) { val, err := m.GetBackingStore().Get("attachments") @@ -45,7 +45,7 @@ func (m *AnalyzedEmail) GetAttachments()([]AnalyzedEmailAttachmentable) { } return nil } -// GetAttachmentsCount gets the attachmentsCount property value. The attachmentsCount property +// GetAttachmentsCount gets the attachmentsCount property value. The number of attachments in the email. // returns a *int32 when successful func (m *AnalyzedEmail) GetAttachmentsCount()(*int32) { val, err := m.GetBackingStore().Get("attachmentsCount") @@ -57,7 +57,7 @@ func (m *AnalyzedEmail) GetAttachmentsCount()(*int32) { } return nil } -// GetAuthenticationDetails gets the authenticationDetails property value. The authenticationDetails property +// GetAuthenticationDetails gets the authenticationDetails property value. The authentication details associated with the email. // returns a AnalyzedEmailAuthenticationDetailable when successful func (m *AnalyzedEmail) GetAuthenticationDetails()(AnalyzedEmailAuthenticationDetailable) { val, err := m.GetBackingStore().Get("authenticationDetails") @@ -69,7 +69,7 @@ func (m *AnalyzedEmail) GetAuthenticationDetails()(AnalyzedEmailAuthenticationDe } return nil } -// GetBulkComplaintLevel gets the bulkComplaintLevel property value. The bulkComplaintLevel property +// GetBulkComplaintLevel gets the bulkComplaintLevel property value. The bulk complaint level of the email. A higher level is more likely to be spam. // returns a *string when successful func (m *AnalyzedEmail) GetBulkComplaintLevel()(*string) { val, err := m.GetBackingStore().Get("bulkComplaintLevel") @@ -81,7 +81,7 @@ func (m *AnalyzedEmail) GetBulkComplaintLevel()(*string) { } return nil } -// GetContexts gets the contexts property value. The contexts property +// GetContexts gets the contexts property value. Provides context of the email. // returns a []string when successful func (m *AnalyzedEmail) GetContexts()([]string) { val, err := m.GetBackingStore().Get("contexts") @@ -93,7 +93,7 @@ func (m *AnalyzedEmail) GetContexts()([]string) { } return nil } -// GetDetectionMethods gets the detectionMethods property value. The detectionMethods property +// GetDetectionMethods gets the detectionMethods property value. The methods of detection used. // returns a []string when successful func (m *AnalyzedEmail) GetDetectionMethods()([]string) { val, err := m.GetBackingStore().Get("detectionMethods") @@ -105,7 +105,7 @@ func (m *AnalyzedEmail) GetDetectionMethods()([]string) { } return nil } -// GetDirectionality gets the directionality property value. The directionality property +// GetDirectionality gets the directionality property value. The direction of the emails. The possible values are: unknown, inbound, outbound, intraOrg, unknownFutureValue. // returns a *AntispamDirectionality when successful func (m *AnalyzedEmail) GetDirectionality()(*AntispamDirectionality) { val, err := m.GetBackingStore().Get("directionality") @@ -117,7 +117,7 @@ func (m *AnalyzedEmail) GetDirectionality()(*AntispamDirectionality) { } return nil } -// GetDistributionList gets the distributionList property value. The distributionList property +// GetDistributionList gets the distributionList property value. The distribution list details to which the email was sent. // returns a *string when successful func (m *AnalyzedEmail) GetDistributionList()(*string) { val, err := m.GetBackingStore().Get("distributionList") @@ -129,7 +129,7 @@ func (m *AnalyzedEmail) GetDistributionList()(*string) { } return nil } -// GetEmailClusterId gets the emailClusterId property value. The emailClusterId property +// GetEmailClusterId gets the emailClusterId property value. The identifier for the group of similar emails clustered based on heuristic analysis of their content. // returns a *string when successful func (m *AnalyzedEmail) GetEmailClusterId()(*string) { val, err := m.GetBackingStore().Get("emailClusterId") @@ -141,7 +141,7 @@ func (m *AnalyzedEmail) GetEmailClusterId()(*string) { } return nil } -// GetExchangeTransportRules gets the exchangeTransportRules property value. The exchangeTransportRules property +// GetExchangeTransportRules gets the exchangeTransportRules property value. The name of the Exchange transport rules (ETRs) associated with the email. // returns a []AnalyzedEmailExchangeTransportRuleInfoable when successful func (m *AnalyzedEmail) GetExchangeTransportRules()([]AnalyzedEmailExchangeTransportRuleInfoable) { val, err := m.GetBackingStore().Get("exchangeTransportRules") @@ -507,7 +507,7 @@ func (m *AnalyzedEmail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetInternetMessageId gets the internetMessageId property value. The internetMessageId property +// GetInternetMessageId gets the internetMessageId property value. A public-facing identifier for the email that is sent. The message ID is in the format specified by RFC2822. // returns a *string when successful func (m *AnalyzedEmail) GetInternetMessageId()(*string) { val, err := m.GetBackingStore().Get("internetMessageId") @@ -519,7 +519,7 @@ func (m *AnalyzedEmail) GetInternetMessageId()(*string) { } return nil } -// GetLanguage gets the language property value. The language property +// GetLanguage gets the language property value. The detected language of the email content. // returns a *string when successful func (m *AnalyzedEmail) GetLanguage()(*string) { val, err := m.GetBackingStore().Get("language") @@ -531,7 +531,7 @@ func (m *AnalyzedEmail) GetLanguage()(*string) { } return nil } -// GetLatestDelivery gets the latestDelivery property value. The latestDelivery property +// GetLatestDelivery gets the latestDelivery property value. The latest delivery details of the email. // returns a AnalyzedEmailDeliveryDetailable when successful func (m *AnalyzedEmail) GetLatestDelivery()(AnalyzedEmailDeliveryDetailable) { val, err := m.GetBackingStore().Get("latestDelivery") @@ -543,7 +543,7 @@ func (m *AnalyzedEmail) GetLatestDelivery()(AnalyzedEmailDeliveryDetailable) { } return nil } -// GetLoggedDateTime gets the loggedDateTime property value. The loggedDateTime property +// GetLoggedDateTime gets the loggedDateTime property value. Date-time when the email record was logged. // returns a *Time when successful func (m *AnalyzedEmail) GetLoggedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("loggedDateTime") @@ -555,7 +555,7 @@ func (m *AnalyzedEmail) GetLoggedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6 } return nil } -// GetNetworkMessageId gets the networkMessageId property value. The networkMessageId property +// GetNetworkMessageId gets the networkMessageId property value. An internal identifier for the email generated by Microsoft 365. // returns a *string when successful func (m *AnalyzedEmail) GetNetworkMessageId()(*string) { val, err := m.GetBackingStore().Get("networkMessageId") @@ -567,7 +567,7 @@ func (m *AnalyzedEmail) GetNetworkMessageId()(*string) { } return nil } -// GetOriginalDelivery gets the originalDelivery property value. The originalDelivery property +// GetOriginalDelivery gets the originalDelivery property value. The original delivery details of the email. // returns a AnalyzedEmailDeliveryDetailable when successful func (m *AnalyzedEmail) GetOriginalDelivery()(AnalyzedEmailDeliveryDetailable) { val, err := m.GetBackingStore().Get("originalDelivery") @@ -579,7 +579,7 @@ func (m *AnalyzedEmail) GetOriginalDelivery()(AnalyzedEmailDeliveryDetailable) { } return nil } -// GetOverrideSources gets the overrideSources property value. The overrideSources property +// GetOverrideSources gets the overrideSources property value. An aggregated list of all overrides with source on email. // returns a []string when successful func (m *AnalyzedEmail) GetOverrideSources()([]string) { val, err := m.GetBackingStore().Get("overrideSources") @@ -591,7 +591,7 @@ func (m *AnalyzedEmail) GetOverrideSources()([]string) { } return nil } -// GetPhishConfidenceLevel gets the phishConfidenceLevel property value. The phishConfidenceLevel property +// GetPhishConfidenceLevel gets the phishConfidenceLevel property value. The phish confidence level associated with the email // returns a *string when successful func (m *AnalyzedEmail) GetPhishConfidenceLevel()(*string) { val, err := m.GetBackingStore().Get("phishConfidenceLevel") @@ -603,7 +603,7 @@ func (m *AnalyzedEmail) GetPhishConfidenceLevel()(*string) { } return nil } -// GetPolicy gets the policy property value. The policy property +// GetPolicy gets the policy property value. The action policy that took effect. // returns a *string when successful func (m *AnalyzedEmail) GetPolicy()(*string) { val, err := m.GetBackingStore().Get("policy") @@ -615,7 +615,7 @@ func (m *AnalyzedEmail) GetPolicy()(*string) { } return nil } -// GetPolicyAction gets the policyAction property value. The policyAction property +// GetPolicyAction gets the policyAction property value. The action taken on the email based on the configured policy. // returns a *string when successful func (m *AnalyzedEmail) GetPolicyAction()(*string) { val, err := m.GetBackingStore().Get("policyAction") @@ -627,7 +627,7 @@ func (m *AnalyzedEmail) GetPolicyAction()(*string) { } return nil } -// GetRecipientEmailAddresses gets the recipientEmailAddresses property value. The recipientEmailAddresses property +// GetRecipientEmailAddresses gets the recipientEmailAddresses property value. Contains the email addresses of the recipients. // returns a []string when successful func (m *AnalyzedEmail) GetRecipientEmailAddresses()([]string) { val, err := m.GetBackingStore().Get("recipientEmailAddresses") @@ -639,7 +639,7 @@ func (m *AnalyzedEmail) GetRecipientEmailAddresses()([]string) { } return nil } -// GetReturnPath gets the returnPath property value. The returnPath property +// GetReturnPath gets the returnPath property value. A field that indicates where and how bounced emails are processed. // returns a *string when successful func (m *AnalyzedEmail) GetReturnPath()(*string) { val, err := m.GetBackingStore().Get("returnPath") @@ -651,7 +651,7 @@ func (m *AnalyzedEmail) GetReturnPath()(*string) { } return nil } -// GetSenderDetail gets the senderDetail property value. The senderDetail property +// GetSenderDetail gets the senderDetail property value. Sender details of the email. // returns a AnalyzedEmailSenderDetailable when successful func (m *AnalyzedEmail) GetSenderDetail()(AnalyzedEmailSenderDetailable) { val, err := m.GetBackingStore().Get("senderDetail") @@ -663,7 +663,7 @@ func (m *AnalyzedEmail) GetSenderDetail()(AnalyzedEmailSenderDetailable) { } return nil } -// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// GetSizeInBytes gets the sizeInBytes property value. Size of the email in bytes. // returns a *int32 when successful func (m *AnalyzedEmail) GetSizeInBytes()(*int32) { val, err := m.GetBackingStore().Get("sizeInBytes") @@ -675,7 +675,7 @@ func (m *AnalyzedEmail) GetSizeInBytes()(*int32) { } return nil } -// GetSpamConfidenceLevel gets the spamConfidenceLevel property value. The spamConfidenceLevel property +// GetSpamConfidenceLevel gets the spamConfidenceLevel property value. Spam confidence of the email. // returns a *string when successful func (m *AnalyzedEmail) GetSpamConfidenceLevel()(*string) { val, err := m.GetBackingStore().Get("spamConfidenceLevel") @@ -687,7 +687,7 @@ func (m *AnalyzedEmail) GetSpamConfidenceLevel()(*string) { } return nil } -// GetSubject gets the subject property value. The subject property +// GetSubject gets the subject property value. Subject of the email. // returns a *string when successful func (m *AnalyzedEmail) GetSubject()(*string) { val, err := m.GetBackingStore().Get("subject") @@ -699,7 +699,7 @@ func (m *AnalyzedEmail) GetSubject()(*string) { } return nil } -// GetThreatType gets the threatType property value. The threatType property +// GetThreatType gets the threatType property value. Indicates the threat types. The possible values are: unknown, spam, malware, phishing, none, unknownFutureValue. // returns a *ThreatType when successful func (m *AnalyzedEmail) GetThreatType()(*ThreatType) { val, err := m.GetBackingStore().Get("threatType") @@ -711,7 +711,7 @@ func (m *AnalyzedEmail) GetThreatType()(*ThreatType) { } return nil } -// GetUrls gets the urls property value. The urls property +// GetUrls gets the urls property value. A collection of the URLs in the email. // returns a []AnalyzedEmailUrlable when successful func (m *AnalyzedEmail) GetUrls()([]AnalyzedEmailUrlable) { val, err := m.GetBackingStore().Get("urls") @@ -723,7 +723,7 @@ func (m *AnalyzedEmail) GetUrls()([]AnalyzedEmailUrlable) { } return nil } -// GetUrlsCount gets the urlsCount property value. The urlsCount property +// GetUrlsCount gets the urlsCount property value. The number of URLs in the email. // returns a *int32 when successful func (m *AnalyzedEmail) GetUrlsCount()(*int32) { val, err := m.GetBackingStore().Get("urlsCount") @@ -943,210 +943,210 @@ func (m *AnalyzedEmail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } -// SetAlertIds sets the alertIds property value. The alertIds property +// SetAlertIds sets the alertIds property value. A collection of values that contain the IDs of any alerts associated with the email. func (m *AnalyzedEmail) SetAlertIds(value []string)() { err := m.GetBackingStore().Set("alertIds", value) if err != nil { panic(err) } } -// SetAttachments sets the attachments property value. The attachments property +// SetAttachments sets the attachments property value. A collection of the attachments in the email. func (m *AnalyzedEmail) SetAttachments(value []AnalyzedEmailAttachmentable)() { err := m.GetBackingStore().Set("attachments", value) if err != nil { panic(err) } } -// SetAttachmentsCount sets the attachmentsCount property value. The attachmentsCount property +// SetAttachmentsCount sets the attachmentsCount property value. The number of attachments in the email. func (m *AnalyzedEmail) SetAttachmentsCount(value *int32)() { err := m.GetBackingStore().Set("attachmentsCount", value) if err != nil { panic(err) } } -// SetAuthenticationDetails sets the authenticationDetails property value. The authenticationDetails property +// SetAuthenticationDetails sets the authenticationDetails property value. The authentication details associated with the email. func (m *AnalyzedEmail) SetAuthenticationDetails(value AnalyzedEmailAuthenticationDetailable)() { err := m.GetBackingStore().Set("authenticationDetails", value) if err != nil { panic(err) } } -// SetBulkComplaintLevel sets the bulkComplaintLevel property value. The bulkComplaintLevel property +// SetBulkComplaintLevel sets the bulkComplaintLevel property value. The bulk complaint level of the email. A higher level is more likely to be spam. func (m *AnalyzedEmail) SetBulkComplaintLevel(value *string)() { err := m.GetBackingStore().Set("bulkComplaintLevel", value) if err != nil { panic(err) } } -// SetContexts sets the contexts property value. The contexts property +// SetContexts sets the contexts property value. Provides context of the email. func (m *AnalyzedEmail) SetContexts(value []string)() { err := m.GetBackingStore().Set("contexts", value) if err != nil { panic(err) } } -// SetDetectionMethods sets the detectionMethods property value. The detectionMethods property +// SetDetectionMethods sets the detectionMethods property value. The methods of detection used. func (m *AnalyzedEmail) SetDetectionMethods(value []string)() { err := m.GetBackingStore().Set("detectionMethods", value) if err != nil { panic(err) } } -// SetDirectionality sets the directionality property value. The directionality property +// SetDirectionality sets the directionality property value. The direction of the emails. The possible values are: unknown, inbound, outbound, intraOrg, unknownFutureValue. func (m *AnalyzedEmail) SetDirectionality(value *AntispamDirectionality)() { err := m.GetBackingStore().Set("directionality", value) if err != nil { panic(err) } } -// SetDistributionList sets the distributionList property value. The distributionList property +// SetDistributionList sets the distributionList property value. The distribution list details to which the email was sent. func (m *AnalyzedEmail) SetDistributionList(value *string)() { err := m.GetBackingStore().Set("distributionList", value) if err != nil { panic(err) } } -// SetEmailClusterId sets the emailClusterId property value. The emailClusterId property +// SetEmailClusterId sets the emailClusterId property value. The identifier for the group of similar emails clustered based on heuristic analysis of their content. func (m *AnalyzedEmail) SetEmailClusterId(value *string)() { err := m.GetBackingStore().Set("emailClusterId", value) if err != nil { panic(err) } } -// SetExchangeTransportRules sets the exchangeTransportRules property value. The exchangeTransportRules property +// SetExchangeTransportRules sets the exchangeTransportRules property value. The name of the Exchange transport rules (ETRs) associated with the email. func (m *AnalyzedEmail) SetExchangeTransportRules(value []AnalyzedEmailExchangeTransportRuleInfoable)() { err := m.GetBackingStore().Set("exchangeTransportRules", value) if err != nil { panic(err) } } -// SetInternetMessageId sets the internetMessageId property value. The internetMessageId property +// SetInternetMessageId sets the internetMessageId property value. A public-facing identifier for the email that is sent. The message ID is in the format specified by RFC2822. func (m *AnalyzedEmail) SetInternetMessageId(value *string)() { err := m.GetBackingStore().Set("internetMessageId", value) if err != nil { panic(err) } } -// SetLanguage sets the language property value. The language property +// SetLanguage sets the language property value. The detected language of the email content. func (m *AnalyzedEmail) SetLanguage(value *string)() { err := m.GetBackingStore().Set("language", value) if err != nil { panic(err) } } -// SetLatestDelivery sets the latestDelivery property value. The latestDelivery property +// SetLatestDelivery sets the latestDelivery property value. The latest delivery details of the email. func (m *AnalyzedEmail) SetLatestDelivery(value AnalyzedEmailDeliveryDetailable)() { err := m.GetBackingStore().Set("latestDelivery", value) if err != nil { panic(err) } } -// SetLoggedDateTime sets the loggedDateTime property value. The loggedDateTime property +// SetLoggedDateTime sets the loggedDateTime property value. Date-time when the email record was logged. func (m *AnalyzedEmail) SetLoggedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("loggedDateTime", value) if err != nil { panic(err) } } -// SetNetworkMessageId sets the networkMessageId property value. The networkMessageId property +// SetNetworkMessageId sets the networkMessageId property value. An internal identifier for the email generated by Microsoft 365. func (m *AnalyzedEmail) SetNetworkMessageId(value *string)() { err := m.GetBackingStore().Set("networkMessageId", value) if err != nil { panic(err) } } -// SetOriginalDelivery sets the originalDelivery property value. The originalDelivery property +// SetOriginalDelivery sets the originalDelivery property value. The original delivery details of the email. func (m *AnalyzedEmail) SetOriginalDelivery(value AnalyzedEmailDeliveryDetailable)() { err := m.GetBackingStore().Set("originalDelivery", value) if err != nil { panic(err) } } -// SetOverrideSources sets the overrideSources property value. The overrideSources property +// SetOverrideSources sets the overrideSources property value. An aggregated list of all overrides with source on email. func (m *AnalyzedEmail) SetOverrideSources(value []string)() { err := m.GetBackingStore().Set("overrideSources", value) if err != nil { panic(err) } } -// SetPhishConfidenceLevel sets the phishConfidenceLevel property value. The phishConfidenceLevel property +// SetPhishConfidenceLevel sets the phishConfidenceLevel property value. The phish confidence level associated with the email func (m *AnalyzedEmail) SetPhishConfidenceLevel(value *string)() { err := m.GetBackingStore().Set("phishConfidenceLevel", value) if err != nil { panic(err) } } -// SetPolicy sets the policy property value. The policy property +// SetPolicy sets the policy property value. The action policy that took effect. func (m *AnalyzedEmail) SetPolicy(value *string)() { err := m.GetBackingStore().Set("policy", value) if err != nil { panic(err) } } -// SetPolicyAction sets the policyAction property value. The policyAction property +// SetPolicyAction sets the policyAction property value. The action taken on the email based on the configured policy. func (m *AnalyzedEmail) SetPolicyAction(value *string)() { err := m.GetBackingStore().Set("policyAction", value) if err != nil { panic(err) } } -// SetRecipientEmailAddresses sets the recipientEmailAddresses property value. The recipientEmailAddresses property +// SetRecipientEmailAddresses sets the recipientEmailAddresses property value. Contains the email addresses of the recipients. func (m *AnalyzedEmail) SetRecipientEmailAddresses(value []string)() { err := m.GetBackingStore().Set("recipientEmailAddresses", value) if err != nil { panic(err) } } -// SetReturnPath sets the returnPath property value. The returnPath property +// SetReturnPath sets the returnPath property value. A field that indicates where and how bounced emails are processed. func (m *AnalyzedEmail) SetReturnPath(value *string)() { err := m.GetBackingStore().Set("returnPath", value) if err != nil { panic(err) } } -// SetSenderDetail sets the senderDetail property value. The senderDetail property +// SetSenderDetail sets the senderDetail property value. Sender details of the email. func (m *AnalyzedEmail) SetSenderDetail(value AnalyzedEmailSenderDetailable)() { err := m.GetBackingStore().Set("senderDetail", value) if err != nil { panic(err) } } -// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +// SetSizeInBytes sets the sizeInBytes property value. Size of the email in bytes. func (m *AnalyzedEmail) SetSizeInBytes(value *int32)() { err := m.GetBackingStore().Set("sizeInBytes", value) if err != nil { panic(err) } } -// SetSpamConfidenceLevel sets the spamConfidenceLevel property value. The spamConfidenceLevel property +// SetSpamConfidenceLevel sets the spamConfidenceLevel property value. Spam confidence of the email. func (m *AnalyzedEmail) SetSpamConfidenceLevel(value *string)() { err := m.GetBackingStore().Set("spamConfidenceLevel", value) if err != nil { panic(err) } } -// SetSubject sets the subject property value. The subject property +// SetSubject sets the subject property value. Subject of the email. func (m *AnalyzedEmail) SetSubject(value *string)() { err := m.GetBackingStore().Set("subject", value) if err != nil { panic(err) } } -// SetThreatType sets the threatType property value. The threatType property +// SetThreatType sets the threatType property value. Indicates the threat types. The possible values are: unknown, spam, malware, phishing, none, unknownFutureValue. func (m *AnalyzedEmail) SetThreatType(value *ThreatType)() { err := m.GetBackingStore().Set("threatType", value) if err != nil { panic(err) } } -// SetUrls sets the urls property value. The urls property +// SetUrls sets the urls property value. A collection of the URLs in the email. func (m *AnalyzedEmail) SetUrls(value []AnalyzedEmailUrlable)() { err := m.GetBackingStore().Set("urls", value) if err != nil { panic(err) } } -// SetUrlsCount sets the urlsCount property value. The urlsCount property +// SetUrlsCount sets the urlsCount property value. The number of URLs in the email. func (m *AnalyzedEmail) SetUrlsCount(value *int32)() { err := m.GetBackingStore().Set("urlsCount", value) if err != nil { diff --git a/models/security/analyzed_email_attachment.go b/models/security/analyzed_email_attachment.go index ab747c98011..cdfba36334c 100644 --- a/models/security/analyzed_email_attachment.go +++ b/models/security/analyzed_email_attachment.go @@ -40,7 +40,7 @@ func (m *AnalyzedEmailAttachment) GetAdditionalData()(map[string]any) { func (m *AnalyzedEmailAttachment) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDetonationDetails gets the detonationDetails property value. The detonationDetails property +// GetDetonationDetails gets the detonationDetails property value. The detonation details of the attachment. // returns a DetonationDetailsable when successful func (m *AnalyzedEmailAttachment) GetDetonationDetails()(DetonationDetailsable) { val, err := m.GetBackingStore().Get("detonationDetails") @@ -128,7 +128,7 @@ func (m *AnalyzedEmailAttachment) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetFileName gets the fileName property value. The fileName property +// GetFileName gets the fileName property value. The name of the attachment in the email. // returns a *string when successful func (m *AnalyzedEmailAttachment) GetFileName()(*string) { val, err := m.GetBackingStore().Get("fileName") @@ -140,7 +140,7 @@ func (m *AnalyzedEmailAttachment) GetFileName()(*string) { } return nil } -// GetFileType gets the fileType property value. The fileType property +// GetFileType gets the fileType property value. The type of the attachment in the email. // returns a *string when successful func (m *AnalyzedEmailAttachment) GetFileType()(*string) { val, err := m.GetBackingStore().Get("fileType") @@ -164,7 +164,7 @@ func (m *AnalyzedEmailAttachment) GetOdataType()(*string) { } return nil } -// GetSha256 gets the sha256 property value. The sha256 property +// GetSha256 gets the sha256 property value. The SHA256 file hash of the attachment. // returns a *string when successful func (m *AnalyzedEmailAttachment) GetSha256()(*string) { val, err := m.GetBackingStore().Get("sha256") @@ -176,7 +176,7 @@ func (m *AnalyzedEmailAttachment) GetSha256()(*string) { } return nil } -// GetThreatName gets the threatName property value. The threatName property +// GetThreatName gets the threatName property value. The threat name associated with the threat type. // returns a *string when successful func (m *AnalyzedEmailAttachment) GetThreatName()(*string) { val, err := m.GetBackingStore().Get("threatName") @@ -188,7 +188,7 @@ func (m *AnalyzedEmailAttachment) GetThreatName()(*string) { } return nil } -// GetThreatType gets the threatType property value. The threatType property +// GetThreatType gets the threatType property value. The threat type associated with the attachment. The possible values are: unknown, spam, malware, phishing, none, unknownFutureValue. // returns a *ThreatType when successful func (m *AnalyzedEmailAttachment) GetThreatType()(*ThreatType) { val, err := m.GetBackingStore().Get("threatType") @@ -264,21 +264,21 @@ func (m *AnalyzedEmailAttachment) SetAdditionalData(value map[string]any)() { func (m *AnalyzedEmailAttachment) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDetonationDetails sets the detonationDetails property value. The detonationDetails property +// SetDetonationDetails sets the detonationDetails property value. The detonation details of the attachment. func (m *AnalyzedEmailAttachment) SetDetonationDetails(value DetonationDetailsable)() { err := m.GetBackingStore().Set("detonationDetails", value) if err != nil { panic(err) } } -// SetFileName sets the fileName property value. The fileName property +// SetFileName sets the fileName property value. The name of the attachment in the email. func (m *AnalyzedEmailAttachment) SetFileName(value *string)() { err := m.GetBackingStore().Set("fileName", value) if err != nil { panic(err) } } -// SetFileType sets the fileType property value. The fileType property +// SetFileType sets the fileType property value. The type of the attachment in the email. func (m *AnalyzedEmailAttachment) SetFileType(value *string)() { err := m.GetBackingStore().Set("fileType", value) if err != nil { @@ -292,21 +292,21 @@ func (m *AnalyzedEmailAttachment) SetOdataType(value *string)() { panic(err) } } -// SetSha256 sets the sha256 property value. The sha256 property +// SetSha256 sets the sha256 property value. The SHA256 file hash of the attachment. func (m *AnalyzedEmailAttachment) SetSha256(value *string)() { err := m.GetBackingStore().Set("sha256", value) if err != nil { panic(err) } } -// SetThreatName sets the threatName property value. The threatName property +// SetThreatName sets the threatName property value. The threat name associated with the threat type. func (m *AnalyzedEmailAttachment) SetThreatName(value *string)() { err := m.GetBackingStore().Set("threatName", value) if err != nil { panic(err) } } -// SetThreatType sets the threatType property value. The threatType property +// SetThreatType sets the threatType property value. The threat type associated with the attachment. The possible values are: unknown, spam, malware, phishing, none, unknownFutureValue. func (m *AnalyzedEmailAttachment) SetThreatType(value *ThreatType)() { err := m.GetBackingStore().Set("threatType", value) if err != nil { diff --git a/models/security/analyzed_email_authentication_detail.go b/models/security/analyzed_email_authentication_detail.go index 5ce2d10b7df..75f62560cf7 100644 --- a/models/security/analyzed_email_authentication_detail.go +++ b/models/security/analyzed_email_authentication_detail.go @@ -40,7 +40,7 @@ func (m *AnalyzedEmailAuthenticationDetail) GetAdditionalData()(map[string]any) func (m *AnalyzedEmailAuthenticationDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCompositeAuthentication gets the compositeAuthentication property value. The compositeAuthentication property +// GetCompositeAuthentication gets the compositeAuthentication property value. A value used by Microsoft 365 to combine email authentication such as SPF, DKIM, and DMARC, to determine whether the message is authentic. // returns a *string when successful func (m *AnalyzedEmailAuthenticationDetail) GetCompositeAuthentication()(*string) { val, err := m.GetBackingStore().Get("compositeAuthentication") @@ -52,7 +52,7 @@ func (m *AnalyzedEmailAuthenticationDetail) GetCompositeAuthentication()(*string } return nil } -// GetDkim gets the dkim property value. The dkim property +// GetDkim gets the dkim property value. DomainKeys identified mail (DKIM). Indicates whether it was pass/fail/soft fail. // returns a *string when successful func (m *AnalyzedEmailAuthenticationDetail) GetDkim()(*string) { val, err := m.GetBackingStore().Get("dkim") @@ -64,7 +64,7 @@ func (m *AnalyzedEmailAuthenticationDetail) GetDkim()(*string) { } return nil } -// GetDmarc gets the dmarc property value. The dmarc property +// GetDmarc gets the dmarc property value. Domain-based Message Authentication. Indicates whether it was pass/fail/soft fail. // returns a *string when successful func (m *AnalyzedEmailAuthenticationDetail) GetDmarc()(*string) { val, err := m.GetBackingStore().Get("dmarc") @@ -144,7 +144,7 @@ func (m *AnalyzedEmailAuthenticationDetail) GetOdataType()(*string) { } return nil } -// GetSenderPolicyFramework gets the senderPolicyFramework property value. The senderPolicyFramework property +// GetSenderPolicyFramework gets the senderPolicyFramework property value. Sender Policy Framework (SPF). Indicates whether it was pass/fail/soft fail. // returns a *string when successful func (m *AnalyzedEmailAuthenticationDetail) GetSenderPolicyFramework()(*string) { val, err := m.GetBackingStore().Get("senderPolicyFramework") @@ -207,21 +207,21 @@ func (m *AnalyzedEmailAuthenticationDetail) SetAdditionalData(value map[string]a func (m *AnalyzedEmailAuthenticationDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCompositeAuthentication sets the compositeAuthentication property value. The compositeAuthentication property +// SetCompositeAuthentication sets the compositeAuthentication property value. A value used by Microsoft 365 to combine email authentication such as SPF, DKIM, and DMARC, to determine whether the message is authentic. func (m *AnalyzedEmailAuthenticationDetail) SetCompositeAuthentication(value *string)() { err := m.GetBackingStore().Set("compositeAuthentication", value) if err != nil { panic(err) } } -// SetDkim sets the dkim property value. The dkim property +// SetDkim sets the dkim property value. DomainKeys identified mail (DKIM). Indicates whether it was pass/fail/soft fail. func (m *AnalyzedEmailAuthenticationDetail) SetDkim(value *string)() { err := m.GetBackingStore().Set("dkim", value) if err != nil { panic(err) } } -// SetDmarc sets the dmarc property value. The dmarc property +// SetDmarc sets the dmarc property value. Domain-based Message Authentication. Indicates whether it was pass/fail/soft fail. func (m *AnalyzedEmailAuthenticationDetail) SetDmarc(value *string)() { err := m.GetBackingStore().Set("dmarc", value) if err != nil { @@ -235,7 +235,7 @@ func (m *AnalyzedEmailAuthenticationDetail) SetOdataType(value *string)() { panic(err) } } -// SetSenderPolicyFramework sets the senderPolicyFramework property value. The senderPolicyFramework property +// SetSenderPolicyFramework sets the senderPolicyFramework property value. Sender Policy Framework (SPF). Indicates whether it was pass/fail/soft fail. func (m *AnalyzedEmailAuthenticationDetail) SetSenderPolicyFramework(value *string)() { err := m.GetBackingStore().Set("senderPolicyFramework", value) if err != nil { diff --git a/models/security/analyzed_email_delivery_detail.go b/models/security/analyzed_email_delivery_detail.go index 568c20f2044..334978dc9b3 100644 --- a/models/security/analyzed_email_delivery_detail.go +++ b/models/security/analyzed_email_delivery_detail.go @@ -22,7 +22,7 @@ func NewAnalyzedEmailDeliveryDetail()(*AnalyzedEmailDeliveryDetail) { func CreateAnalyzedEmailDeliveryDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAnalyzedEmailDeliveryDetail(), nil } -// GetAction gets the action property value. The action property +// GetAction gets the action property value. The delivery action of the email. The possible values are: unknown, deliveredToJunk, delivered, blocked, replaced, unknownFutureValue. // returns a *DeliveryAction when successful func (m *AnalyzedEmailDeliveryDetail) GetAction()(*DeliveryAction) { val, err := m.GetBackingStore().Get("action") @@ -88,7 +88,7 @@ func (m *AnalyzedEmailDeliveryDetail) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetLocation gets the location property value. The location property +// GetLocation gets the location property value. The delivery location of the email. The possible values are: unknown, inboxfolder, junkFolder, deletedFolder, quarantine, onpremexternal, failed, dropped, others, unknownFutureValue. // returns a *DeliveryLocation when successful func (m *AnalyzedEmailDeliveryDetail) GetLocation()(*DeliveryLocation) { val, err := m.GetBackingStore().Get("location") @@ -142,7 +142,7 @@ func (m *AnalyzedEmailDeliveryDetail) Serialize(writer i878a80d2330e89d26896388a } return nil } -// SetAction sets the action property value. The action property +// SetAction sets the action property value. The delivery action of the email. The possible values are: unknown, deliveredToJunk, delivered, blocked, replaced, unknownFutureValue. func (m *AnalyzedEmailDeliveryDetail) SetAction(value *DeliveryAction)() { err := m.GetBackingStore().Set("action", value) if err != nil { @@ -160,7 +160,7 @@ func (m *AnalyzedEmailDeliveryDetail) SetAdditionalData(value map[string]any)() func (m *AnalyzedEmailDeliveryDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetLocation sets the location property value. The location property +// SetLocation sets the location property value. The delivery location of the email. The possible values are: unknown, inboxfolder, junkFolder, deletedFolder, quarantine, onpremexternal, failed, dropped, others, unknownFutureValue. func (m *AnalyzedEmailDeliveryDetail) SetLocation(value *DeliveryLocation)() { err := m.GetBackingStore().Set("location", value) if err != nil { diff --git a/models/security/analyzed_email_exchange_transport_rule_info.go b/models/security/analyzed_email_exchange_transport_rule_info.go index 372ddbdc065..bb9771972b7 100644 --- a/models/security/analyzed_email_exchange_transport_rule_info.go +++ b/models/security/analyzed_email_exchange_transport_rule_info.go @@ -76,7 +76,7 @@ func (m *AnalyzedEmailExchangeTransportRuleInfo) GetFieldDeserializers()(map[str } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. Name of the Exchange transport rules (ETRs) that are part of the email. // returns a *string when successful func (m *AnalyzedEmailExchangeTransportRuleInfo) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -100,7 +100,7 @@ func (m *AnalyzedEmailExchangeTransportRuleInfo) GetOdataType()(*string) { } return nil } -// GetRuleId gets the ruleId property value. The ruleId property +// GetRuleId gets the ruleId property value. The ETR rule ID. // returns a *string when successful func (m *AnalyzedEmailExchangeTransportRuleInfo) GetRuleId()(*string) { val, err := m.GetBackingStore().Get("ruleId") @@ -151,7 +151,7 @@ func (m *AnalyzedEmailExchangeTransportRuleInfo) SetAdditionalData(value map[str func (m *AnalyzedEmailExchangeTransportRuleInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetName sets the name property value. The name property +// SetName sets the name property value. Name of the Exchange transport rules (ETRs) that are part of the email. func (m *AnalyzedEmailExchangeTransportRuleInfo) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { @@ -165,7 +165,7 @@ func (m *AnalyzedEmailExchangeTransportRuleInfo) SetOdataType(value *string)() { panic(err) } } -// SetRuleId sets the ruleId property value. The ruleId property +// SetRuleId sets the ruleId property value. The ETR rule ID. func (m *AnalyzedEmailExchangeTransportRuleInfo) SetRuleId(value *string)() { err := m.GetBackingStore().Set("ruleId", value) if err != nil { diff --git a/models/security/analyzed_email_sender_detail.go b/models/security/analyzed_email_sender_detail.go index cccbcd5f367..3191735bcfa 100644 --- a/models/security/analyzed_email_sender_detail.go +++ b/models/security/analyzed_email_sender_detail.go @@ -86,7 +86,7 @@ func (m *AnalyzedEmailSenderDetail) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetFromAddress gets the fromAddress property value. The fromAddress property +// GetFromAddress gets the fromAddress property value. The sender email address in the mail From header, also known as the envelope sender or the P1 sender. // returns a *string when successful func (m *AnalyzedEmailSenderDetail) GetFromAddress()(*string) { val, err := m.GetBackingStore().Get("fromAddress") @@ -98,7 +98,7 @@ func (m *AnalyzedEmailSenderDetail) GetFromAddress()(*string) { } return nil } -// GetIpv4 gets the ipv4 property value. The ipv4 property +// GetIpv4 gets the ipv4 property value. The IPv4 address of the last detected mail server that relayed the message. // returns a *string when successful func (m *AnalyzedEmailSenderDetail) GetIpv4()(*string) { val, err := m.GetBackingStore().Get("ipv4") @@ -110,7 +110,7 @@ func (m *AnalyzedEmailSenderDetail) GetIpv4()(*string) { } return nil } -// GetMailFromAddress gets the mailFromAddress property value. The mailFromAddress property +// GetMailFromAddress gets the mailFromAddress property value. The sender email address in the From header, which is visible to email recipients on their email clients. Also known as P2 sender. // returns a *string when successful func (m *AnalyzedEmailSenderDetail) GetMailFromAddress()(*string) { val, err := m.GetBackingStore().Get("mailFromAddress") @@ -179,21 +179,21 @@ func (m *AnalyzedEmailSenderDetail) SetAdditionalData(value map[string]any)() { func (m *AnalyzedEmailSenderDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetFromAddress sets the fromAddress property value. The fromAddress property +// SetFromAddress sets the fromAddress property value. The sender email address in the mail From header, also known as the envelope sender or the P1 sender. func (m *AnalyzedEmailSenderDetail) SetFromAddress(value *string)() { err := m.GetBackingStore().Set("fromAddress", value) if err != nil { panic(err) } } -// SetIpv4 sets the ipv4 property value. The ipv4 property +// SetIpv4 sets the ipv4 property value. The IPv4 address of the last detected mail server that relayed the message. func (m *AnalyzedEmailSenderDetail) SetIpv4(value *string)() { err := m.GetBackingStore().Set("ipv4", value) if err != nil { panic(err) } } -// SetMailFromAddress sets the mailFromAddress property value. The mailFromAddress property +// SetMailFromAddress sets the mailFromAddress property value. The sender email address in the From header, which is visible to email recipients on their email clients. Also known as P2 sender. func (m *AnalyzedEmailSenderDetail) SetMailFromAddress(value *string)() { err := m.GetBackingStore().Set("mailFromAddress", value) if err != nil { diff --git a/models/security/analyzed_email_url.go b/models/security/analyzed_email_url.go index 341186a2d51..fedfa79340d 100644 --- a/models/security/analyzed_email_url.go +++ b/models/security/analyzed_email_url.go @@ -40,7 +40,7 @@ func (m *AnalyzedEmailUrl) GetAdditionalData()(map[string]any) { func (m *AnalyzedEmailUrl) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDetectionMethod gets the detectionMethod property value. The detectionMethod property +// GetDetectionMethod gets the detectionMethod property value. The method used to detect threats in the URL. // returns a *string when successful func (m *AnalyzedEmailUrl) GetDetectionMethod()(*string) { val, err := m.GetBackingStore().Get("detectionMethod") @@ -52,7 +52,7 @@ func (m *AnalyzedEmailUrl) GetDetectionMethod()(*string) { } return nil } -// GetDetonationDetails gets the detonationDetails property value. The detonationDetails property +// GetDetonationDetails gets the detonationDetails property value. Detonation data associated with the URL. // returns a DetonationDetailsable when successful func (m *AnalyzedEmailUrl) GetDetonationDetails()(DetonationDetailsable) { val, err := m.GetBackingStore().Get("detonationDetails") @@ -132,7 +132,7 @@ func (m *AnalyzedEmailUrl) GetOdataType()(*string) { } return nil } -// GetThreatType gets the threatType property value. The threatType property +// GetThreatType gets the threatType property value. The type of threat associated with the URL. The possible values are: unknown, spam, malware, phishing, none, unknownFutureValue. // returns a *ThreatType when successful func (m *AnalyzedEmailUrl) GetThreatType()(*ThreatType) { val, err := m.GetBackingStore().Get("threatType") @@ -144,7 +144,7 @@ func (m *AnalyzedEmailUrl) GetThreatType()(*ThreatType) { } return nil } -// GetUrl gets the url property value. The url property +// GetUrl gets the url property value. The URL that is found in the email. This is full URL string, including query parameters. // returns a *string when successful func (m *AnalyzedEmailUrl) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") @@ -208,14 +208,14 @@ func (m *AnalyzedEmailUrl) SetAdditionalData(value map[string]any)() { func (m *AnalyzedEmailUrl) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDetectionMethod sets the detectionMethod property value. The detectionMethod property +// SetDetectionMethod sets the detectionMethod property value. The method used to detect threats in the URL. func (m *AnalyzedEmailUrl) SetDetectionMethod(value *string)() { err := m.GetBackingStore().Set("detectionMethod", value) if err != nil { panic(err) } } -// SetDetonationDetails sets the detonationDetails property value. The detonationDetails property +// SetDetonationDetails sets the detonationDetails property value. Detonation data associated with the URL. func (m *AnalyzedEmailUrl) SetDetonationDetails(value DetonationDetailsable)() { err := m.GetBackingStore().Set("detonationDetails", value) if err != nil { @@ -229,14 +229,14 @@ func (m *AnalyzedEmailUrl) SetOdataType(value *string)() { panic(err) } } -// SetThreatType sets the threatType property value. The threatType property +// SetThreatType sets the threatType property value. The type of threat associated with the URL. The possible values are: unknown, spam, malware, phishing, none, unknownFutureValue. func (m *AnalyzedEmailUrl) SetThreatType(value *ThreatType)() { err := m.GetBackingStore().Set("threatType", value) if err != nil { panic(err) } } -// SetUrl sets the url property value. The url property +// SetUrl sets the url property value. The URL that is found in the email. This is full URL string, including query parameters. func (m *AnalyzedEmailUrl) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) if err != nil { diff --git a/models/security/cloud_application_evidence.go b/models/security/cloud_application_evidence.go index 3bbd581ee43..4bdfb825e65 100644 --- a/models/security/cloud_application_evidence.go +++ b/models/security/cloud_application_evidence.go @@ -99,6 +99,16 @@ func (m *CloudApplicationEvidence) GetFieldDeserializers()(map[string]func(i878a } return nil } + res["stream"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateStreamFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStream(val.(Streamable)) + } + return nil + } return res } // GetInstanceId gets the instanceId property value. Identifier of the instance of the Software as a Service (SaaS) application. @@ -137,6 +147,18 @@ func (m *CloudApplicationEvidence) GetSaasAppId()(*int64) { } return nil } +// GetStream gets the stream property value. The stream property +// returns a Streamable when successful +func (m *CloudApplicationEvidence) GetStream()(Streamable) { + val, err := m.GetBackingStore().Get("stream") + if err != nil { + panic(err) + } + if val != nil { + return val.(Streamable) + } + return nil +} // Serialize serializes information the current object func (m *CloudApplicationEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AlertEvidence.Serialize(writer) @@ -173,6 +195,12 @@ func (m *CloudApplicationEvidence) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteObjectValue("stream", m.GetStream()) + if err != nil { + return err + } + } return nil } // SetAppId sets the appId property value. Unique identifier of the application. @@ -210,6 +238,13 @@ func (m *CloudApplicationEvidence) SetSaasAppId(value *int64)() { panic(err) } } +// SetStream sets the stream property value. The stream property +func (m *CloudApplicationEvidence) SetStream(value Streamable)() { + err := m.GetBackingStore().Set("stream", value) + if err != nil { + panic(err) + } +} type CloudApplicationEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -218,9 +253,11 @@ type CloudApplicationEvidenceable interface { GetInstanceId()(*int64) GetInstanceName()(*string) GetSaasAppId()(*int64) + GetStream()(Streamable) SetAppId(value *int64)() SetDisplayName(value *string)() SetInstanceId(value *int64)() SetInstanceName(value *string)() SetSaasAppId(value *int64)() + SetStream(value Streamable)() } diff --git a/models/security/collaboration_root.go b/models/security/collaboration_root.go index 7eb5dbce971..cd4dff6e270 100644 --- a/models/security/collaboration_root.go +++ b/models/security/collaboration_root.go @@ -20,7 +20,7 @@ func NewCollaborationRoot()(*CollaborationRoot) { func CreateCollaborationRootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCollaborationRoot(), nil } -// GetAnalyzedEmails gets the analyzedEmails property value. The analyzedEmails property +// GetAnalyzedEmails gets the analyzedEmails property value. Contains metadata for analyzed emails. // returns a []AnalyzedEmailable when successful func (m *CollaborationRoot) GetAnalyzedEmails()([]AnalyzedEmailable) { val, err := m.GetBackingStore().Get("analyzedEmails") @@ -74,7 +74,7 @@ func (m *CollaborationRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetAnalyzedEmails sets the analyzedEmails property value. The analyzedEmails property +// SetAnalyzedEmails sets the analyzedEmails property value. Contains metadata for analyzed emails. func (m *CollaborationRoot) SetAnalyzedEmails(value []AnalyzedEmailable)() { err := m.GetBackingStore().Set("analyzedEmails", value) if err != nil { diff --git a/models/security/detonation_chain.go b/models/security/detonation_chain.go index a991a372319..3fddf2b5525 100644 --- a/models/security/detonation_chain.go +++ b/models/security/detonation_chain.go @@ -40,7 +40,7 @@ func (m *DetonationChain) GetAdditionalData()(map[string]any) { func (m *DetonationChain) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetChildNodes gets the childNodes property value. The childNodes property +// GetChildNodes gets the childNodes property value. A list of all child nodes in the chain. // returns a []DetonationChainable when successful func (m *DetonationChain) GetChildNodes()([]DetonationChainable) { val, err := m.GetBackingStore().Get("childNodes") @@ -106,7 +106,7 @@ func (m *DetonationChain) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. The value property +// GetValue gets the value property value. The value of the chain. // returns a *string when successful func (m *DetonationChain) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") @@ -163,7 +163,7 @@ func (m *DetonationChain) SetAdditionalData(value map[string]any)() { func (m *DetonationChain) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetChildNodes sets the childNodes property value. The childNodes property +// SetChildNodes sets the childNodes property value. A list of all child nodes in the chain. func (m *DetonationChain) SetChildNodes(value []DetonationChainable)() { err := m.GetBackingStore().Set("childNodes", value) if err != nil { @@ -177,7 +177,7 @@ func (m *DetonationChain) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. The value property +// SetValue sets the value property value. The value of the chain. func (m *DetonationChain) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/security/detonation_details.go b/models/security/detonation_details.go index c34da7e8583..21076e725df 100644 --- a/models/security/detonation_details.go +++ b/models/security/detonation_details.go @@ -36,7 +36,7 @@ func (m *DetonationDetails) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAnalysisDateTime gets the analysisDateTime property value. The analysisDateTime property +// GetAnalysisDateTime gets the analysisDateTime property value. The time of detonation. // returns a *Time when successful func (m *DetonationDetails) GetAnalysisDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("analysisDateTime") @@ -53,7 +53,7 @@ func (m *DetonationDetails) GetAnalysisDateTime()(*i336074805fc853987abe6f7fe3ad func (m *DetonationDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDetonationChain gets the detonationChain property value. The detonationChain property +// GetDetonationChain gets the detonationChain property value. The chain of detonation. // returns a DetonationChainable when successful func (m *DetonationDetails) GetDetonationChain()(DetonationChainable) { val, err := m.GetBackingStore().Get("detonationChain") @@ -65,7 +65,7 @@ func (m *DetonationDetails) GetDetonationChain()(DetonationChainable) { } return nil } -// GetDetonationObservables gets the detonationObservables property value. The detonationObservables property +// GetDetonationObservables gets the detonationObservables property value. All observables in the detonation tree. // returns a DetonationObservablesable when successful func (m *DetonationDetails) GetDetonationObservables()(DetonationObservablesable) { val, err := m.GetBackingStore().Get("detonationObservables") @@ -77,7 +77,7 @@ func (m *DetonationDetails) GetDetonationObservables()(DetonationObservablesable } return nil } -// GetDetonationVerdict gets the detonationVerdict property value. The detonationVerdict property +// GetDetonationVerdict gets the detonationVerdict property value. The verdict of the detonation. // returns a *string when successful func (m *DetonationDetails) GetDetonationVerdict()(*string) { val, err := m.GetBackingStore().Get("detonationVerdict") @@ -89,7 +89,7 @@ func (m *DetonationDetails) GetDetonationVerdict()(*string) { } return nil } -// GetDetonationVerdictReason gets the detonationVerdictReason property value. The detonationVerdictReason property +// GetDetonationVerdictReason gets the detonationVerdictReason property value. The reason for the verdict of the detonation. // returns a *string when successful func (m *DetonationDetails) GetDetonationVerdictReason()(*string) { val, err := m.GetBackingStore().Get("detonationVerdictReason") @@ -232,7 +232,7 @@ func (m *DetonationDetails) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAnalysisDateTime sets the analysisDateTime property value. The analysisDateTime property +// SetAnalysisDateTime sets the analysisDateTime property value. The time of detonation. func (m *DetonationDetails) SetAnalysisDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("analysisDateTime", value) if err != nil { @@ -243,28 +243,28 @@ func (m *DetonationDetails) SetAnalysisDateTime(value *i336074805fc853987abe6f7f func (m *DetonationDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDetonationChain sets the detonationChain property value. The detonationChain property +// SetDetonationChain sets the detonationChain property value. The chain of detonation. func (m *DetonationDetails) SetDetonationChain(value DetonationChainable)() { err := m.GetBackingStore().Set("detonationChain", value) if err != nil { panic(err) } } -// SetDetonationObservables sets the detonationObservables property value. The detonationObservables property +// SetDetonationObservables sets the detonationObservables property value. All observables in the detonation tree. func (m *DetonationDetails) SetDetonationObservables(value DetonationObservablesable)() { err := m.GetBackingStore().Set("detonationObservables", value) if err != nil { panic(err) } } -// SetDetonationVerdict sets the detonationVerdict property value. The detonationVerdict property +// SetDetonationVerdict sets the detonationVerdict property value. The verdict of the detonation. func (m *DetonationDetails) SetDetonationVerdict(value *string)() { err := m.GetBackingStore().Set("detonationVerdict", value) if err != nil { panic(err) } } -// SetDetonationVerdictReason sets the detonationVerdictReason property value. The detonationVerdictReason property +// SetDetonationVerdictReason sets the detonationVerdictReason property value. The reason for the verdict of the detonation. func (m *DetonationDetails) SetDetonationVerdictReason(value *string)() { err := m.GetBackingStore().Set("detonationVerdictReason", value) if err != nil { diff --git a/models/security/detonation_observables.go b/models/security/detonation_observables.go index edb41be2130..fb0f0b95cfa 100644 --- a/models/security/detonation_observables.go +++ b/models/security/detonation_observables.go @@ -40,7 +40,7 @@ func (m *DetonationObservables) GetAdditionalData()(map[string]any) { func (m *DetonationObservables) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetContactedIps gets the contactedIps property value. The contactedIps property +// GetContactedIps gets the contactedIps property value. The list of all contacted IPs in the detonation. // returns a []string when successful func (m *DetonationObservables) GetContactedIps()([]string) { val, err := m.GetBackingStore().Get("contactedIps") @@ -52,7 +52,7 @@ func (m *DetonationObservables) GetContactedIps()([]string) { } return nil } -// GetContactedUrls gets the contactedUrls property value. The contactedUrls property +// GetContactedUrls gets the contactedUrls property value. The list of all URLs found in the detonation. // returns a []string when successful func (m *DetonationObservables) GetContactedUrls()([]string) { val, err := m.GetBackingStore().Get("contactedUrls") @@ -64,7 +64,7 @@ func (m *DetonationObservables) GetContactedUrls()([]string) { } return nil } -// GetDroppedfiles gets the droppedfiles property value. The droppedfiles property +// GetDroppedfiles gets the droppedfiles property value. The list of all dropped files in the detonation. // returns a []string when successful func (m *DetonationObservables) GetDroppedfiles()([]string) { val, err := m.GetBackingStore().Get("droppedfiles") @@ -197,21 +197,21 @@ func (m *DetonationObservables) SetAdditionalData(value map[string]any)() { func (m *DetonationObservables) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetContactedIps sets the contactedIps property value. The contactedIps property +// SetContactedIps sets the contactedIps property value. The list of all contacted IPs in the detonation. func (m *DetonationObservables) SetContactedIps(value []string)() { err := m.GetBackingStore().Set("contactedIps", value) if err != nil { panic(err) } } -// SetContactedUrls sets the contactedUrls property value. The contactedUrls property +// SetContactedUrls sets the contactedUrls property value. The list of all URLs found in the detonation. func (m *DetonationObservables) SetContactedUrls(value []string)() { err := m.GetBackingStore().Set("contactedUrls", value) if err != nil { panic(err) } } -// SetDroppedfiles sets the droppedfiles property value. The droppedfiles property +// SetDroppedfiles sets the droppedfiles property value. The list of all dropped files in the detonation. func (m *DetonationObservables) SetDroppedfiles(value []string)() { err := m.GetBackingStore().Set("droppedfiles", value) if err != nil { diff --git a/models/security/google_cloud_resource_evidence.go b/models/security/google_cloud_resource_evidence.go index 5f4561cb917..63d18484f3d 100644 --- a/models/security/google_cloud_resource_evidence.go +++ b/models/security/google_cloud_resource_evidence.go @@ -25,6 +25,16 @@ func CreateGoogleCloudResourceEvidenceFromDiscriminatorValue(parseNode i878a80d2 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *GoogleCloudResourceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() + res["fullResourceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFullResourceName(val) + } + return nil + } res["location"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -87,6 +97,18 @@ func (m *GoogleCloudResourceEvidence) GetFieldDeserializers()(map[string]func(i8 } return res } +// GetFullResourceName gets the fullResourceName property value. The fullResourceName property +// returns a *string when successful +func (m *GoogleCloudResourceEvidence) GetFullResourceName()(*string) { + val, err := m.GetBackingStore().Get("fullResourceName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetLocation gets the location property value. The zone or region where the resource is located. // returns a *string when successful func (m *GoogleCloudResourceEvidence) GetLocation()(*string) { @@ -165,6 +187,12 @@ func (m *GoogleCloudResourceEvidence) Serialize(writer i878a80d2330e89d26896388a if err != nil { return err } + { + err = writer.WriteStringValue("fullResourceName", m.GetFullResourceName()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("location", m.GetLocation()) if err != nil { @@ -204,6 +232,13 @@ func (m *GoogleCloudResourceEvidence) Serialize(writer i878a80d2330e89d26896388a } return nil } +// SetFullResourceName sets the fullResourceName property value. The fullResourceName property +func (m *GoogleCloudResourceEvidence) SetFullResourceName(value *string)() { + err := m.GetBackingStore().Set("fullResourceName", value) + if err != nil { + panic(err) + } +} // SetLocation sets the location property value. The zone or region where the resource is located. func (m *GoogleCloudResourceEvidence) SetLocation(value *string)() { err := m.GetBackingStore().Set("location", value) @@ -249,12 +284,14 @@ func (m *GoogleCloudResourceEvidence) SetResourceType(value *string)() { type GoogleCloudResourceEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFullResourceName()(*string) GetLocation()(*string) GetLocationType()(*GoogleCloudLocationType) GetProjectId()(*string) GetProjectNumber()(*int64) GetResourceName()(*string) GetResourceType()(*string) + SetFullResourceName(value *string)() SetLocation(value *string)() SetLocationType(value *GoogleCloudLocationType)() SetProjectId(value *string)() diff --git a/models/security/incident.go b/models/security/incident.go index f46e6917af4..21c22986c73 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -307,6 +307,16 @@ func (m *Incident) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["resolvingComment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResolvingComment(val) + } + return nil + } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseAlertSeverity) if err != nil { @@ -427,6 +437,18 @@ func (m *Incident) GetRedirectIncidentId()(*string) { } return nil } +// GetResolvingComment gets the resolvingComment property value. The resolvingComment property +// returns a *string when successful +func (m *Incident) GetResolvingComment()(*string) { + val, err := m.GetBackingStore().Get("resolvingComment") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSeverity gets the severity property value. The severity property // returns a *AlertSeverity when successful func (m *Incident) GetSeverity()(*AlertSeverity) { @@ -591,6 +613,12 @@ func (m *Incident) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("resolvingComment", m.GetResolvingComment()) + if err != nil { + return err + } + } if m.GetSeverity() != nil { cast := (*m.GetSeverity()).String() err = writer.WriteStringValue("severity", &cast) @@ -724,6 +752,13 @@ func (m *Incident) SetRedirectIncidentId(value *string)() { panic(err) } } +// SetResolvingComment sets the resolvingComment property value. The resolvingComment property +func (m *Incident) SetResolvingComment(value *string)() { + err := m.GetBackingStore().Set("resolvingComment", value) + if err != nil { + panic(err) + } +} // SetSeverity sets the severity property value. The severity property func (m *Incident) SetSeverity(value *AlertSeverity)() { err := m.GetBackingStore().Set("severity", value) @@ -770,6 +805,7 @@ type Incidentable interface { GetRecommendedActions()(*string) GetRecommendedHuntingQueries()([]RecommendedHuntingQueryable) GetRedirectIncidentId()(*string) + GetResolvingComment()(*string) GetSeverity()(*AlertSeverity) GetStatus()(*IncidentStatus) GetSystemTags()([]string) @@ -789,6 +825,7 @@ type Incidentable interface { SetRecommendedActions(value *string)() SetRecommendedHuntingQueries(value []RecommendedHuntingQueryable)() SetRedirectIncidentId(value *string)() + SetResolvingComment(value *string)() SetSeverity(value *AlertSeverity)() SetStatus(value *IncidentStatus)() SetSystemTags(value []string)() diff --git a/models/security/ip_evidence.go b/models/security/ip_evidence.go index 610f400a192..725c6b7230a 100644 --- a/models/security/ip_evidence.go +++ b/models/security/ip_evidence.go @@ -57,6 +57,16 @@ func (m *IpEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return nil } + res["stream"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateStreamFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStream(val.(Streamable)) + } + return nil + } return res } // GetIpAddress gets the ipAddress property value. The value of the IP Address can be either in V4 address or V6 address format. @@ -71,6 +81,18 @@ func (m *IpEvidence) GetIpAddress()(*string) { } return nil } +// GetStream gets the stream property value. The stream property +// returns a Streamable when successful +func (m *IpEvidence) GetStream()(Streamable) { + val, err := m.GetBackingStore().Get("stream") + if err != nil { + panic(err) + } + if val != nil { + return val.(Streamable) + } + return nil +} // Serialize serializes information the current object func (m *IpEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AlertEvidence.Serialize(writer) @@ -89,6 +111,12 @@ func (m *IpEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteObjectValue("stream", m.GetStream()) + if err != nil { + return err + } + } return nil } // SetCountryLetterCode sets the countryLetterCode property value. The two-letter country code according to ISO 3166 format, for example: US, UK, or CA.). @@ -105,11 +133,20 @@ func (m *IpEvidence) SetIpAddress(value *string)() { panic(err) } } +// SetStream sets the stream property value. The stream property +func (m *IpEvidence) SetStream(value Streamable)() { + err := m.GetBackingStore().Set("stream", value) + if err != nil { + panic(err) + } +} type IpEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCountryLetterCode()(*string) GetIpAddress()(*string) + GetStream()(Streamable) SetCountryLetterCode(value *string)() SetIpAddress(value *string)() + SetStream(value Streamable)() } diff --git a/models/security/mailbox_configuration_evidence.go b/models/security/mailbox_configuration_evidence.go new file mode 100644 index 00000000000..99c1d925c00 --- /dev/null +++ b/models/security/mailbox_configuration_evidence.go @@ -0,0 +1,265 @@ +package security + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type MailboxConfigurationEvidence struct { + AlertEvidence +} +// NewMailboxConfigurationEvidence instantiates a new MailboxConfigurationEvidence and sets the default values. +func NewMailboxConfigurationEvidence()(*MailboxConfigurationEvidence) { + m := &MailboxConfigurationEvidence{ + AlertEvidence: *NewAlertEvidence(), + } + odataTypeValue := "#microsoft.graph.security.mailboxConfigurationEvidence" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMailboxConfigurationEvidenceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMailboxConfigurationEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMailboxConfigurationEvidence(), nil +} +// GetConfigurationId gets the configurationId property value. The configurationId property +// returns a *string when successful +func (m *MailboxConfigurationEvidence) GetConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("configurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetConfigurationType gets the configurationType property value. The configurationType property +// returns a *MailboxConfigurationType when successful +func (m *MailboxConfigurationEvidence) GetConfigurationType()(*MailboxConfigurationType) { + val, err := m.GetBackingStore().Get("configurationType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MailboxConfigurationType) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *MailboxConfigurationEvidence) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExternalDirectoryObjectId gets the externalDirectoryObjectId property value. The externalDirectoryObjectId property +// returns a *UUID when successful +func (m *MailboxConfigurationEvidence) GetExternalDirectoryObjectId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + val, err := m.GetBackingStore().Get("externalDirectoryObjectId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MailboxConfigurationEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AlertEvidence.GetFieldDeserializers() + res["configurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConfigurationId(val) + } + return nil + } + res["configurationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMailboxConfigurationType) + if err != nil { + return err + } + if val != nil { + m.SetConfigurationType(val.(*MailboxConfigurationType)) + } + 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["externalDirectoryObjectId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetExternalDirectoryObjectId(val) + } + return nil + } + res["mailboxPrimaryAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMailboxPrimaryAddress(val) + } + return nil + } + res["upn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpn(val) + } + return nil + } + return res +} +// GetMailboxPrimaryAddress gets the mailboxPrimaryAddress property value. The mailboxPrimaryAddress property +// returns a *string when successful +func (m *MailboxConfigurationEvidence) GetMailboxPrimaryAddress()(*string) { + val, err := m.GetBackingStore().Get("mailboxPrimaryAddress") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUpn gets the upn property value. The upn property +// returns a *string when successful +func (m *MailboxConfigurationEvidence) GetUpn()(*string) { + val, err := m.GetBackingStore().Get("upn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MailboxConfigurationEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AlertEvidence.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("configurationId", m.GetConfigurationId()) + if err != nil { + return err + } + } + if m.GetConfigurationType() != nil { + cast := (*m.GetConfigurationType()).String() + err = writer.WriteStringValue("configurationType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteUUIDValue("externalDirectoryObjectId", m.GetExternalDirectoryObjectId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("mailboxPrimaryAddress", m.GetMailboxPrimaryAddress()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("upn", m.GetUpn()) + if err != nil { + return err + } + } + return nil +} +// SetConfigurationId sets the configurationId property value. The configurationId property +func (m *MailboxConfigurationEvidence) SetConfigurationId(value *string)() { + err := m.GetBackingStore().Set("configurationId", value) + if err != nil { + panic(err) + } +} +// SetConfigurationType sets the configurationType property value. The configurationType property +func (m *MailboxConfigurationEvidence) SetConfigurationType(value *MailboxConfigurationType)() { + err := m.GetBackingStore().Set("configurationType", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *MailboxConfigurationEvidence) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetExternalDirectoryObjectId sets the externalDirectoryObjectId property value. The externalDirectoryObjectId property +func (m *MailboxConfigurationEvidence) SetExternalDirectoryObjectId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + err := m.GetBackingStore().Set("externalDirectoryObjectId", value) + if err != nil { + panic(err) + } +} +// SetMailboxPrimaryAddress sets the mailboxPrimaryAddress property value. The mailboxPrimaryAddress property +func (m *MailboxConfigurationEvidence) SetMailboxPrimaryAddress(value *string)() { + err := m.GetBackingStore().Set("mailboxPrimaryAddress", value) + if err != nil { + panic(err) + } +} +// SetUpn sets the upn property value. The upn property +func (m *MailboxConfigurationEvidence) SetUpn(value *string)() { + err := m.GetBackingStore().Set("upn", value) + if err != nil { + panic(err) + } +} +type MailboxConfigurationEvidenceable interface { + AlertEvidenceable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConfigurationId()(*string) + GetConfigurationType()(*MailboxConfigurationType) + GetDisplayName()(*string) + GetExternalDirectoryObjectId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetMailboxPrimaryAddress()(*string) + GetUpn()(*string) + SetConfigurationId(value *string)() + SetConfigurationType(value *MailboxConfigurationType)() + SetDisplayName(value *string)() + SetExternalDirectoryObjectId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetMailboxPrimaryAddress(value *string)() + SetUpn(value *string)() +} diff --git a/models/security/mailbox_configuration_type.go b/models/security/mailbox_configuration_type.go new file mode 100644 index 00000000000..800469403e5 --- /dev/null +++ b/models/security/mailbox_configuration_type.go @@ -0,0 +1,48 @@ +package security +import ( + "errors" +) +type MailboxConfigurationType int + +const ( + MAILFORWARDINGRULE_MAILBOXCONFIGURATIONTYPE MailboxConfigurationType = iota + OWASETTINGS_MAILBOXCONFIGURATIONTYPE + EWSSETTINGS_MAILBOXCONFIGURATIONTYPE + MAILDELEGATION_MAILBOXCONFIGURATIONTYPE + USERINBOXRULE_MAILBOXCONFIGURATIONTYPE + UNKNOWNFUTUREVALUE_MAILBOXCONFIGURATIONTYPE +) + +func (i MailboxConfigurationType) String() string { + return []string{"mailForwardingRule", "owaSettings", "ewsSettings", "mailDelegation", "userInboxRule", "unknownFutureValue"}[i] +} +func ParseMailboxConfigurationType(v string) (any, error) { + result := MAILFORWARDINGRULE_MAILBOXCONFIGURATIONTYPE + switch v { + case "mailForwardingRule": + result = MAILFORWARDINGRULE_MAILBOXCONFIGURATIONTYPE + case "owaSettings": + result = OWASETTINGS_MAILBOXCONFIGURATIONTYPE + case "ewsSettings": + result = EWSSETTINGS_MAILBOXCONFIGURATIONTYPE + case "mailDelegation": + result = MAILDELEGATION_MAILBOXCONFIGURATIONTYPE + case "userInboxRule": + result = USERINBOXRULE_MAILBOXCONFIGURATIONTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MAILBOXCONFIGURATIONTYPE + default: + return 0, errors.New("Unknown MailboxConfigurationType value: " + v) + } + return &result, nil +} +func SerializeMailboxConfigurationType(values []MailboxConfigurationType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i MailboxConfigurationType) isMultiValue() bool { + return false +} diff --git a/models/security/stream.go b/models/security/stream.go new file mode 100644 index 00000000000..25f91095c1a --- /dev/null +++ b/models/security/stream.go @@ -0,0 +1,150 @@ +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type Stream struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewStream instantiates a new Stream and sets the default values. +func NewStream()(*Stream) { + m := &Stream{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateStreamFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateStreamFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewStream(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *Stream) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *Stream) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Stream) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@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 +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *Stream) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + 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 *Stream) 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 *Stream) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + 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 *Stream) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *Stream) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetName sets the name property value. The name property +func (m *Stream) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Stream) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type Streamable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetName()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetName(value *string)() + SetOdataType(value *string)() +} diff --git a/models/security/user_evidence.go b/models/security/user_evidence.go index 26cedb2afb6..3db81024d5c 100644 --- a/models/security/user_evidence.go +++ b/models/security/user_evidence.go @@ -25,6 +25,16 @@ func CreateUserEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *UserEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() + res["stream"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateStreamFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStream(val.(Streamable)) + } + return nil + } res["userAccount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateUserAccountFromDiscriminatorValue) if err != nil { @@ -37,6 +47,18 @@ func (m *UserEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } +// GetStream gets the stream property value. The stream property +// returns a Streamable when successful +func (m *UserEvidence) GetStream()(Streamable) { + val, err := m.GetBackingStore().Get("stream") + if err != nil { + panic(err) + } + if val != nil { + return val.(Streamable) + } + return nil +} // GetUserAccount gets the userAccount property value. The user account details. // returns a UserAccountable when successful func (m *UserEvidence) GetUserAccount()(UserAccountable) { @@ -55,6 +77,12 @@ func (m *UserEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e if err != nil { return err } + { + err = writer.WriteObjectValue("stream", m.GetStream()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("userAccount", m.GetUserAccount()) if err != nil { @@ -63,6 +91,13 @@ func (m *UserEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } +// SetStream sets the stream property value. The stream property +func (m *UserEvidence) SetStream(value Streamable)() { + err := m.GetBackingStore().Set("stream", value) + if err != nil { + panic(err) + } +} // SetUserAccount sets the userAccount property value. The user account details. func (m *UserEvidence) SetUserAccount(value UserAccountable)() { err := m.GetBackingStore().Set("userAccount", value) @@ -73,6 +108,8 @@ func (m *UserEvidence) SetUserAccount(value UserAccountable)() { type UserEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetStream()(Streamable) GetUserAccount()(UserAccountable) + SetStream(value Streamable)() SetUserAccount(value UserAccountable)() } diff --git a/models/service_principal.go b/models/service_principal.go index 50fd64a4bf4..c9b95e302a9 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -23,7 +23,7 @@ func NewServicePrincipal()(*ServicePrincipal) { func CreateServicePrincipalFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewServicePrincipal(), nil } -// GetAccountEnabled gets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users will be able to sign in to this app, even if they are assigned to it. Supports $filter (eq, ne, not, in). +// GetAccountEnabled gets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. Supports $filter (eq, ne, not, in). // returns a *bool when successful func (m *ServicePrincipal) GetAccountEnabled()(*bool) { val, err := m.GetBackingStore().Get("accountEnabled") @@ -35,7 +35,7 @@ func (m *ServicePrincipal) GetAccountEnabled()(*bool) { } return nil } -// GetAddIns gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on. +// GetAddIns gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. // returns a []AddInable when successful func (m *ServicePrincipal) GetAddIns()([]AddInable) { val, err := m.GetBackingStore().Get("addIns") @@ -47,7 +47,7 @@ func (m *ServicePrincipal) GetAddIns()([]AddInable) { } return nil } -// GetAlternativeNames gets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities. Supports $filter (eq, not, ge, le, startsWith). +// GetAlternativeNames gets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. Supports $filter (eq, not, ge, le, startsWith). // returns a []string when successful func (m *ServicePrincipal) GetAlternativeNames()([]string) { val, err := m.GetBackingStore().Get("alternativeNames") @@ -95,7 +95,7 @@ func (m *ServicePrincipal) GetAppId()(*string) { } return nil } -// GetApplicationTemplateId gets the applicationTemplateId property value. Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only. Supports $filter (eq, ne, NOT, startsWith). +// GetApplicationTemplateId gets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the app wasn't created from an application template. // returns a *string when successful func (m *ServicePrincipal) GetApplicationTemplateId()(*string) { val, err := m.GetBackingStore().Get("applicationTemplateId") @@ -119,7 +119,7 @@ func (m *ServicePrincipal) GetAppManagementPolicies()([]AppManagementPolicyable) } return nil } -// GetAppOwnerOrganizationId gets the appOwnerOrganizationId property value. Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). +// GetAppOwnerOrganizationId gets the appOwnerOrganizationId property value. Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). // returns a *UUID when successful func (m *ServicePrincipal) GetAppOwnerOrganizationId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("appOwnerOrganizationId") @@ -167,7 +167,7 @@ func (m *ServicePrincipal) GetAppRoleAssignments()([]AppRoleAssignmentable) { } return nil } -// GetAppRoles gets the appRoles property value. The roles exposed by the application, which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable. +// GetAppRoles gets the appRoles property value. The roles exposed by the application, which this service principal represents. For more information, see the appRoles property definition on the application entity. Not nullable. // returns a []AppRoleable when successful func (m *ServicePrincipal) GetAppRoles()([]AppRoleable) { val, err := m.GetBackingStore().Get("appRoles") @@ -227,7 +227,7 @@ func (m *ServicePrincipal) GetDelegatedPermissionClassifications()([]DelegatedPe } return nil } -// GetDescription gets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps will display the application description in this field. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. +// GetDescription gets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. // returns a *string when successful func (m *ServicePrincipal) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -1109,7 +1109,7 @@ func (m *ServicePrincipal) GetLoginUrl()(*string) { } return nil } -// GetLogoutUrl gets the logoutUrl property value. Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols. +// GetLogoutUrl gets the logoutUrl property value. Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenId Connect front-channel, back-channel, or SAML sign out protocols. // returns a *string when successful func (m *ServicePrincipal) GetLogoutUrl()(*string) { val, err := m.GetBackingStore().Get("logoutUrl") @@ -1133,7 +1133,7 @@ func (m *ServicePrincipal) GetMemberOf()([]DirectoryObjectable) { } return nil } -// GetNotes gets the notes property value. Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1024 characters. +// GetNotes gets the notes property value. Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters. // returns a *string when successful func (m *ServicePrincipal) GetNotes()(*string) { val, err := m.GetBackingStore().Get("notes") @@ -1181,7 +1181,7 @@ func (m *ServicePrincipal) GetOwnedObjects()([]DirectoryObjectable) { } return nil } -// GetOwners gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// GetOwners gets the owners property value. 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 []DirectoryObjectable when successful func (m *ServicePrincipal) GetOwners()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("owners") @@ -1229,7 +1229,7 @@ func (m *ServicePrincipal) GetPreferredSingleSignOnMode()(*string) { } return nil } -// GetPreferredTokenSigningKeyEndDateTime gets the preferredTokenSigningKeyEndDateTime property value. Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute is not currentlysupported. For details, see ServicePrincipal property differences. +// GetPreferredTokenSigningKeyEndDateTime gets the preferredTokenSigningKeyEndDateTime property value. Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute isn't currently supported. For details, see ServicePrincipal property differences. // returns a *Time when successful func (m *ServicePrincipal) GetPreferredTokenSigningKeyEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("preferredTokenSigningKeyEndDateTime") @@ -1241,7 +1241,7 @@ func (m *ServicePrincipal) GetPreferredTokenSigningKeyEndDateTime()(*i336074805f } return nil } -// GetPreferredTokenSigningKeyThumbprint gets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that are not SAML, do not write or otherwise rely on this property. +// GetPreferredTokenSigningKeyThumbprint gets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property. // returns a *string when successful func (m *ServicePrincipal) GetPreferredTokenSigningKeyThumbprint()(*string) { val, err := m.GetBackingStore().Get("preferredTokenSigningKeyThumbprint") @@ -1253,7 +1253,7 @@ func (m *ServicePrincipal) GetPreferredTokenSigningKeyThumbprint()(*string) { } return nil } -// GetPublishedPermissionScopes gets the publishedPermissionScopes property value. The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0. +// GetPublishedPermissionScopes gets the publishedPermissionScopes property value. The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0. // returns a []PermissionScopeable when successful func (m *ServicePrincipal) GetPublishedPermissionScopes()([]PermissionScopeable) { val, err := m.GetBackingStore().Get("publishedPermissionScopes") @@ -1325,7 +1325,7 @@ func (m *ServicePrincipal) GetSamlSingleSignOnSettings()(SamlSingleSignOnSetting } return nil } -// GetServicePrincipalNames gets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). +// GetServicePrincipalNames gets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. More values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). // returns a []string when successful func (m *ServicePrincipal) GetServicePrincipalNames()([]string) { val, err := m.GetBackingStore().Get("servicePrincipalNames") @@ -1337,7 +1337,7 @@ func (m *ServicePrincipal) GetServicePrincipalNames()([]string) { } return nil } -// GetServicePrincipalType gets the servicePrincipalType property value. Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represent a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use. +// GetServicePrincipalType gets the servicePrincipalType property value. Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represents a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use. // returns a *string when successful func (m *ServicePrincipal) GetServicePrincipalType()(*string) { val, err := m.GetBackingStore().Get("servicePrincipalType") @@ -1349,7 +1349,7 @@ func (m *ServicePrincipal) GetServicePrincipalType()(*string) { } return nil } -// GetSignInAudience gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. +// GetSignInAudience gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. // returns a *string when successful func (m *ServicePrincipal) GetSignInAudience()(*string) { val, err := m.GetBackingStore().Get("signInAudience") @@ -1433,7 +1433,7 @@ func (m *ServicePrincipal) GetTransitiveMemberOf()([]DirectoryObjectable) { } return nil } -// GetVerifiedPublisher gets the verifiedPublisher property value. Specifies the verified publisher of the application which this service principal represents. +// GetVerifiedPublisher gets the verifiedPublisher property value. Specifies the verified publisher of the application that's linked to this service principal. // returns a VerifiedPublisherable when successful func (m *ServicePrincipal) GetVerifiedPublisher()(VerifiedPublisherable) { val, err := m.GetBackingStore().Get("verifiedPublisher") @@ -1927,21 +1927,21 @@ func (m *ServicePrincipal) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } -// SetAccountEnabled sets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users will be able to sign in to this app, even if they are assigned to it. Supports $filter (eq, ne, not, in). +// SetAccountEnabled sets the accountEnabled property value. true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. Supports $filter (eq, ne, not, in). func (m *ServicePrincipal) SetAccountEnabled(value *bool)() { err := m.GetBackingStore().Set("accountEnabled", value) if err != nil { panic(err) } } -// SetAddIns sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on. +// SetAddIns sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. func (m *ServicePrincipal) SetAddIns(value []AddInable)() { err := m.GetBackingStore().Set("addIns", value) if err != nil { panic(err) } } -// SetAlternativeNames sets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities. Supports $filter (eq, not, ge, le, startsWith). +// SetAlternativeNames sets the alternativeNames property value. Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. Supports $filter (eq, not, ge, le, startsWith). func (m *ServicePrincipal) SetAlternativeNames(value []string)() { err := m.GetBackingStore().Set("alternativeNames", value) if err != nil { @@ -1969,7 +1969,7 @@ func (m *ServicePrincipal) SetAppId(value *string)() { panic(err) } } -// SetApplicationTemplateId sets the applicationTemplateId property value. Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only. Supports $filter (eq, ne, NOT, startsWith). +// SetApplicationTemplateId sets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the app wasn't created from an application template. func (m *ServicePrincipal) SetApplicationTemplateId(value *string)() { err := m.GetBackingStore().Set("applicationTemplateId", value) if err != nil { @@ -1983,7 +1983,7 @@ func (m *ServicePrincipal) SetAppManagementPolicies(value []AppManagementPolicya panic(err) } } -// SetAppOwnerOrganizationId sets the appOwnerOrganizationId property value. Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). +// SetAppOwnerOrganizationId sets the appOwnerOrganizationId property value. Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le). func (m *ServicePrincipal) SetAppOwnerOrganizationId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("appOwnerOrganizationId", value) if err != nil { @@ -2011,7 +2011,7 @@ func (m *ServicePrincipal) SetAppRoleAssignments(value []AppRoleAssignmentable)( panic(err) } } -// SetAppRoles sets the appRoles property value. The roles exposed by the application, which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable. +// SetAppRoles sets the appRoles property value. The roles exposed by the application, which this service principal represents. For more information, see the appRoles property definition on the application entity. Not nullable. func (m *ServicePrincipal) SetAppRoles(value []AppRoleable)() { err := m.GetBackingStore().Set("appRoles", value) if err != nil { @@ -2046,7 +2046,7 @@ func (m *ServicePrincipal) SetDelegatedPermissionClassifications(value []Delegat panic(err) } } -// SetDescription sets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps will display the application description in this field. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. +// SetDescription sets the description property value. Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. func (m *ServicePrincipal) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { @@ -2130,7 +2130,7 @@ func (m *ServicePrincipal) SetLoginUrl(value *string)() { panic(err) } } -// SetLogoutUrl sets the logoutUrl property value. Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols. +// SetLogoutUrl sets the logoutUrl property value. Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenId Connect front-channel, back-channel, or SAML sign out protocols. func (m *ServicePrincipal) SetLogoutUrl(value *string)() { err := m.GetBackingStore().Set("logoutUrl", value) if err != nil { @@ -2144,7 +2144,7 @@ func (m *ServicePrincipal) SetMemberOf(value []DirectoryObjectable)() { panic(err) } } -// SetNotes sets the notes property value. Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1024 characters. +// SetNotes sets the notes property value. Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters. func (m *ServicePrincipal) SetNotes(value *string)() { err := m.GetBackingStore().Set("notes", value) if err != nil { @@ -2172,7 +2172,7 @@ func (m *ServicePrincipal) SetOwnedObjects(value []DirectoryObjectable)() { panic(err) } } -// SetOwners sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// SetOwners sets the owners property value. 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). func (m *ServicePrincipal) SetOwners(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("owners", value) if err != nil { @@ -2200,21 +2200,21 @@ func (m *ServicePrincipal) SetPreferredSingleSignOnMode(value *string)() { panic(err) } } -// SetPreferredTokenSigningKeyEndDateTime sets the preferredTokenSigningKeyEndDateTime property value. Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute is not currentlysupported. For details, see ServicePrincipal property differences. +// SetPreferredTokenSigningKeyEndDateTime sets the preferredTokenSigningKeyEndDateTime property value. Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute isn't currently supported. For details, see ServicePrincipal property differences. func (m *ServicePrincipal) SetPreferredTokenSigningKeyEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("preferredTokenSigningKeyEndDateTime", value) if err != nil { panic(err) } } -// SetPreferredTokenSigningKeyThumbprint sets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that are not SAML, do not write or otherwise rely on this property. +// SetPreferredTokenSigningKeyThumbprint sets the preferredTokenSigningKeyThumbprint property value. This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property. func (m *ServicePrincipal) SetPreferredTokenSigningKeyThumbprint(value *string)() { err := m.GetBackingStore().Set("preferredTokenSigningKeyThumbprint", value) if err != nil { panic(err) } } -// SetPublishedPermissionScopes sets the publishedPermissionScopes property value. The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0. +// SetPublishedPermissionScopes sets the publishedPermissionScopes property value. The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0. func (m *ServicePrincipal) SetPublishedPermissionScopes(value []PermissionScopeable)() { err := m.GetBackingStore().Set("publishedPermissionScopes", value) if err != nil { @@ -2256,21 +2256,21 @@ func (m *ServicePrincipal) SetSamlSingleSignOnSettings(value SamlSingleSignOnSet panic(err) } } -// SetServicePrincipalNames sets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). +// SetServicePrincipalNames sets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. More values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). func (m *ServicePrincipal) SetServicePrincipalNames(value []string)() { err := m.GetBackingStore().Set("servicePrincipalNames", value) if err != nil { panic(err) } } -// SetServicePrincipalType sets the servicePrincipalType property value. Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represent a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use. +// SetServicePrincipalType sets the servicePrincipalType property value. Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represents a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use. func (m *ServicePrincipal) SetServicePrincipalType(value *string)() { err := m.GetBackingStore().Set("servicePrincipalType", value) if err != nil { panic(err) } } -// SetSignInAudience sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. +// SetSignInAudience sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. func (m *ServicePrincipal) SetSignInAudience(value *string)() { err := m.GetBackingStore().Set("signInAudience", value) if err != nil { @@ -2319,7 +2319,7 @@ func (m *ServicePrincipal) SetTransitiveMemberOf(value []DirectoryObjectable)() panic(err) } } -// SetVerifiedPublisher sets the verifiedPublisher property value. Specifies the verified publisher of the application which this service principal represents. +// SetVerifiedPublisher sets the verifiedPublisher property value. Specifies the verified publisher of the application that's linked to this service principal. func (m *ServicePrincipal) SetVerifiedPublisher(value VerifiedPublisherable)() { err := m.GetBackingStore().Set("verifiedPublisher", value) if err != nil { diff --git a/models/service_principal_subject.go b/models/service_principal_subject.go new file mode 100644 index 00000000000..97f50d0a27a --- /dev/null +++ b/models/service_principal_subject.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ServicePrincipalSubject struct { + ConditionalAccessWhatIfSubject +} +// NewServicePrincipalSubject instantiates a new ServicePrincipalSubject and sets the default values. +func NewServicePrincipalSubject()(*ServicePrincipalSubject) { + m := &ServicePrincipalSubject{ + ConditionalAccessWhatIfSubject: *NewConditionalAccessWhatIfSubject(), + } + odataTypeValue := "#microsoft.graph.servicePrincipalSubject" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateServicePrincipalSubjectFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateServicePrincipalSubjectFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewServicePrincipalSubject(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ServicePrincipalSubject) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ConditionalAccessWhatIfSubject.GetFieldDeserializers() + res["servicePrincipalId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServicePrincipalId(val) + } + return nil + } + return res +} +// GetServicePrincipalId gets the servicePrincipalId property value. The servicePrincipalId property +// returns a *string when successful +func (m *ServicePrincipalSubject) GetServicePrincipalId()(*string) { + val, err := m.GetBackingStore().Get("servicePrincipalId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ServicePrincipalSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ConditionalAccessWhatIfSubject.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("servicePrincipalId", m.GetServicePrincipalId()) + if err != nil { + return err + } + } + return nil +} +// SetServicePrincipalId sets the servicePrincipalId property value. The servicePrincipalId property +func (m *ServicePrincipalSubject) SetServicePrincipalId(value *string)() { + err := m.GetBackingStore().Set("servicePrincipalId", value) + if err != nil { + panic(err) + } +} +type ServicePrincipalSubjectable interface { + ConditionalAccessWhatIfSubjectable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetServicePrincipalId()(*string) + SetServicePrincipalId(value *string)() +} diff --git a/models/sign_in.go b/models/sign_in.go index 403858197f7..158aecb35d3 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -44,7 +44,7 @@ func (m *SignIn) GetAppId()(*string) { } return nil } -// GetAppliedConditionalAccessPolicies gets the appliedConditionalAccessPolicies property value. A list of conditional access policies that are triggered by the corresponding sign-in activity. Apps need additional Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. +// GetAppliedConditionalAccessPolicies gets the appliedConditionalAccessPolicies property value. A list of conditional access policies that the corresponding sign-in activity triggers. Apps need more Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. // returns a []AppliedConditionalAccessPolicyable when successful func (m *SignIn) GetAppliedConditionalAccessPolicies()([]AppliedConditionalAccessPolicyable) { val, err := m.GetBackingStore().Get("appliedConditionalAccessPolicies") @@ -56,7 +56,7 @@ func (m *SignIn) GetAppliedConditionalAccessPolicies()([]AppliedConditionalAcces } return nil } -// GetAppliedEventListeners gets the appliedEventListeners property value. Detailed information about the listeners, such as Azure Logic Apps and Azure Functions, which were triggered by the corresponding events in the sign-in event. +// GetAppliedEventListeners gets the appliedEventListeners property value. Detailed information about the listeners, such as Azure Logic Apps and Azure Functions, which the corresponding events in the sign-in event triggered. // returns a []AppliedAuthenticationEventListenerable when successful func (m *SignIn) GetAppliedEventListeners()([]AppliedAuthenticationEventListenerable) { val, err := m.GetBackingStore().Get("appliedEventListeners") @@ -248,7 +248,7 @@ func (m *SignIn) GetConditionalAccessStatus()(*ConditionalAccessStatus) { } return nil } -// GetCorrelationId gets the correlationId property value. The identifier that's sent from the client 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 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") @@ -272,7 +272,7 @@ func (m *SignIn) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a } return nil } -// GetCrossTenantAccessType gets the crossTenantAccessType property value. Describes the type of cross-tenant access used by the actor to access the resource. Possible values are: none, b2bCollaboration, b2bDirectConnect, microsoftSupport, serviceProvider, unknownFutureValue, passthrough. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: passthrough. If the sign in didn't cross tenant boundaries, the value is none. +// GetCrossTenantAccessType gets the crossTenantAccessType property value. Describes the type of cross-tenant access used by the actor to access the resource. Possible values are: none, b2bCollaboration, b2bDirectConnect, microsoftSupport, serviceProvider, unknownFutureValue, passthrough. Also, note that you must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: passthrough. If the sign in didn't cross tenant boundaries, the value is none. // returns a *SignInAccessType when successful func (m *SignIn) GetCrossTenantAccessType()(*SignInAccessType) { val, err := m.GetBackingStore().Get("crossTenantAccessType") @@ -1092,7 +1092,7 @@ func (m *SignIn) GetHomeTenantName()(*string) { } return nil } -// GetIncomingTokenType gets the incomingTokenType property value. Indicates the token types that were presented to Microsoft Entra ID to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Microsoft Entra ID might have also used token types not listed in this enum type to authenticate the actor. Don't infer the lack of a token if it isn't one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. +// GetIncomingTokenType gets the incomingTokenType property value. Indicates the token types that were presented to Microsoft Entra ID to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Microsoft Entra ID might have also used token types not listed in this enum type to authenticate the actor. Don't infer the lack of a token if it isn't one of the types listed. Also, note that you must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: remoteDesktopToken. // returns a *IncomingTokenType when successful func (m *SignIn) GetIncomingTokenType()(*IncomingTokenType) { val, err := m.GetBackingStore().Get("incomingTokenType") @@ -1296,7 +1296,7 @@ func (m *SignIn) GetResourceTenantId()(*string) { } return nil } -// GetRiskDetail gets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. Possible values: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, or unknownFutureValue. The value none means that Microsoft Entra risk detection has not flagged the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. +// GetRiskDetail gets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe.The value none means that Microsoft Entra risk detection has not flagged the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. // returns a *RiskDetail when successful func (m *SignIn) GetRiskDetail()(*RiskDetail) { val, err := m.GetBackingStore().Get("riskDetail") @@ -2065,14 +2065,14 @@ func (m *SignIn) SetAppId(value *string)() { panic(err) } } -// SetAppliedConditionalAccessPolicies sets the appliedConditionalAccessPolicies property value. A list of conditional access policies that are triggered by the corresponding sign-in activity. Apps need additional Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. +// SetAppliedConditionalAccessPolicies sets the appliedConditionalAccessPolicies property value. A list of conditional access policies that the corresponding sign-in activity triggers. Apps need more Conditional Access-related privileges to read the details of this property. For more information, see Viewing applied conditional access (CA) policies in sign-ins. func (m *SignIn) SetAppliedConditionalAccessPolicies(value []AppliedConditionalAccessPolicyable)() { err := m.GetBackingStore().Set("appliedConditionalAccessPolicies", value) if err != nil { panic(err) } } -// SetAppliedEventListeners sets the appliedEventListeners property value. Detailed information about the listeners, such as Azure Logic Apps and Azure Functions, which were triggered by the corresponding events in the sign-in event. +// SetAppliedEventListeners sets the appliedEventListeners property value. Detailed information about the listeners, such as Azure Logic Apps and Azure Functions, which the corresponding events in the sign-in event triggered. func (m *SignIn) SetAppliedEventListeners(value []AppliedAuthenticationEventListenerable)() { err := m.GetBackingStore().Set("appliedEventListeners", value) if err != nil { @@ -2184,7 +2184,7 @@ func (m *SignIn) SetConditionalAccessStatus(value *ConditionalAccessStatus)() { panic(err) } } -// SetCorrelationId sets the correlationId property value. The identifier that's sent from the client 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 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 { @@ -2198,7 +2198,7 @@ func (m *SignIn) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3 panic(err) } } -// SetCrossTenantAccessType sets the crossTenantAccessType property value. Describes the type of cross-tenant access used by the actor to access the resource. Possible values are: none, b2bCollaboration, b2bDirectConnect, microsoftSupport, serviceProvider, unknownFutureValue, passthrough. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: passthrough. If the sign in didn't cross tenant boundaries, the value is none. +// SetCrossTenantAccessType sets the crossTenantAccessType property value. Describes the type of cross-tenant access used by the actor to access the resource. Possible values are: none, b2bCollaboration, b2bDirectConnect, microsoftSupport, serviceProvider, unknownFutureValue, passthrough. Also, note that you must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: passthrough. If the sign in didn't cross tenant boundaries, the value is none. func (m *SignIn) SetCrossTenantAccessType(value *SignInAccessType)() { err := m.GetBackingStore().Set("crossTenantAccessType", value) if err != nil { @@ -2240,7 +2240,7 @@ func (m *SignIn) SetHomeTenantName(value *string)() { panic(err) } } -// SetIncomingTokenType sets the incomingTokenType property value. Indicates the token types that were presented to Microsoft Entra ID to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Microsoft Entra ID might have also used token types not listed in this enum type to authenticate the actor. Don't infer the lack of a token if it isn't one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. +// SetIncomingTokenType sets the incomingTokenType property value. Indicates the token types that were presented to Microsoft Entra ID to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Microsoft Entra ID might have also used token types not listed in this enum type to authenticate the actor. Don't infer the lack of a token if it isn't one of the types listed. Also, note that you must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: remoteDesktopToken. func (m *SignIn) SetIncomingTokenType(value *IncomingTokenType)() { err := m.GetBackingStore().Set("incomingTokenType", value) if err != nil { @@ -2359,7 +2359,7 @@ func (m *SignIn) SetResourceTenantId(value *string)() { panic(err) } } -// SetRiskDetail sets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. Possible values: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, or unknownFutureValue. The value none means that Microsoft Entra risk detection has not flagged the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. +// SetRiskDetail sets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe. You must use the Prefer: include-unknown-enum-members request header to get the following value or values in this evolvable enum: adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection, userChangedPasswordOnPremises, adminDismissedRiskForSignIn, adminConfirmedAccountSafe.The value none means that Microsoft Entra risk detection has not flagged the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. func (m *SignIn) SetRiskDetail(value *RiskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { diff --git a/models/site.go b/models/site.go index 507e84304e4..2df1470dd52 100644 --- a/models/site.go +++ b/models/site.go @@ -21,7 +21,7 @@ func NewSite()(*Site) { func CreateSiteFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSite(), nil } -// GetAnalytics gets the analytics property value. Analytics about the view activities that took place in this site. +// GetAnalytics gets the analytics property value. Analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful func (m *Site) GetAnalytics()(ItemAnalyticsable) { val, err := m.GetBackingStore().Get("analytics") @@ -105,7 +105,7 @@ func (m *Site) GetDrives()([]Driveable) { } return nil } -// GetExternalColumns gets the externalColumns property value. The collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// GetExternalColumns gets the externalColumns property value. The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a []ColumnDefinitionable when successful func (m *Site) GetExternalColumns()([]ColumnDefinitionable) { val, err := m.GetBackingStore().Get("externalColumns") @@ -427,7 +427,7 @@ func (m *Site) GetIsPersonalSite()(*bool) { } return nil } -// GetItems gets the items property value. Used to address any item contained in this site. This collection cannot be enumerated. +// GetItems gets the items property value. Used to address any item contained in this site. This collection can't be enumerated. // returns a []BaseItemable when successful func (m *Site) GetItems()([]BaseItemable) { val, err := m.GetBackingStore().Get("items") @@ -475,7 +475,7 @@ func (m *Site) GetOperations()([]RichLongRunningOperationable) { } return nil } -// GetPages gets the pages property value. The collection of pages in the baseSitePages list in this site. +// GetPages gets the pages property value. The collection of pages in the baseSitePages list on this site. // returns a []BaseSitePageable when successful func (m *Site) GetPages()([]BaseSitePageable) { val, err := m.GetBackingStore().Get("pages") @@ -511,7 +511,7 @@ func (m *Site) GetRecycleBin()(RecycleBinable) { } return nil } -// GetRoot gets the root property value. If present, indicates that this is the root site in the site collection. Read-only. +// GetRoot gets the root property value. If present, provides the root site in the site collection. Read-only. // returns a Rootable when successful func (m *Site) GetRoot()(Rootable) { val, err := m.GetBackingStore().Get("root") @@ -771,7 +771,7 @@ func (m *Site) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 } return nil } -// SetAnalytics sets the analytics property value. Analytics about the view activities that took place in this site. +// SetAnalytics sets the analytics property value. Analytics about the view activities that took place on this site. func (m *Site) SetAnalytics(value ItemAnalyticsable)() { err := m.GetBackingStore().Set("analytics", value) if err != nil { @@ -820,7 +820,7 @@ func (m *Site) SetDrives(value []Driveable)() { panic(err) } } -// SetExternalColumns sets the externalColumns property value. The collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// SetExternalColumns sets the externalColumns property value. The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. func (m *Site) SetExternalColumns(value []ColumnDefinitionable)() { err := m.GetBackingStore().Set("externalColumns", value) if err != nil { @@ -841,7 +841,7 @@ func (m *Site) SetIsPersonalSite(value *bool)() { panic(err) } } -// SetItems sets the items property value. Used to address any item contained in this site. This collection cannot be enumerated. +// SetItems sets the items property value. Used to address any item contained in this site. This collection can't be enumerated. func (m *Site) SetItems(value []BaseItemable)() { err := m.GetBackingStore().Set("items", value) if err != nil { @@ -869,7 +869,7 @@ func (m *Site) SetOperations(value []RichLongRunningOperationable)() { panic(err) } } -// SetPages sets the pages property value. The collection of pages in the baseSitePages list in this site. +// SetPages sets the pages property value. The collection of pages in the baseSitePages list on this site. func (m *Site) SetPages(value []BaseSitePageable)() { err := m.GetBackingStore().Set("pages", value) if err != nil { @@ -890,7 +890,7 @@ func (m *Site) SetRecycleBin(value RecycleBinable)() { panic(err) } } -// SetRoot sets the root property value. If present, indicates that this is the root site in the site collection. Read-only. +// SetRoot sets the root property value. If present, provides the root site in the site collection. Read-only. func (m *Site) SetRoot(value Rootable)() { err := m.GetBackingStore().Set("root", value) if err != nil { diff --git a/models/subscription.go b/models/subscription.go index 8d6acf957f4..7489b4f946e 100644 --- a/models/subscription.go +++ b/models/subscription.go @@ -32,7 +32,7 @@ func (m *Subscription) GetApplicationId()(*string) { } return nil } -// GetChangeType gets the changeType property value. Required. Indicates the type of change in the subscribed resource that will raise a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. +// GetChangeType gets the changeType property value. Required. Indicates the type of change in the subscribed resource that raises a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated, or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. // returns a *string when successful func (m *Subscription) GetChangeType()(*string) { val, err := m.GetBackingStore().Get("changeType") @@ -92,7 +92,7 @@ func (m *Subscription) GetEncryptionCertificateId()(*string) { } return nil } -// GetExpirationDateTime gets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see the table below. +// GetExpirationDateTime gets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see Subscription lifetime. // returns a *Time when successful func (m *Subscription) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") @@ -308,7 +308,7 @@ func (m *Subscription) GetNotificationContentType()(*string) { } return nil } -// GetNotificationQueryOptions gets the notificationQueryOptions property value. Optional. OData query options for specifying the value for the targeting resource. Clients receive notifications when the resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks will deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. +// GetNotificationQueryOptions gets the notificationQueryOptions property value. Optional. OData query options for specifying the value for the targeting resource. Clients receive notifications when the resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. // returns a *string when successful func (m *Subscription) GetNotificationQueryOptions()(*string) { val, err := m.GetBackingStore().Get("notificationQueryOptions") @@ -320,7 +320,7 @@ func (m *Subscription) GetNotificationQueryOptions()(*string) { } return nil } -// GetNotificationUrl gets the notificationUrl property value. Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property will be included in the HTTP POST request when Microsoft Graph sends the change notifications. +// GetNotificationUrl gets the notificationUrl property value. Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property is included in the HTTP POST request when Microsoft Graph sends the change notifications. // returns a *string when successful func (m *Subscription) GetNotificationUrl()(*string) { val, err := m.GetBackingStore().Get("notificationUrl") @@ -332,7 +332,7 @@ func (m *Subscription) GetNotificationUrl()(*string) { } return nil } -// GetNotificationUrlAppId gets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. This allows the client to validate the authenticity of the notification received. +// GetNotificationUrlAppId gets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. The value allows the client to validate the authenticity of the notification received. // returns a *string when successful func (m *Subscription) GetNotificationUrlAppId()(*string) { val, err := m.GetBackingStore().Get("notificationUrlAppId") @@ -344,7 +344,7 @@ func (m *Subscription) GetNotificationUrlAppId()(*string) { } return nil } -// GetResource gets the resource property value. Required. Specifies the resource that will be monitored for changes. Do not include the base URL (https://graph.microsoft.com/beta/). See the possible resource path values for each supported resource. +// GetResource gets the resource property value. Required. Specifies the resource that is monitored for changes. Don't include the base URL (https://graph.microsoft.com/beta/). See the possible resource path values for each supported resource. // returns a *string when successful func (m *Subscription) GetResource()(*string) { val, err := m.GetBackingStore().Get("resource") @@ -461,7 +461,7 @@ func (m *Subscription) SetApplicationId(value *string)() { panic(err) } } -// SetChangeType sets the changeType property value. Required. Indicates the type of change in the subscribed resource that will raise a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. +// SetChangeType sets the changeType property value. Required. Indicates the type of change in the subscribed resource that raises a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated, or soft deleted. Use deleted to receive notifications when user or group is permanently deleted. func (m *Subscription) SetChangeType(value *string)() { err := m.GetBackingStore().Set("changeType", value) if err != nil { @@ -496,7 +496,7 @@ func (m *Subscription) SetEncryptionCertificateId(value *string)() { panic(err) } } -// SetExpirationDateTime sets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see the table below. +// SetExpirationDateTime sets the expirationDateTime property value. Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. For the maximum supported subscription length of time, see Subscription lifetime. func (m *Subscription) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { @@ -531,28 +531,28 @@ func (m *Subscription) SetNotificationContentType(value *string)() { panic(err) } } -// SetNotificationQueryOptions sets the notificationQueryOptions property value. Optional. OData query options for specifying the value for the targeting resource. Clients receive notifications when the resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks will deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. +// SetNotificationQueryOptions sets the notificationQueryOptions property value. Optional. OData query options for specifying the value for the targeting resource. Clients receive notifications when the resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph. func (m *Subscription) SetNotificationQueryOptions(value *string)() { err := m.GetBackingStore().Set("notificationQueryOptions", value) if err != nil { panic(err) } } -// SetNotificationUrl sets the notificationUrl property value. Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property will be included in the HTTP POST request when Microsoft Graph sends the change notifications. +// SetNotificationUrl sets the notificationUrl property value. Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property is included in the HTTP POST request when Microsoft Graph sends the change notifications. func (m *Subscription) SetNotificationUrl(value *string)() { err := m.GetBackingStore().Set("notificationUrl", value) if err != nil { panic(err) } } -// SetNotificationUrlAppId sets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. This allows the client to validate the authenticity of the notification received. +// SetNotificationUrlAppId sets the notificationUrlAppId property value. Optional. The app ID that the subscription service can use to generate the validation token. The value allows the client to validate the authenticity of the notification received. func (m *Subscription) SetNotificationUrlAppId(value *string)() { err := m.GetBackingStore().Set("notificationUrlAppId", value) if err != nil { panic(err) } } -// SetResource sets the resource property value. Required. Specifies the resource that will be monitored for changes. Do not include the base URL (https://graph.microsoft.com/beta/). See the possible resource path values for each supported resource. +// SetResource sets the resource property value. Required. Specifies the resource that is monitored for changes. Don't include the base URL (https://graph.microsoft.com/beta/). See the possible resource path values for each supported resource. func (m *Subscription) SetResource(value *string)() { err := m.GetBackingStore().Set("resource", value) if err != nil { diff --git a/models/teamsuserconfiguration/teams_admin_root.go b/models/teamsuserconfiguration/teams_admin_root.go new file mode 100644 index 00000000000..f92f91cc5ba --- /dev/null +++ b/models/teamsuserconfiguration/teams_admin_root.go @@ -0,0 +1,40 @@ +package teamsuserconfiguration + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type TeamsAdminRoot struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewTeamsAdminRoot instantiates a new TeamsAdminRoot and sets the default values. +func NewTeamsAdminRoot()(*TeamsAdminRoot) { + m := &TeamsAdminRoot{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateTeamsAdminRootFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsAdminRootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsAdminRoot(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsAdminRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *TeamsAdminRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + return nil +} +type TeamsAdminRootable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/upload_session.go b/models/upload_session.go index 826bda75d24..7bf0c9421cd 100644 --- a/models/upload_session.go +++ b/models/upload_session.go @@ -41,7 +41,7 @@ func (m *UploadSession) GetAdditionalData()(map[string]any) { func (m *UploadSession) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetExpirationDateTime gets the expirationDateTime property value. The date and time in UTC that the upload session will expire. The complete file must be uploaded before this expiration time is reached. +// GetExpirationDateTime gets the expirationDateTime property value. The date and time in UTC that the upload session expires. The complete file must be uploaded before this expiration time is reached. // returns a *Time when successful func (m *UploadSession) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") @@ -105,7 +105,7 @@ func (m *UploadSession) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetNextExpectedRanges gets the nextExpectedRanges property value. When uploading files to document libraries, this is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, '{start}-{end}' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. +// GetNextExpectedRanges gets the nextExpectedRanges property value. When uploading files to document libraries, this property is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, '{start}-{end}' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. // returns a []string when successful func (m *UploadSession) GetNextExpectedRanges()([]string) { val, err := m.GetBackingStore().Get("nextExpectedRanges") @@ -186,14 +186,14 @@ func (m *UploadSession) SetAdditionalData(value map[string]any)() { func (m *UploadSession) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetExpirationDateTime sets the expirationDateTime property value. The date and time in UTC that the upload session will expire. The complete file must be uploaded before this expiration time is reached. +// SetExpirationDateTime sets the expirationDateTime property value. The date and time in UTC that the upload session expires. The complete file must be uploaded before this expiration time is reached. func (m *UploadSession) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { panic(err) } } -// SetNextExpectedRanges sets the nextExpectedRanges property value. When uploading files to document libraries, this is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, '{start}-{end}' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. +// SetNextExpectedRanges sets the nextExpectedRanges property value. When uploading files to document libraries, this property is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, '{start}-{end}' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. func (m *UploadSession) SetNextExpectedRanges(value []string)() { err := m.GetBackingStore().Set("nextExpectedRanges", value) if err != nil { diff --git a/models/user_action.go b/models/user_action.go new file mode 100644 index 00000000000..b4f6353ebc9 --- /dev/null +++ b/models/user_action.go @@ -0,0 +1,39 @@ +package models +import ( + "errors" +) +type UserAction int + +const ( + REGISTERSECURITYINFORMATION_USERACTION UserAction = iota + REGISTERORJOINDEVICES_USERACTION + UNKNOWNFUTUREVALUE_USERACTION +) + +func (i UserAction) String() string { + return []string{"registerSecurityInformation", "registerOrJoinDevices", "unknownFutureValue"}[i] +} +func ParseUserAction(v string) (any, error) { + result := REGISTERSECURITYINFORMATION_USERACTION + switch v { + case "registerSecurityInformation": + result = REGISTERSECURITYINFORMATION_USERACTION + case "registerOrJoinDevices": + result = REGISTERORJOINDEVICES_USERACTION + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_USERACTION + default: + return 0, errors.New("Unknown UserAction value: " + v) + } + return &result, nil +} +func SerializeUserAction(values []UserAction) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i UserAction) isMultiValue() bool { + return false +} diff --git a/models/user_settings.go b/models/user_settings.go index 1eba4b1ba65..b5871707570 100644 --- a/models/user_settings.go +++ b/models/user_settings.go @@ -173,7 +173,7 @@ func (m *UserSettings) GetShiftPreferences()(ShiftPreferencesable) { } return nil } -// GetWindows gets the windows property value. The windows property +// GetWindows gets the windows property value. The Windows settings of the user stored in the cloud. // returns a []WindowsSettingable when successful func (m *UserSettings) GetWindows()([]WindowsSettingable) { val, err := m.GetBackingStore().Get("windows") @@ -283,7 +283,7 @@ func (m *UserSettings) SetShiftPreferences(value ShiftPreferencesable)() { panic(err) } } -// SetWindows sets the windows property value. The windows property +// SetWindows sets the windows property value. The Windows settings of the user stored in the cloud. func (m *UserSettings) SetWindows(value []WindowsSettingable)() { err := m.GetBackingStore().Set("windows", value) if err != nil { diff --git a/models/user_subject.go b/models/user_subject.go new file mode 100644 index 00000000000..f62a64c683e --- /dev/null +++ b/models/user_subject.go @@ -0,0 +1,153 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type UserSubject struct { + ConditionalAccessWhatIfSubject +} +// NewUserSubject instantiates a new UserSubject and sets the default values. +func NewUserSubject()(*UserSubject) { + m := &UserSubject{ + ConditionalAccessWhatIfSubject: *NewConditionalAccessWhatIfSubject(), + } + odataTypeValue := "#microsoft.graph.userSubject" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateUserSubjectFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUserSubjectFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUserSubject(), nil +} +// GetExternalTenantId gets the externalTenantId property value. The externalTenantId property +// returns a *string when successful +func (m *UserSubject) GetExternalTenantId()(*string) { + val, err := m.GetBackingStore().Get("externalTenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetExternalUserType gets the externalUserType property value. The externalUserType property +// returns a *ConditionalAccessGuestOrExternalUserTypes when successful +func (m *UserSubject) GetExternalUserType()(*ConditionalAccessGuestOrExternalUserTypes) { + val, err := m.GetBackingStore().Get("externalUserType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionalAccessGuestOrExternalUserTypes) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UserSubject) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ConditionalAccessWhatIfSubject.GetFieldDeserializers() + res["externalTenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExternalTenantId(val) + } + return nil + } + res["externalUserType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionalAccessGuestOrExternalUserTypes) + if err != nil { + return err + } + if val != nil { + m.SetExternalUserType(val.(*ConditionalAccessGuestOrExternalUserTypes)) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + return res +} +// GetUserId gets the userId property value. The userId property +// returns a *string when successful +func (m *UserSubject) GetUserId()(*string) { + val, err := m.GetBackingStore().Get("userId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *UserSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ConditionalAccessWhatIfSubject.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("externalTenantId", m.GetExternalTenantId()) + if err != nil { + return err + } + } + if m.GetExternalUserType() != nil { + cast := (*m.GetExternalUserType()).String() + err = writer.WriteStringValue("externalUserType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + return nil +} +// SetExternalTenantId sets the externalTenantId property value. The externalTenantId property +func (m *UserSubject) SetExternalTenantId(value *string)() { + err := m.GetBackingStore().Set("externalTenantId", value) + if err != nil { + panic(err) + } +} +// SetExternalUserType sets the externalUserType property value. The externalUserType property +func (m *UserSubject) SetExternalUserType(value *ConditionalAccessGuestOrExternalUserTypes)() { + err := m.GetBackingStore().Set("externalUserType", value) + if err != nil { + panic(err) + } +} +// SetUserId sets the userId property value. The userId property +func (m *UserSubject) SetUserId(value *string)() { + err := m.GetBackingStore().Set("userId", value) + if err != nil { + panic(err) + } +} +type UserSubjectable interface { + ConditionalAccessWhatIfSubjectable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetExternalTenantId()(*string) + GetExternalUserType()(*ConditionalAccessGuestOrExternalUserTypes) + GetUserId()(*string) + SetExternalTenantId(value *string)() + SetExternalUserType(value *ConditionalAccessGuestOrExternalUserTypes)() + SetUserId(value *string)() +} diff --git a/models/what_if_application_context.go b/models/what_if_application_context.go new file mode 100644 index 00000000000..3b915202f1b --- /dev/null +++ b/models/what_if_application_context.go @@ -0,0 +1,84 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type WhatIfApplicationContext struct { + ConditionalAccessContext +} +// NewWhatIfApplicationContext instantiates a new WhatIfApplicationContext and sets the default values. +func NewWhatIfApplicationContext()(*WhatIfApplicationContext) { + m := &WhatIfApplicationContext{ + ConditionalAccessContext: *NewConditionalAccessContext(), + } + odataTypeValue := "#microsoft.graph.whatIfApplicationContext" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateWhatIfApplicationContextFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWhatIfApplicationContextFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWhatIfApplicationContext(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WhatIfApplicationContext) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ConditionalAccessContext.GetFieldDeserializers() + res["includeApplications"] = 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.SetIncludeApplications(res) + } + return nil + } + return res +} +// GetIncludeApplications gets the includeApplications property value. The includeApplications property +// returns a []string when successful +func (m *WhatIfApplicationContext) GetIncludeApplications()([]string) { + val, err := m.GetBackingStore().Get("includeApplications") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// Serialize serializes information the current object +func (m *WhatIfApplicationContext) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ConditionalAccessContext.Serialize(writer) + if err != nil { + return err + } + if m.GetIncludeApplications() != nil { + err = writer.WriteCollectionOfStringValues("includeApplications", m.GetIncludeApplications()) + if err != nil { + return err + } + } + return nil +} +// SetIncludeApplications sets the includeApplications property value. The includeApplications property +func (m *WhatIfApplicationContext) SetIncludeApplications(value []string)() { + err := m.GetBackingStore().Set("includeApplications", value) + if err != nil { + panic(err) + } +} +type WhatIfApplicationContextable interface { + ConditionalAccessContextable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetIncludeApplications()([]string) + SetIncludeApplications(value []string)() +} diff --git a/models/what_if_authentication_context.go b/models/what_if_authentication_context.go new file mode 100644 index 00000000000..ca2408dc8ad --- /dev/null +++ b/models/what_if_authentication_context.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type WhatIfAuthenticationContext struct { + ConditionalAccessContext +} +// NewWhatIfAuthenticationContext instantiates a new WhatIfAuthenticationContext and sets the default values. +func NewWhatIfAuthenticationContext()(*WhatIfAuthenticationContext) { + m := &WhatIfAuthenticationContext{ + ConditionalAccessContext: *NewConditionalAccessContext(), + } + odataTypeValue := "#microsoft.graph.whatIfAuthenticationContext" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateWhatIfAuthenticationContextFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWhatIfAuthenticationContextFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWhatIfAuthenticationContext(), nil +} +// GetAuthenticationContext gets the authenticationContext property value. The authenticationContext property +// returns a *string when successful +func (m *WhatIfAuthenticationContext) GetAuthenticationContext()(*string) { + val, err := m.GetBackingStore().Get("authenticationContext") + 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 *WhatIfAuthenticationContext) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ConditionalAccessContext.GetFieldDeserializers() + res["authenticationContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAuthenticationContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *WhatIfAuthenticationContext) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ConditionalAccessContext.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("authenticationContext", m.GetAuthenticationContext()) + if err != nil { + return err + } + } + return nil +} +// SetAuthenticationContext sets the authenticationContext property value. The authenticationContext property +func (m *WhatIfAuthenticationContext) SetAuthenticationContext(value *string)() { + err := m.GetBackingStore().Set("authenticationContext", value) + if err != nil { + panic(err) + } +} +type WhatIfAuthenticationContextable interface { + ConditionalAccessContextable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthenticationContext()(*string) + SetAuthenticationContext(value *string)() +} diff --git a/models/what_if_user_action_context.go b/models/what_if_user_action_context.go new file mode 100644 index 00000000000..38a652a1dce --- /dev/null +++ b/models/what_if_user_action_context.go @@ -0,0 +1,79 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type WhatIfUserActionContext struct { + ConditionalAccessContext +} +// NewWhatIfUserActionContext instantiates a new WhatIfUserActionContext and sets the default values. +func NewWhatIfUserActionContext()(*WhatIfUserActionContext) { + m := &WhatIfUserActionContext{ + ConditionalAccessContext: *NewConditionalAccessContext(), + } + odataTypeValue := "#microsoft.graph.whatIfUserActionContext" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateWhatIfUserActionContextFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWhatIfUserActionContextFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWhatIfUserActionContext(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WhatIfUserActionContext) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ConditionalAccessContext.GetFieldDeserializers() + res["userAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseUserAction) + if err != nil { + return err + } + if val != nil { + m.SetUserAction(val.(*UserAction)) + } + return nil + } + return res +} +// GetUserAction gets the userAction property value. The userAction property +// returns a *UserAction when successful +func (m *WhatIfUserActionContext) GetUserAction()(*UserAction) { + val, err := m.GetBackingStore().Get("userAction") + if err != nil { + panic(err) + } + if val != nil { + return val.(*UserAction) + } + return nil +} +// Serialize serializes information the current object +func (m *WhatIfUserActionContext) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ConditionalAccessContext.Serialize(writer) + if err != nil { + return err + } + if m.GetUserAction() != nil { + cast := (*m.GetUserAction()).String() + err = writer.WriteStringValue("userAction", &cast) + if err != nil { + return err + } + } + return nil +} +// SetUserAction sets the userAction property value. The userAction property +func (m *WhatIfUserActionContext) SetUserAction(value *UserAction)() { + err := m.GetBackingStore().Set("userAction", value) + if err != nil { + panic(err) + } +} +type WhatIfUserActionContextable interface { + ConditionalAccessContextable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUserAction()(*UserAction) + SetUserAction(value *UserAction)() +} diff --git a/models/win32_catalog_app.go b/models/win32_catalog_app.go index a71921b01c8..7b6e0348805 100644 --- a/models/win32_catalog_app.go +++ b/models/win32_catalog_app.go @@ -26,6 +26,16 @@ func CreateWin32CatalogAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Win32CatalogApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Win32LobApp.GetFieldDeserializers() + res["latestUpgradeCatalogPackage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMobileAppCatalogPackageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetLatestUpgradeCatalogPackage(val.(MobileAppCatalogPackageable)) + } + return nil + } res["mobileAppCatalogPackageId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,8 +46,30 @@ func (m *Win32CatalogApp) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["referencedCatalogPackage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMobileAppCatalogPackageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetReferencedCatalogPackage(val.(MobileAppCatalogPackageable)) + } + return nil + } return res } +// GetLatestUpgradeCatalogPackage gets the latestUpgradeCatalogPackage property value. The latest available catalog package the app is upgradeable to. This property is read-only. +// returns a MobileAppCatalogPackageable when successful +func (m *Win32CatalogApp) GetLatestUpgradeCatalogPackage()(MobileAppCatalogPackageable) { + val, err := m.GetBackingStore().Get("latestUpgradeCatalogPackage") + if err != nil { + panic(err) + } + if val != nil { + return val.(MobileAppCatalogPackageable) + } + return nil +} // GetMobileAppCatalogPackageId gets the mobileAppCatalogPackageId property value. The mobileAppCatalogPackageId property references the mobileAppCatalogPackage entity which contains information about an application catalog package that can be deployed to Intune-managed devices // returns a *string when successful func (m *Win32CatalogApp) GetMobileAppCatalogPackageId()(*string) { @@ -50,20 +82,51 @@ func (m *Win32CatalogApp) GetMobileAppCatalogPackageId()(*string) { } return nil } +// GetReferencedCatalogPackage gets the referencedCatalogPackage property value. The current catalog package the app is synced from. This property is read-only. +// returns a MobileAppCatalogPackageable when successful +func (m *Win32CatalogApp) GetReferencedCatalogPackage()(MobileAppCatalogPackageable) { + val, err := m.GetBackingStore().Get("referencedCatalogPackage") + if err != nil { + panic(err) + } + if val != nil { + return val.(MobileAppCatalogPackageable) + } + return nil +} // Serialize serializes information the current object func (m *Win32CatalogApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Win32LobApp.Serialize(writer) if err != nil { return err } + { + err = writer.WriteObjectValue("latestUpgradeCatalogPackage", m.GetLatestUpgradeCatalogPackage()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("mobileAppCatalogPackageId", m.GetMobileAppCatalogPackageId()) if err != nil { return err } } + { + err = writer.WriteObjectValue("referencedCatalogPackage", m.GetReferencedCatalogPackage()) + if err != nil { + return err + } + } return nil } +// SetLatestUpgradeCatalogPackage sets the latestUpgradeCatalogPackage property value. The latest available catalog package the app is upgradeable to. This property is read-only. +func (m *Win32CatalogApp) SetLatestUpgradeCatalogPackage(value MobileAppCatalogPackageable)() { + err := m.GetBackingStore().Set("latestUpgradeCatalogPackage", value) + if err != nil { + panic(err) + } +} // SetMobileAppCatalogPackageId sets the mobileAppCatalogPackageId property value. The mobileAppCatalogPackageId property references the mobileAppCatalogPackage entity which contains information about an application catalog package that can be deployed to Intune-managed devices func (m *Win32CatalogApp) SetMobileAppCatalogPackageId(value *string)() { err := m.GetBackingStore().Set("mobileAppCatalogPackageId", value) @@ -71,9 +134,20 @@ func (m *Win32CatalogApp) SetMobileAppCatalogPackageId(value *string)() { panic(err) } } +// SetReferencedCatalogPackage sets the referencedCatalogPackage property value. The current catalog package the app is synced from. This property is read-only. +func (m *Win32CatalogApp) SetReferencedCatalogPackage(value MobileAppCatalogPackageable)() { + err := m.GetBackingStore().Set("referencedCatalogPackage", value) + if err != nil { + panic(err) + } +} type Win32CatalogAppable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Win32LobAppable + GetLatestUpgradeCatalogPackage()(MobileAppCatalogPackageable) GetMobileAppCatalogPackageId()(*string) + GetReferencedCatalogPackage()(MobileAppCatalogPackageable) + SetLatestUpgradeCatalogPackage(value MobileAppCatalogPackageable)() SetMobileAppCatalogPackageId(value *string)() + SetReferencedCatalogPackage(value MobileAppCatalogPackageable)() } diff --git a/models/win32_mobile_app_catalog_package.go b/models/win32_mobile_app_catalog_package.go new file mode 100644 index 00000000000..aad5412b39e --- /dev/null +++ b/models/win32_mobile_app_catalog_package.go @@ -0,0 +1,179 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Win32MobileAppCatalogPackage win32MobileAppCatalogPackage extends mobileAppCatalogPackage by providing information necessary for the creation of a win32CatalogApp instance. +type Win32MobileAppCatalogPackage struct { + MobileAppCatalogPackage +} +// NewWin32MobileAppCatalogPackage instantiates a new Win32MobileAppCatalogPackage and sets the default values. +func NewWin32MobileAppCatalogPackage()(*Win32MobileAppCatalogPackage) { + m := &Win32MobileAppCatalogPackage{ + MobileAppCatalogPackage: *NewMobileAppCatalogPackage(), + } + odataTypeValue := "#microsoft.graph.win32MobileAppCatalogPackage" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateWin32MobileAppCatalogPackageFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWin32MobileAppCatalogPackageFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWin32MobileAppCatalogPackage(), nil +} +// GetApplicableArchitectures gets the applicableArchitectures property value. Contains properties for Windows architecture. +// returns a *WindowsArchitecture when successful +func (m *Win32MobileAppCatalogPackage) GetApplicableArchitectures()(*WindowsArchitecture) { + val, err := m.GetBackingStore().Get("applicableArchitectures") + if err != nil { + panic(err) + } + if val != nil { + return val.(*WindowsArchitecture) + } + return nil +} +// GetBranchDisplayName gets the branchDisplayName property value. The product branch name, which is a specific subset of product functionality as defined by the publisher (example: "Fabrikam for Business (x64)"). A specific product will have one or more branchDisplayNames. Read-only. Supports $filter, $search, $select. This property is read-only. +// returns a *string when successful +func (m *Win32MobileAppCatalogPackage) GetBranchDisplayName()(*string) { + val, err := m.GetBackingStore().Get("branchDisplayName") + 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 *Win32MobileAppCatalogPackage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MobileAppCatalogPackage.GetFieldDeserializers() + res["applicableArchitectures"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWindowsArchitecture) + if err != nil { + return err + } + if val != nil { + m.SetApplicableArchitectures(val.(*WindowsArchitecture)) + } + return nil + } + res["branchDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBranchDisplayName(val) + } + return nil + } + res["locales"] = 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.SetLocales(res) + } + return nil + } + res["packageAutoUpdateCapable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPackageAutoUpdateCapable(val) + } + return nil + } + return res +} +// GetLocales gets the locales property value. One or more locale(s) supported by the branch. Value is a two-letter ISO 639 language tags with optional two-letter subtags (example: en-US, ko, de, de-DE), or mul to indicate multi-language. Read-only. This property is read-only. +// returns a []string when successful +func (m *Win32MobileAppCatalogPackage) GetLocales()([]string) { + val, err := m.GetBackingStore().Get("locales") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetPackageAutoUpdateCapable gets the packageAutoUpdateCapable property value. Indicates whether the package is capable to auto-update to latest when software/application updates are available. When TRUE, it indicates it is an auto-updating application. When FALSE, it indicates that it is not an auto-updating application. This property is read-only. +// returns a *bool when successful +func (m *Win32MobileAppCatalogPackage) GetPackageAutoUpdateCapable()(*bool) { + val, err := m.GetBackingStore().Get("packageAutoUpdateCapable") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *Win32MobileAppCatalogPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MobileAppCatalogPackage.Serialize(writer) + if err != nil { + return err + } + if m.GetApplicableArchitectures() != nil { + cast := (*m.GetApplicableArchitectures()).String() + err = writer.WriteStringValue("applicableArchitectures", &cast) + if err != nil { + return err + } + } + return nil +} +// SetApplicableArchitectures sets the applicableArchitectures property value. Contains properties for Windows architecture. +func (m *Win32MobileAppCatalogPackage) SetApplicableArchitectures(value *WindowsArchitecture)() { + err := m.GetBackingStore().Set("applicableArchitectures", value) + if err != nil { + panic(err) + } +} +// SetBranchDisplayName sets the branchDisplayName property value. The product branch name, which is a specific subset of product functionality as defined by the publisher (example: "Fabrikam for Business (x64)"). A specific product will have one or more branchDisplayNames. Read-only. Supports $filter, $search, $select. This property is read-only. +func (m *Win32MobileAppCatalogPackage) SetBranchDisplayName(value *string)() { + err := m.GetBackingStore().Set("branchDisplayName", value) + if err != nil { + panic(err) + } +} +// SetLocales sets the locales property value. One or more locale(s) supported by the branch. Value is a two-letter ISO 639 language tags with optional two-letter subtags (example: en-US, ko, de, de-DE), or mul to indicate multi-language. Read-only. This property is read-only. +func (m *Win32MobileAppCatalogPackage) SetLocales(value []string)() { + err := m.GetBackingStore().Set("locales", value) + if err != nil { + panic(err) + } +} +// SetPackageAutoUpdateCapable sets the packageAutoUpdateCapable property value. Indicates whether the package is capable to auto-update to latest when software/application updates are available. When TRUE, it indicates it is an auto-updating application. When FALSE, it indicates that it is not an auto-updating application. This property is read-only. +func (m *Win32MobileAppCatalogPackage) SetPackageAutoUpdateCapable(value *bool)() { + err := m.GetBackingStore().Set("packageAutoUpdateCapable", value) + if err != nil { + panic(err) + } +} +type Win32MobileAppCatalogPackageable interface { + MobileAppCatalogPackageable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplicableArchitectures()(*WindowsArchitecture) + GetBranchDisplayName()(*string) + GetLocales()([]string) + GetPackageAutoUpdateCapable()(*bool) + SetApplicableArchitectures(value *WindowsArchitecture)() + SetBranchDisplayName(value *string)() + SetLocales(value []string)() + SetPackageAutoUpdateCapable(value *bool)() +} diff --git a/models/windows10_enrollment_completion_page_configuration.go b/models/windows10_enrollment_completion_page_configuration.go index 87ba83d4a8f..1dd63c3f6d5 100644 --- a/models/windows10_enrollment_completion_page_configuration.go +++ b/models/windows10_enrollment_completion_page_configuration.go @@ -22,7 +22,7 @@ func NewWindows10EnrollmentCompletionPageConfiguration()(*Windows10EnrollmentCom func CreateWindows10EnrollmentCompletionPageConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWindows10EnrollmentCompletionPageConfiguration(), nil } -// GetAllowDeviceResetOnInstallFailure gets the allowDeviceResetOnInstallFailure property value. Allow or block device reset on installation failure +// GetAllowDeviceResetOnInstallFailure gets the allowDeviceResetOnInstallFailure property value. When TRUE, allows device reset on installation failure. When false, reset is blocked. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowDeviceResetOnInstallFailure()(*bool) { val, err := m.GetBackingStore().Get("allowDeviceResetOnInstallFailure") @@ -34,7 +34,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowDeviceResetOnIn } return nil } -// GetAllowDeviceUseOnInstallFailure gets the allowDeviceUseOnInstallFailure property value. Allow the user to continue using the device on installation failure +// GetAllowDeviceUseOnInstallFailure gets the allowDeviceUseOnInstallFailure property value. When TRUE, allows the user to continue using the device on installation failure. When false, blocks the user on installation failure. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowDeviceUseOnInstallFailure()(*bool) { val, err := m.GetBackingStore().Get("allowDeviceUseOnInstallFailure") @@ -46,7 +46,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowDeviceUseOnInst } return nil } -// GetAllowLogCollectionOnInstallFailure gets the allowLogCollectionOnInstallFailure property value. Allow or block log collection on installation failure +// GetAllowLogCollectionOnInstallFailure gets the allowLogCollectionOnInstallFailure property value. When TRUE, allows log collection on installation failure. When false, log collection is not allowed. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowLogCollectionOnInstallFailure()(*bool) { val, err := m.GetBackingStore().Get("allowLogCollectionOnInstallFailure") @@ -58,7 +58,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowLogCollectionOn } return nil } -// GetAllowNonBlockingAppInstallation gets the allowNonBlockingAppInstallation property value. Install all required apps as non blocking apps during white glove +// GetAllowNonBlockingAppInstallation gets the allowNonBlockingAppInstallation property value. When TRUE, ESP (Enrollment Status Page) installs all required apps targeted during technician phase and ignores any failures for non-blocking apps. When FALSE, ESP fails on any error during app install. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowNonBlockingAppInstallation()(*bool) { val, err := m.GetBackingStore().Get("allowNonBlockingAppInstallation") @@ -70,7 +70,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetAllowNonBlockingAppI } return nil } -// GetBlockDeviceSetupRetryByUser gets the blockDeviceSetupRetryByUser property value. Allow the user to retry the setup on installation failure +// GetBlockDeviceSetupRetryByUser gets the blockDeviceSetupRetryByUser property value. When TRUE, blocks user from retrying the setup on installation failure. When false, user is allowed to retry. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetBlockDeviceSetupRetryByUser()(*bool) { val, err := m.GetBackingStore().Get("blockDeviceSetupRetryByUser") @@ -82,7 +82,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetBlockDeviceSetupRetr } return nil } -// GetCustomErrorMessage gets the customErrorMessage property value. Set custom error message to show upon installation failure +// GetCustomErrorMessage gets the customErrorMessage property value. The custom error message to show upon installation failure. Max length is 10000. example: 'Setup could not be completed. Please try again or contact your support person for help.' // returns a *string when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetCustomErrorMessage()(*string) { val, err := m.GetBackingStore().Get("customErrorMessage") @@ -94,7 +94,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetCustomErrorMessage() } return nil } -// GetDisableUserStatusTrackingAfterFirstUser gets the disableUserStatusTrackingAfterFirstUser property value. Only show installation progress for first user post enrollment +// GetDisableUserStatusTrackingAfterFirstUser gets the disableUserStatusTrackingAfterFirstUser property value. When TRUE, disables showing installation progress for first user post enrollment. When false, enables showing progress. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetDisableUserStatusTrackingAfterFirstUser()(*bool) { val, err := m.GetBackingStore().Get("disableUserStatusTrackingAfterFirstUser") @@ -238,7 +238,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetFieldDeserializers() } return res } -// GetInstallProgressTimeoutInMinutes gets the installProgressTimeoutInMinutes property value. Set installation progress timeout in minutes +// GetInstallProgressTimeoutInMinutes gets the installProgressTimeoutInMinutes property value. The installation progress timeout in minutes. Default is 60 minutes. // returns a *int32 when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetInstallProgressTimeoutInMinutes()(*int32) { val, err := m.GetBackingStore().Get("installProgressTimeoutInMinutes") @@ -262,7 +262,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetInstallQualityUpdate } return nil } -// GetSelectedMobileAppIds gets the selectedMobileAppIds property value. Selected applications to track the installation status +// GetSelectedMobileAppIds gets the selectedMobileAppIds property value. Selected applications to track the installation status. It is in the form of an array of GUIDs. // returns a []string when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetSelectedMobileAppIds()([]string) { val, err := m.GetBackingStore().Get("selectedMobileAppIds") @@ -274,7 +274,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetSelectedMobileAppIds } return nil } -// GetShowInstallationProgress gets the showInstallationProgress property value. Show or hide installation progress to user +// GetShowInstallationProgress gets the showInstallationProgress property value. When TRUE, shows installation progress to user. When false, hides installation progress. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetShowInstallationProgress()(*bool) { val, err := m.GetBackingStore().Get("showInstallationProgress") @@ -286,7 +286,7 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) GetShowInstallationProg } return nil } -// GetTrackInstallProgressForAutopilotOnly gets the trackInstallProgressForAutopilotOnly property value. Only show installation progress for Autopilot enrollment scenarios +// GetTrackInstallProgressForAutopilotOnly gets the trackInstallProgressForAutopilotOnly property value. When TRUE, installation progress is tracked for only Autopilot enrollment scenarios. When false, other scenarios are tracked as well. The default is false. // returns a *bool when successful func (m *Windows10EnrollmentCompletionPageConfiguration) GetTrackInstallProgressForAutopilotOnly()(*bool) { val, err := m.GetBackingStore().Get("trackInstallProgressForAutopilotOnly") @@ -378,56 +378,56 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) Serialize(writer i878a8 } return nil } -// SetAllowDeviceResetOnInstallFailure sets the allowDeviceResetOnInstallFailure property value. Allow or block device reset on installation failure +// SetAllowDeviceResetOnInstallFailure sets the allowDeviceResetOnInstallFailure property value. When TRUE, allows device reset on installation failure. When false, reset is blocked. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetAllowDeviceResetOnInstallFailure(value *bool)() { err := m.GetBackingStore().Set("allowDeviceResetOnInstallFailure", value) if err != nil { panic(err) } } -// SetAllowDeviceUseOnInstallFailure sets the allowDeviceUseOnInstallFailure property value. Allow the user to continue using the device on installation failure +// SetAllowDeviceUseOnInstallFailure sets the allowDeviceUseOnInstallFailure property value. When TRUE, allows the user to continue using the device on installation failure. When false, blocks the user on installation failure. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetAllowDeviceUseOnInstallFailure(value *bool)() { err := m.GetBackingStore().Set("allowDeviceUseOnInstallFailure", value) if err != nil { panic(err) } } -// SetAllowLogCollectionOnInstallFailure sets the allowLogCollectionOnInstallFailure property value. Allow or block log collection on installation failure +// SetAllowLogCollectionOnInstallFailure sets the allowLogCollectionOnInstallFailure property value. When TRUE, allows log collection on installation failure. When false, log collection is not allowed. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetAllowLogCollectionOnInstallFailure(value *bool)() { err := m.GetBackingStore().Set("allowLogCollectionOnInstallFailure", value) if err != nil { panic(err) } } -// SetAllowNonBlockingAppInstallation sets the allowNonBlockingAppInstallation property value. Install all required apps as non blocking apps during white glove +// SetAllowNonBlockingAppInstallation sets the allowNonBlockingAppInstallation property value. When TRUE, ESP (Enrollment Status Page) installs all required apps targeted during technician phase and ignores any failures for non-blocking apps. When FALSE, ESP fails on any error during app install. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetAllowNonBlockingAppInstallation(value *bool)() { err := m.GetBackingStore().Set("allowNonBlockingAppInstallation", value) if err != nil { panic(err) } } -// SetBlockDeviceSetupRetryByUser sets the blockDeviceSetupRetryByUser property value. Allow the user to retry the setup on installation failure +// SetBlockDeviceSetupRetryByUser sets the blockDeviceSetupRetryByUser property value. When TRUE, blocks user from retrying the setup on installation failure. When false, user is allowed to retry. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetBlockDeviceSetupRetryByUser(value *bool)() { err := m.GetBackingStore().Set("blockDeviceSetupRetryByUser", value) if err != nil { panic(err) } } -// SetCustomErrorMessage sets the customErrorMessage property value. Set custom error message to show upon installation failure +// SetCustomErrorMessage sets the customErrorMessage property value. The custom error message to show upon installation failure. Max length is 10000. example: 'Setup could not be completed. Please try again or contact your support person for help.' func (m *Windows10EnrollmentCompletionPageConfiguration) SetCustomErrorMessage(value *string)() { err := m.GetBackingStore().Set("customErrorMessage", value) if err != nil { panic(err) } } -// SetDisableUserStatusTrackingAfterFirstUser sets the disableUserStatusTrackingAfterFirstUser property value. Only show installation progress for first user post enrollment +// SetDisableUserStatusTrackingAfterFirstUser sets the disableUserStatusTrackingAfterFirstUser property value. When TRUE, disables showing installation progress for first user post enrollment. When false, enables showing progress. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetDisableUserStatusTrackingAfterFirstUser(value *bool)() { err := m.GetBackingStore().Set("disableUserStatusTrackingAfterFirstUser", value) if err != nil { panic(err) } } -// SetInstallProgressTimeoutInMinutes sets the installProgressTimeoutInMinutes property value. Set installation progress timeout in minutes +// SetInstallProgressTimeoutInMinutes sets the installProgressTimeoutInMinutes property value. The installation progress timeout in minutes. Default is 60 minutes. func (m *Windows10EnrollmentCompletionPageConfiguration) SetInstallProgressTimeoutInMinutes(value *int32)() { err := m.GetBackingStore().Set("installProgressTimeoutInMinutes", value) if err != nil { @@ -441,21 +441,21 @@ func (m *Windows10EnrollmentCompletionPageConfiguration) SetInstallQualityUpdate panic(err) } } -// SetSelectedMobileAppIds sets the selectedMobileAppIds property value. Selected applications to track the installation status +// SetSelectedMobileAppIds sets the selectedMobileAppIds property value. Selected applications to track the installation status. It is in the form of an array of GUIDs. func (m *Windows10EnrollmentCompletionPageConfiguration) SetSelectedMobileAppIds(value []string)() { err := m.GetBackingStore().Set("selectedMobileAppIds", value) if err != nil { panic(err) } } -// SetShowInstallationProgress sets the showInstallationProgress property value. Show or hide installation progress to user +// SetShowInstallationProgress sets the showInstallationProgress property value. When TRUE, shows installation progress to user. When false, hides installation progress. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetShowInstallationProgress(value *bool)() { err := m.GetBackingStore().Set("showInstallationProgress", value) if err != nil { panic(err) } } -// SetTrackInstallProgressForAutopilotOnly sets the trackInstallProgressForAutopilotOnly property value. Only show installation progress for Autopilot enrollment scenarios +// SetTrackInstallProgressForAutopilotOnly sets the trackInstallProgressForAutopilotOnly property value. When TRUE, installation progress is tracked for only Autopilot enrollment scenarios. When false, other scenarios are tracked as well. The default is false. func (m *Windows10EnrollmentCompletionPageConfiguration) SetTrackInstallProgressForAutopilotOnly(value *bool)() { err := m.GetBackingStore().Set("trackInstallProgressForAutopilotOnly", value) if err != nil { diff --git a/models/windows_setting.go b/models/windows_setting.go index 51751ae30be..08a81086156 100644 --- a/models/windows_setting.go +++ b/models/windows_setting.go @@ -71,7 +71,7 @@ func (m *WindowsSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetInstances gets the instances property value. The instances property +// GetInstances gets the instances property value. A collection of setting values for a given windowsSetting. // returns a []WindowsSettingInstanceable when successful func (m *WindowsSetting) GetInstances()([]WindowsSettingInstanceable) { val, err := m.GetBackingStore().Get("instances") @@ -83,7 +83,7 @@ func (m *WindowsSetting) GetInstances()([]WindowsSettingInstanceable) { } return nil } -// GetPayloadType gets the payloadType property value. The payloadType property +// GetPayloadType gets the payloadType property value. The type of setting payloads contained in the instances navigation property. // returns a *string when successful func (m *WindowsSetting) GetPayloadType()(*string) { val, err := m.GetBackingStore().Get("payloadType") @@ -107,7 +107,7 @@ func (m *WindowsSetting) GetSettingType()(*WindowsSettingType) { } return nil } -// GetWindowsDeviceId gets the windowsDeviceId property value. The windowsDeviceId property +// GetWindowsDeviceId gets the windowsDeviceId property value. A unique identifier for the device the setting might belong to if it is of the settingType backup. // returns a *string when successful func (m *WindowsSetting) GetWindowsDeviceId()(*string) { val, err := m.GetBackingStore().Get("windowsDeviceId") @@ -158,14 +158,14 @@ func (m *WindowsSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a } return nil } -// SetInstances sets the instances property value. The instances property +// SetInstances sets the instances property value. A collection of setting values for a given windowsSetting. func (m *WindowsSetting) SetInstances(value []WindowsSettingInstanceable)() { err := m.GetBackingStore().Set("instances", value) if err != nil { panic(err) } } -// SetPayloadType sets the payloadType property value. The payloadType property +// SetPayloadType sets the payloadType property value. The type of setting payloads contained in the instances navigation property. func (m *WindowsSetting) SetPayloadType(value *string)() { err := m.GetBackingStore().Set("payloadType", value) if err != nil { @@ -179,7 +179,7 @@ func (m *WindowsSetting) SetSettingType(value *WindowsSettingType)() { panic(err) } } -// SetWindowsDeviceId sets the windowsDeviceId property value. The windowsDeviceId property +// SetWindowsDeviceId sets the windowsDeviceId property value. A unique identifier for the device the setting might belong to if it is of the settingType backup. func (m *WindowsSetting) SetWindowsDeviceId(value *string)() { err := m.GetBackingStore().Set("windowsDeviceId", value) if err != nil { diff --git a/models/windows_setting_instance.go b/models/windows_setting_instance.go index 53d1ae6cfbc..716f7e0bde8 100644 --- a/models/windows_setting_instance.go +++ b/models/windows_setting_instance.go @@ -20,7 +20,7 @@ func NewWindowsSettingInstance()(*WindowsSettingInstance) { func CreateWindowsSettingInstanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWindowsSettingInstance(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Set by the server. Represents the dateTime in UTC when the object was created on the server. // returns a *Time when successful func (m *WindowsSettingInstance) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -32,7 +32,7 @@ func (m *WindowsSettingInstance) GetCreatedDateTime()(*i336074805fc853987abe6f7f } return nil } -// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property +// GetExpirationDateTime gets the expirationDateTime property value. Set by the server. The object expires at the specified dateTime in UTC, making it unavailable after that time. // returns a *Time when successful func (m *WindowsSettingInstance) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") @@ -90,7 +90,7 @@ func (m *WindowsSettingInstance) GetFieldDeserializers()(map[string]func(i878a80 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Set by the server if not provided in the request from the Windows client device. Refers to the user's Windows device that modified the object at the specified dateTime in UTC. // returns a *Time when successful func (m *WindowsSettingInstance) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -102,7 +102,7 @@ func (m *WindowsSettingInstance) GetLastModifiedDateTime()(*i336074805fc853987ab } return nil } -// GetPayload gets the payload property value. The payload property +// GetPayload gets the payload property value. Base64-encoded JSON setting value. // returns a *string when successful func (m *WindowsSettingInstance) GetPayload()(*string) { val, err := m.GetBackingStore().Get("payload") @@ -146,28 +146,28 @@ func (m *WindowsSettingInstance) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Set by the server. Represents the dateTime in UTC when the object was created on the server. func (m *WindowsSettingInstance) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property +// SetExpirationDateTime sets the expirationDateTime property value. Set by the server. The object expires at the specified dateTime in UTC, making it unavailable after that time. func (m *WindowsSettingInstance) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Set by the server if not provided in the request from the Windows client device. Refers to the user's Windows device that modified the object at the specified dateTime in UTC. func (m *WindowsSettingInstance) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetPayload sets the payload property value. The payload property +// SetPayload sets the payload property value. Base64-encoded JSON setting value. func (m *WindowsSettingInstance) SetPayload(value *string)() { err := m.GetBackingStore().Set("payload", value) if err != nil { diff --git a/models/windows_universal_app_x.go b/models/windows_universal_app_x.go index 0fdc0dfc1e1..56d75688c09 100644 --- a/models/windows_universal_app_x.go +++ b/models/windows_universal_app_x.go @@ -46,7 +46,7 @@ func (m *WindowsUniversalAppX) GetApplicableDeviceTypes()(*WindowsDeviceType) { } return nil } -// GetCommittedContainedApps gets the committedContainedApps property value. The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// GetCommittedContainedApps gets the committedContainedApps property value. The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. // returns a []MobileContainedAppable when successful func (m *WindowsUniversalAppX) GetCommittedContainedApps()([]MobileContainedAppable) { val, err := m.GetBackingStore().Get("committedContainedApps") @@ -316,7 +316,7 @@ func (m *WindowsUniversalAppX) SetApplicableDeviceTypes(value *WindowsDeviceType panic(err) } } -// SetCommittedContainedApps sets the committedContainedApps property value. The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. +// SetCommittedContainedApps sets the committedContainedApps property value. The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. This property is read-only. func (m *WindowsUniversalAppX) SetCommittedContainedApps(value []MobileContainedAppable)() { err := m.GetBackingStore().Set("committedContainedApps", 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 fc347495bb4..98044527a48 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. Whether or not to use device execution context for Windows Universal AppX mobile app. +// 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. // 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. Whether or not to use device execution context for Windows Universal AppX mobile app. +// 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. func (m *WindowsUniversalAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/models/windowsupdates/body_type.go b/models/windowsupdates/body_type.go new file mode 100644 index 00000000000..ce1e2ad6969 --- /dev/null +++ b/models/windowsupdates/body_type.go @@ -0,0 +1,39 @@ +package windowsupdates +import ( + "errors" +) +type BodyType int + +const ( + TEXT_BODYTYPE BodyType = iota + HTML_BODYTYPE + UNKNOWNFUTUREVALUE_BODYTYPE +) + +func (i BodyType) String() string { + return []string{"text", "html", "unknownFutureValue"}[i] +} +func ParseBodyType(v string) (any, error) { + result := TEXT_BODYTYPE + switch v { + case "text": + result = TEXT_BODYTYPE + case "html": + result = HTML_BODYTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_BODYTYPE + default: + return 0, errors.New("Unknown BodyType value: " + v) + } + return &result, nil +} +func SerializeBodyType(values []BodyType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i BodyType) isMultiValue() bool { + return false +} diff --git a/models/windowsupdates/content_filter.go b/models/windowsupdates/content_filter.go index 1527e6e53fe..ff05353cf8f 100644 --- a/models/windowsupdates/content_filter.go +++ b/models/windowsupdates/content_filter.go @@ -34,6 +34,8 @@ func CreateContentFilterFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 switch *mappingValue { case "#microsoft.graph.windowsUpdates.driverUpdateFilter": return NewDriverUpdateFilter(), nil + case "#microsoft.graph.windowsUpdates.qualityUpdateFilter": + return NewQualityUpdateFilter(), nil case "#microsoft.graph.windowsUpdates.softwareUpdateFilter": return NewSoftwareUpdateFilter(), nil case "#microsoft.graph.windowsUpdates.windowsUpdateFilter": diff --git a/models/windowsupdates/edition.go b/models/windowsupdates/edition.go new file mode 100644 index 00000000000..3a72464646f --- /dev/null +++ b/models/windowsupdates/edition.go @@ -0,0 +1,312 @@ +package windowsupdates + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type Edition struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewEdition instantiates a new Edition and sets the default values. +func NewEdition()(*Edition) { + m := &Edition{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateEditionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEditionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEdition(), nil +} +// GetDeviceFamily gets the deviceFamily property value. The device family targeted by the edition. +// returns a *string when successful +func (m *Edition) GetDeviceFamily()(*string) { + val, err := m.GetBackingStore().Get("deviceFamily") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEndOfServiceDateTime gets the endOfServiceDateTime property value. The date and time when the edition reached the end of service. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// returns a *Time when successful +func (m *Edition) GetEndOfServiceDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("endOfServiceDateTime") + 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 *Edition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["deviceFamily"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceFamily(val) + } + return nil + } + res["endOfServiceDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEndOfServiceDateTime(val) + } + return nil + } + res["generalAvailabilityDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetGeneralAvailabilityDateTime(val) + } + return nil + } + res["isInService"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsInService(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["releasedName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetReleasedName(val) + } + return nil + } + res["servicingPeriods"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateServicingPeriodFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ServicingPeriodable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ServicingPeriodable) + } + } + m.SetServicingPeriods(res) + } + return nil + } + return res +} +// GetGeneralAvailabilityDateTime gets the generalAvailabilityDateTime property value. The date and time when the edition became available to the general customers for the first time. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// returns a *Time when successful +func (m *Edition) GetGeneralAvailabilityDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("generalAvailabilityDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetIsInService gets the isInService property value. Indicates whether the edition is in service or out of service. +// returns a *bool when successful +func (m *Edition) GetIsInService()(*bool) { + val, err := m.GetBackingStore().Get("isInService") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetName gets the name property value. The name of the edition. Read-only. +// returns a *string when successful +func (m *Edition) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetReleasedName gets the releasedName property value. The public name of the edition. Read-only. +// returns a *string when successful +func (m *Edition) GetReleasedName()(*string) { + val, err := m.GetBackingStore().Get("releasedName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetServicingPeriods gets the servicingPeriods property value. The servicingPeriods property +// returns a []ServicingPeriodable when successful +func (m *Edition) GetServicingPeriods()([]ServicingPeriodable) { + val, err := m.GetBackingStore().Get("servicingPeriods") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ServicingPeriodable) + } + return nil +} +// Serialize serializes information the current object +func (m *Edition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("deviceFamily", m.GetDeviceFamily()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("endOfServiceDateTime", m.GetEndOfServiceDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("generalAvailabilityDateTime", m.GetGeneralAvailabilityDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isInService", m.GetIsInService()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("releasedName", m.GetReleasedName()) + if err != nil { + return err + } + } + if m.GetServicingPeriods() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServicingPeriods())) + for i, v := range m.GetServicingPeriods() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("servicingPeriods", cast) + if err != nil { + return err + } + } + return nil +} +// SetDeviceFamily sets the deviceFamily property value. The device family targeted by the edition. +func (m *Edition) SetDeviceFamily(value *string)() { + err := m.GetBackingStore().Set("deviceFamily", value) + if err != nil { + panic(err) + } +} +// SetEndOfServiceDateTime sets the endOfServiceDateTime property value. The date and time when the edition reached the end of service. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +func (m *Edition) SetEndOfServiceDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("endOfServiceDateTime", value) + if err != nil { + panic(err) + } +} +// SetGeneralAvailabilityDateTime sets the generalAvailabilityDateTime property value. The date and time when the edition became available to the general customers for the first time. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +func (m *Edition) SetGeneralAvailabilityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("generalAvailabilityDateTime", value) + if err != nil { + panic(err) + } +} +// SetIsInService sets the isInService property value. Indicates whether the edition is in service or out of service. +func (m *Edition) SetIsInService(value *bool)() { + err := m.GetBackingStore().Set("isInService", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. The name of the edition. Read-only. +func (m *Edition) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetReleasedName sets the releasedName property value. The public name of the edition. Read-only. +func (m *Edition) SetReleasedName(value *string)() { + err := m.GetBackingStore().Set("releasedName", value) + if err != nil { + panic(err) + } +} +// SetServicingPeriods sets the servicingPeriods property value. The servicingPeriods property +func (m *Edition) SetServicingPeriods(value []ServicingPeriodable)() { + err := m.GetBackingStore().Set("servicingPeriods", value) + if err != nil { + panic(err) + } +} +type Editionable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDeviceFamily()(*string) + GetEndOfServiceDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetGeneralAvailabilityDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetIsInService()(*bool) + GetName()(*string) + GetReleasedName()(*string) + GetServicingPeriods()([]ServicingPeriodable) + SetDeviceFamily(value *string)() + SetEndOfServiceDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetGeneralAvailabilityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetIsInService(value *bool)() + SetName(value *string)() + SetReleasedName(value *string)() + SetServicingPeriods(value []ServicingPeriodable)() +} diff --git a/sites/item_sites_add_post_response.go b/models/windowsupdates/edition_collection_response.go similarity index 55% rename from sites/item_sites_add_post_response.go rename to models/windowsupdates/edition_collection_response.go index ffb8e579fa3..ed28b0ab3cb 100644 --- a/sites/item_sites_add_post_response.go +++ b/models/windowsupdates/edition_collection_response.go @@ -1,39 +1,39 @@ -package sites +package windowsupdates import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ) -type ItemSitesAddPostResponse struct { +type EditionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewItemSitesAddPostResponse instantiates a new ItemSitesAddPostResponse and sets the default values. -func NewItemSitesAddPostResponse()(*ItemSitesAddPostResponse) { - m := &ItemSitesAddPostResponse{ +// NewEditionCollectionResponse instantiates a new EditionCollectionResponse and sets the default values. +func NewEditionCollectionResponse()(*EditionCollectionResponse) { + m := &EditionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateItemSitesAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateEditionCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesAddPostResponse(), nil +func CreateEditionCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEditionCollectionResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *EditionCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + val, err := n.GetCollectionOfObjectValues(CreateEditionFromDiscriminatorValue) if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + res := make([]Editionable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + res[i] = v.(Editionable) } } m.SetValue(res) @@ -43,19 +43,19 @@ func (m *ItemSitesAddPostResponse) GetFieldDeserializers()(map[string]func(i878a return res } // GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { +// returns a []Editionable when successful +func (m *EditionCollectionResponse) GetValue()([]Editionable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.([]Editionable) } return nil } // Serialize serializes information the current object -func (m *ItemSitesAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *EditionCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -75,15 +75,15 @@ func (m *ItemSitesAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f4 return nil } // SetValue sets the value property value. The value property -func (m *ItemSitesAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { +func (m *EditionCollectionResponse) SetValue(value []Editionable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ItemSitesAddPostResponseable interface { +type EditionCollectionResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + GetValue()([]Editionable) + SetValue(value []Editionable)() } diff --git a/models/windowsupdates/item_body.go b/models/windowsupdates/item_body.go new file mode 100644 index 00000000000..36f08fe3d7c --- /dev/null +++ b/models/windowsupdates/item_body.go @@ -0,0 +1,188 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemBody instantiates a new ItemBody and sets the default values. +func NewItemBody()(*ItemBody) { + m := &ItemBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetContent gets the content property value. The content of the item. +// returns a *string when successful +func (m *ItemBody) GetContent()(*string) { + val, err := m.GetBackingStore().Get("content") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetContentType gets the contentType property value. The type of the content indicated by the enum value of bodyType. Possible values are: text, html, unknownFutureValue. +// returns a *BodyType when successful +func (m *ItemBody) GetContentType()(*BodyType) { + val, err := m.GetBackingStore().Get("contentType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*BodyType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["content"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContent(val) + } + return nil + } + res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseBodyType) + if err != nil { + return err + } + if val != nil { + m.SetContentType(val.(*BodyType)) + } + 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 *ItemBody) 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 *ItemBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("content", m.GetContent()) + if err != nil { + return err + } + } + if m.GetContentType() != nil { + cast := (*m.GetContentType()).String() + err := writer.WriteStringValue("contentType", &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 *ItemBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetContent sets the content property value. The content of the item. +func (m *ItemBody) SetContent(value *string)() { + err := m.GetBackingStore().Set("content", value) + if err != nil { + panic(err) + } +} +// SetContentType sets the contentType property value. The type of the content indicated by the enum value of bodyType. Possible values are: text, html, unknownFutureValue. +func (m *ItemBody) SetContentType(value *BodyType)() { + err := m.GetBackingStore().Set("contentType", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ItemBody) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type ItemBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetContent()(*string) + GetContentType()(*BodyType) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetContent(value *string)() + SetContentType(value *BodyType)() + SetOdataType(value *string)() +} diff --git a/models/windowsupdates/known_issue.go b/models/windowsupdates/known_issue.go new file mode 100644 index 00000000000..edc47ef7cdf --- /dev/null +++ b/models/windowsupdates/known_issue.go @@ -0,0 +1,467 @@ +package windowsupdates + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type KnownIssue struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewKnownIssue instantiates a new KnownIssue and sets the default values. +func NewKnownIssue()(*KnownIssue) { + m := &KnownIssue{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateKnownIssueFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateKnownIssueFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewKnownIssue(), nil +} +// GetDescription gets the description property value. The description of the particular known issue. +// returns a *string when successful +func (m *KnownIssue) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + 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 *KnownIssue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + 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["knownIssueHistories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateKnownIssueHistoryItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]KnownIssueHistoryItemable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(KnownIssueHistoryItemable) + } + } + m.SetKnownIssueHistories(res) + } + return nil + } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } + res["originatingKnowledgeBaseArticle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateKnowledgeBaseArticleFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOriginatingKnowledgeBaseArticle(val.(KnowledgeBaseArticleable)) + } + return nil + } + res["resolvedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetResolvedDateTime(val) + } + return nil + } + res["resolvingKnowledgeBaseArticle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateKnowledgeBaseArticleFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResolvingKnowledgeBaseArticle(val.(KnowledgeBaseArticleable)) + } + return nil + } + res["safeguardHoldIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("int32") + if err != nil { + return err + } + if val != nil { + res := make([]int32, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*int32)) + } + } + m.SetSafeguardHoldIds(res) + } + return nil + } + res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWindowsReleaseHealthStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*WindowsReleaseHealthStatus)) + } + return nil + } + res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTitle(val) + } + return nil + } + res["webViewUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetWebViewUrl(val) + } + return nil + } + return res +} +// GetKnownIssueHistories gets the knownIssueHistories property value. The knownIssueHistories property +// returns a []KnownIssueHistoryItemable when successful +func (m *KnownIssue) GetKnownIssueHistories()([]KnownIssueHistoryItemable) { + val, err := m.GetBackingStore().Get("knownIssueHistories") + if err != nil { + panic(err) + } + if val != nil { + return val.([]KnownIssueHistoryItemable) + } + return nil +} +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The date and time when the known issue was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// returns a *Time when successful +func (m *KnownIssue) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetOriginatingKnowledgeBaseArticle gets the originatingKnowledgeBaseArticle property value. Knowledge base article associated with the release when the known issue was first reported. +// returns a KnowledgeBaseArticleable when successful +func (m *KnownIssue) GetOriginatingKnowledgeBaseArticle()(KnowledgeBaseArticleable) { + val, err := m.GetBackingStore().Get("originatingKnowledgeBaseArticle") + if err != nil { + panic(err) + } + if val != nil { + return val.(KnowledgeBaseArticleable) + } + return nil +} +// GetResolvedDateTime gets the resolvedDateTime property value. The date and time when the known issue was resolved or mitigated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +// returns a *Time when successful +func (m *KnownIssue) GetResolvedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("resolvedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetResolvingKnowledgeBaseArticle gets the resolvingKnowledgeBaseArticle property value. Knowledge base article associated with the release when the known issue was resolved or mitigated. +// returns a KnowledgeBaseArticleable when successful +func (m *KnownIssue) GetResolvingKnowledgeBaseArticle()(KnowledgeBaseArticleable) { + val, err := m.GetBackingStore().Get("resolvingKnowledgeBaseArticle") + if err != nil { + panic(err) + } + if val != nil { + return val.(KnowledgeBaseArticleable) + } + return nil +} +// GetSafeguardHoldIds gets the safeguardHoldIds property value. The safeguardHoldIds property +// returns a []int32 when successful +func (m *KnownIssue) GetSafeguardHoldIds()([]int32) { + val, err := m.GetBackingStore().Get("safeguardHoldIds") + if err != nil { + panic(err) + } + if val != nil { + return val.([]int32) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The date and time when the known issue was first reported. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +// returns a *Time when successful +func (m *KnownIssue) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetStatus gets the status property value. The status property +// returns a *WindowsReleaseHealthStatus when successful +func (m *KnownIssue) GetStatus()(*WindowsReleaseHealthStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*WindowsReleaseHealthStatus) + } + return nil +} +// GetTitle gets the title property value. The title of the known issue. +// returns a *string when successful +func (m *KnownIssue) GetTitle()(*string) { + val, err := m.GetBackingStore().Get("title") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetWebViewUrl gets the webViewUrl property value. The URL to the known issue in the Windows Release Health dashboard on Microsoft 365 admin center. +// returns a *string when successful +func (m *KnownIssue) GetWebViewUrl()(*string) { + val, err := m.GetBackingStore().Get("webViewUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *KnownIssue) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetKnownIssueHistories() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetKnownIssueHistories())) + for i, v := range m.GetKnownIssueHistories() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("knownIssueHistories", cast) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("originatingKnowledgeBaseArticle", m.GetOriginatingKnowledgeBaseArticle()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("resolvedDateTime", m.GetResolvedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("resolvingKnowledgeBaseArticle", m.GetResolvingKnowledgeBaseArticle()) + if err != nil { + return err + } + } + if m.GetSafeguardHoldIds() != nil { + err = writer.WriteCollectionOfInt32Values("safeguardHoldIds", m.GetSafeguardHoldIds()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err = writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("title", m.GetTitle()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("webViewUrl", m.GetWebViewUrl()) + if err != nil { + return err + } + } + return nil +} +// SetDescription sets the description property value. The description of the particular known issue. +func (m *KnownIssue) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetKnownIssueHistories sets the knownIssueHistories property value. The knownIssueHistories property +func (m *KnownIssue) SetKnownIssueHistories(value []KnownIssueHistoryItemable)() { + err := m.GetBackingStore().Set("knownIssueHistories", value) + if err != nil { + panic(err) + } +} +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The date and time when the known issue was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +func (m *KnownIssue) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} +// SetOriginatingKnowledgeBaseArticle sets the originatingKnowledgeBaseArticle property value. Knowledge base article associated with the release when the known issue was first reported. +func (m *KnownIssue) SetOriginatingKnowledgeBaseArticle(value KnowledgeBaseArticleable)() { + err := m.GetBackingStore().Set("originatingKnowledgeBaseArticle", value) + if err != nil { + panic(err) + } +} +// SetResolvedDateTime sets the resolvedDateTime property value. The date and time when the known issue was resolved or mitigated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +func (m *KnownIssue) SetResolvedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("resolvedDateTime", value) + if err != nil { + panic(err) + } +} +// SetResolvingKnowledgeBaseArticle sets the resolvingKnowledgeBaseArticle property value. Knowledge base article associated with the release when the known issue was resolved or mitigated. +func (m *KnownIssue) SetResolvingKnowledgeBaseArticle(value KnowledgeBaseArticleable)() { + err := m.GetBackingStore().Set("resolvingKnowledgeBaseArticle", value) + if err != nil { + panic(err) + } +} +// SetSafeguardHoldIds sets the safeguardHoldIds property value. The safeguardHoldIds property +func (m *KnownIssue) SetSafeguardHoldIds(value []int32)() { + err := m.GetBackingStore().Set("safeguardHoldIds", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The date and time when the known issue was first reported. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +func (m *KnownIssue) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The status property +func (m *KnownIssue) SetStatus(value *WindowsReleaseHealthStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +// SetTitle sets the title property value. The title of the known issue. +func (m *KnownIssue) SetTitle(value *string)() { + err := m.GetBackingStore().Set("title", value) + if err != nil { + panic(err) + } +} +// SetWebViewUrl sets the webViewUrl property value. The URL to the known issue in the Windows Release Health dashboard on Microsoft 365 admin center. +func (m *KnownIssue) SetWebViewUrl(value *string)() { + err := m.GetBackingStore().Set("webViewUrl", value) + if err != nil { + panic(err) + } +} +type KnownIssueable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetKnownIssueHistories()([]KnownIssueHistoryItemable) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOriginatingKnowledgeBaseArticle()(KnowledgeBaseArticleable) + GetResolvedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetResolvingKnowledgeBaseArticle()(KnowledgeBaseArticleable) + GetSafeguardHoldIds()([]int32) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetStatus()(*WindowsReleaseHealthStatus) + GetTitle()(*string) + GetWebViewUrl()(*string) + SetDescription(value *string)() + SetKnownIssueHistories(value []KnownIssueHistoryItemable)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOriginatingKnowledgeBaseArticle(value KnowledgeBaseArticleable)() + SetResolvedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetResolvingKnowledgeBaseArticle(value KnowledgeBaseArticleable)() + SetSafeguardHoldIds(value []int32)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetStatus(value *WindowsReleaseHealthStatus)() + SetTitle(value *string)() + SetWebViewUrl(value *string)() +} diff --git a/models/windowsupdates/known_issue_collection_response.go b/models/windowsupdates/known_issue_collection_response.go new file mode 100644 index 00000000000..9af10adc10e --- /dev/null +++ b/models/windowsupdates/known_issue_collection_response.go @@ -0,0 +1,89 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type KnownIssueCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewKnownIssueCollectionResponse instantiates a new KnownIssueCollectionResponse and sets the default values. +func NewKnownIssueCollectionResponse()(*KnownIssueCollectionResponse) { + m := &KnownIssueCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateKnownIssueCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateKnownIssueCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewKnownIssueCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *KnownIssueCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateKnownIssueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]KnownIssueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(KnownIssueable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []KnownIssueable when successful +func (m *KnownIssueCollectionResponse) GetValue()([]KnownIssueable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]KnownIssueable) + } + return nil +} +// Serialize serializes information the current object +func (m *KnownIssueCollectionResponse) 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 *KnownIssueCollectionResponse) SetValue(value []KnownIssueable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type KnownIssueCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]KnownIssueable) + SetValue(value []KnownIssueable)() +} diff --git a/models/windowsupdates/known_issue_history_item.go b/models/windowsupdates/known_issue_history_item.go new file mode 100644 index 00000000000..9b95462e0a7 --- /dev/null +++ b/models/windowsupdates/known_issue_history_item.go @@ -0,0 +1,188 @@ +package windowsupdates + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type KnownIssueHistoryItem struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewKnownIssueHistoryItem instantiates a new KnownIssueHistoryItem and sets the default values. +func NewKnownIssueHistoryItem()(*KnownIssueHistoryItem) { + m := &KnownIssueHistoryItem{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateKnownIssueHistoryItemFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateKnownIssueHistoryItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewKnownIssueHistoryItem(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *KnownIssueHistoryItem) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *KnownIssueHistoryItem) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBody gets the body property value. The body property +// returns a ItemBodyable when successful +func (m *KnownIssueHistoryItem) GetBody()(ItemBodyable) { + val, err := m.GetBackingStore().Get("body") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the post was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// returns a *Time when successful +func (m *KnownIssueHistoryItem) 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 *KnownIssueHistoryItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["body"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBody(val.(ItemBodyable)) + } + 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["@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 *KnownIssueHistoryItem) 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 *KnownIssueHistoryItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("body", m.GetBody()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + 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 *KnownIssueHistoryItem) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *KnownIssueHistoryItem) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBody sets the body property value. The body property +func (m *KnownIssueHistoryItem) SetBody(value ItemBodyable)() { + err := m.GetBackingStore().Set("body", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the post was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +func (m *KnownIssueHistoryItem) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *KnownIssueHistoryItem) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type KnownIssueHistoryItemable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBody()(ItemBodyable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBody(value ItemBodyable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() +} diff --git a/models/windowsupdates/product.go b/models/windowsupdates/product.go new file mode 100644 index 00000000000..cfd5098354a --- /dev/null +++ b/models/windowsupdates/product.go @@ -0,0 +1,304 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type Product struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewProduct instantiates a new Product and sets the default values. +func NewProduct()(*Product) { + m := &Product{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateProductFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateProductFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProduct(), nil +} +// GetEditions gets the editions property value. Represents an edition of a particular Windows product. +// returns a []Editionable when successful +func (m *Product) GetEditions()([]Editionable) { + val, err := m.GetBackingStore().Get("editions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Editionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Product) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["editions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEditionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Editionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Editionable) + } + } + m.SetEditions(res) + } + return nil + } + res["friendlyNames"] = 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.SetFriendlyNames(res) + } + return nil + } + res["groupName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGroupName(val) + } + return nil + } + res["knownIssues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateKnownIssueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]KnownIssueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(KnownIssueable) + } + } + m.SetKnownIssues(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["revisions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateProductRevisionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ProductRevisionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ProductRevisionable) + } + } + m.SetRevisions(res) + } + return nil + } + return res +} +// GetFriendlyNames gets the friendlyNames property value. The friendly names of the product. For example, Version 22H2 (OS build 22621). Read-only. +// returns a []string when successful +func (m *Product) GetFriendlyNames()([]string) { + val, err := m.GetBackingStore().Get("friendlyNames") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetGroupName gets the groupName property value. The name of the product group. For example, Windows 11. Read-only. +// returns a *string when successful +func (m *Product) GetGroupName()(*string) { + val, err := m.GetBackingStore().Get("groupName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetKnownIssues gets the knownIssues property value. Represents a known issue related to a Windows product. +// returns a []KnownIssueable when successful +func (m *Product) GetKnownIssues()([]KnownIssueable) { + val, err := m.GetBackingStore().Get("knownIssues") + if err != nil { + panic(err) + } + if val != nil { + return val.([]KnownIssueable) + } + return nil +} +// GetName gets the name property value. The name of the product. For example, Windows 11, version 22H2. Read-only. +// returns a *string when successful +func (m *Product) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRevisions gets the revisions property value. Represents a product revision. +// returns a []ProductRevisionable when successful +func (m *Product) GetRevisions()([]ProductRevisionable) { + val, err := m.GetBackingStore().Get("revisions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ProductRevisionable) + } + return nil +} +// Serialize serializes information the current object +func (m *Product) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetEditions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetEditions())) + for i, v := range m.GetEditions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("editions", cast) + if err != nil { + return err + } + } + if m.GetFriendlyNames() != nil { + err = writer.WriteCollectionOfStringValues("friendlyNames", m.GetFriendlyNames()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("groupName", m.GetGroupName()) + if err != nil { + return err + } + } + if m.GetKnownIssues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetKnownIssues())) + for i, v := range m.GetKnownIssues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("knownIssues", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetRevisions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRevisions())) + for i, v := range m.GetRevisions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("revisions", cast) + if err != nil { + return err + } + } + return nil +} +// SetEditions sets the editions property value. Represents an edition of a particular Windows product. +func (m *Product) SetEditions(value []Editionable)() { + err := m.GetBackingStore().Set("editions", value) + if err != nil { + panic(err) + } +} +// SetFriendlyNames sets the friendlyNames property value. The friendly names of the product. For example, Version 22H2 (OS build 22621). Read-only. +func (m *Product) SetFriendlyNames(value []string)() { + err := m.GetBackingStore().Set("friendlyNames", value) + if err != nil { + panic(err) + } +} +// SetGroupName sets the groupName property value. The name of the product group. For example, Windows 11. Read-only. +func (m *Product) SetGroupName(value *string)() { + err := m.GetBackingStore().Set("groupName", value) + if err != nil { + panic(err) + } +} +// SetKnownIssues sets the knownIssues property value. Represents a known issue related to a Windows product. +func (m *Product) SetKnownIssues(value []KnownIssueable)() { + err := m.GetBackingStore().Set("knownIssues", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. The name of the product. For example, Windows 11, version 22H2. Read-only. +func (m *Product) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetRevisions sets the revisions property value. Represents a product revision. +func (m *Product) SetRevisions(value []ProductRevisionable)() { + err := m.GetBackingStore().Set("revisions", value) + if err != nil { + panic(err) + } +} +type Productable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEditions()([]Editionable) + GetFriendlyNames()([]string) + GetGroupName()(*string) + GetKnownIssues()([]KnownIssueable) + GetName()(*string) + GetRevisions()([]ProductRevisionable) + SetEditions(value []Editionable)() + SetFriendlyNames(value []string)() + SetGroupName(value *string)() + SetKnownIssues(value []KnownIssueable)() + SetName(value *string)() + SetRevisions(value []ProductRevisionable)() +} diff --git a/models/windowsupdates/product_collection_response.go b/models/windowsupdates/product_collection_response.go new file mode 100644 index 00000000000..eea6b94b464 --- /dev/null +++ b/models/windowsupdates/product_collection_response.go @@ -0,0 +1,89 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ProductCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewProductCollectionResponse instantiates a new ProductCollectionResponse and sets the default values. +func NewProductCollectionResponse()(*ProductCollectionResponse) { + m := &ProductCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateProductCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateProductCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProductCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ProductCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateProductFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Productable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Productable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Productable when successful +func (m *ProductCollectionResponse) GetValue()([]Productable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Productable) + } + return nil +} +// Serialize serializes information the current object +func (m *ProductCollectionResponse) 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 *ProductCollectionResponse) SetValue(value []Productable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ProductCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]Productable) + SetValue(value []Productable)() +} diff --git a/models/windowsupdates/product_revision.go b/models/windowsupdates/product_revision.go index f193bae85da..fe5988ed884 100644 --- a/models/windowsupdates/product_revision.go +++ b/models/windowsupdates/product_revision.go @@ -21,6 +21,18 @@ func NewProductRevision()(*ProductRevision) { func CreateProductRevisionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewProductRevision(), nil } +// GetCatalogEntry gets the catalogEntry property value. The catalogEntry property +// returns a CatalogEntryable when successful +func (m *ProductRevision) GetCatalogEntry()(CatalogEntryable) { + val, err := m.GetBackingStore().Get("catalogEntry") + if err != nil { + panic(err) + } + if val != nil { + return val.(CatalogEntryable) + } + return nil +} // GetDisplayName gets the displayName property value. The display name of the content. Read-only. // returns a *string when successful func (m *ProductRevision) GetDisplayName()(*string) { @@ -37,6 +49,16 @@ func (m *ProductRevision) GetDisplayName()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *ProductRevision) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["catalogEntry"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCatalogEntryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCatalogEntry(val.(CatalogEntryable)) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -165,6 +187,12 @@ func (m *ProductRevision) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } + { + err = writer.WriteObjectValue("catalogEntry", m.GetCatalogEntry()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -203,6 +231,13 @@ func (m *ProductRevision) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } +// SetCatalogEntry sets the catalogEntry property value. The catalogEntry property +func (m *ProductRevision) SetCatalogEntry(value CatalogEntryable)() { + err := m.GetBackingStore().Set("catalogEntry", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The display name of the content. Read-only. func (m *ProductRevision) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -248,12 +283,14 @@ func (m *ProductRevision) SetVersion(value *string)() { type ProductRevisionable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCatalogEntry()(CatalogEntryable) GetDisplayName()(*string) GetKnowledgeBaseArticle()(KnowledgeBaseArticleable) GetOsBuild()(BuildVersionDetailsable) GetProduct()(*string) GetReleaseDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetVersion()(*string) + SetCatalogEntry(value CatalogEntryable)() SetDisplayName(value *string)() SetKnowledgeBaseArticle(value KnowledgeBaseArticleable)() SetOsBuild(value BuildVersionDetailsable)() diff --git a/groups/item_sites_item_sites_add_post_response.go b/models/windowsupdates/product_revision_collection_response.go similarity index 63% rename from groups/item_sites_item_sites_add_post_response.go rename to models/windowsupdates/product_revision_collection_response.go index 93a938c7944..235971b75d0 100644 --- a/groups/item_sites_item_sites_add_post_response.go +++ b/models/windowsupdates/product_revision_collection_response.go @@ -1,39 +1,39 @@ -package groups +package windowsupdates import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ) -type ItemSitesItemSitesAddPostResponse struct { +type ProductRevisionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewItemSitesItemSitesAddPostResponse instantiates a new ItemSitesItemSitesAddPostResponse and sets the default values. -func NewItemSitesItemSitesAddPostResponse()(*ItemSitesItemSitesAddPostResponse) { - m := &ItemSitesItemSitesAddPostResponse{ +// NewProductRevisionCollectionResponse instantiates a new ProductRevisionCollectionResponse and sets the default values. +func NewProductRevisionCollectionResponse()(*ProductRevisionCollectionResponse) { + m := &ProductRevisionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateItemSitesItemSitesAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateProductRevisionCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesItemSitesAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesItemSitesAddPostResponse(), nil +func CreateProductRevisionCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProductRevisionCollectionResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesItemSitesAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ProductRevisionCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + val, err := n.GetCollectionOfObjectValues(CreateProductRevisionFromDiscriminatorValue) if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + res := make([]ProductRevisionable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + res[i] = v.(ProductRevisionable) } } m.SetValue(res) @@ -43,19 +43,19 @@ func (m *ItemSitesItemSitesAddPostResponse) GetFieldDeserializers()(map[string]f return res } // GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesItemSitesAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { +// returns a []ProductRevisionable when successful +func (m *ProductRevisionCollectionResponse) GetValue()([]ProductRevisionable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.([]ProductRevisionable) } return nil } // Serialize serializes information the current object -func (m *ItemSitesItemSitesAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ProductRevisionCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -75,15 +75,15 @@ func (m *ItemSitesItemSitesAddPostResponse) Serialize(writer i878a80d2330e89d268 return nil } // SetValue sets the value property value. The value property -func (m *ItemSitesItemSitesAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { +func (m *ProductRevisionCollectionResponse) SetValue(value []ProductRevisionable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ItemSitesItemSitesAddPostResponseable interface { +type ProductRevisionCollectionResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + GetValue()([]ProductRevisionable) + SetValue(value []ProductRevisionable)() } diff --git a/models/windowsupdates/quality_update_filter.go b/models/windowsupdates/quality_update_filter.go new file mode 100644 index 00000000000..58e8cd68aa4 --- /dev/null +++ b/models/windowsupdates/quality_update_filter.go @@ -0,0 +1,117 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type QualityUpdateFilter struct { + WindowsUpdateFilter +} +// NewQualityUpdateFilter instantiates a new QualityUpdateFilter and sets the default values. +func NewQualityUpdateFilter()(*QualityUpdateFilter) { + m := &QualityUpdateFilter{ + WindowsUpdateFilter: *NewWindowsUpdateFilter(), + } + odataTypeValue := "#microsoft.graph.windowsUpdates.qualityUpdateFilter" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateQualityUpdateFilterFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateQualityUpdateFilterFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewQualityUpdateFilter(), nil +} +// GetCadence gets the cadence property value. The cadence property +// returns a *QualityUpdateCadence when successful +func (m *QualityUpdateFilter) GetCadence()(*QualityUpdateCadence) { + val, err := m.GetBackingStore().Get("cadence") + if err != nil { + panic(err) + } + if val != nil { + return val.(*QualityUpdateCadence) + } + return nil +} +// GetClassification gets the classification property value. The classification property +// returns a *QualityUpdateClassification when successful +func (m *QualityUpdateFilter) GetClassification()(*QualityUpdateClassification) { + val, err := m.GetBackingStore().Get("classification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*QualityUpdateClassification) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *QualityUpdateFilter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.WindowsUpdateFilter.GetFieldDeserializers() + res["cadence"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseQualityUpdateCadence) + if err != nil { + return err + } + if val != nil { + m.SetCadence(val.(*QualityUpdateCadence)) + } + return nil + } + res["classification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseQualityUpdateClassification) + if err != nil { + return err + } + if val != nil { + m.SetClassification(val.(*QualityUpdateClassification)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *QualityUpdateFilter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.WindowsUpdateFilter.Serialize(writer) + if err != nil { + return err + } + if m.GetCadence() != nil { + cast := (*m.GetCadence()).String() + err = writer.WriteStringValue("cadence", &cast) + if err != nil { + return err + } + } + if m.GetClassification() != nil { + cast := (*m.GetClassification()).String() + err = writer.WriteStringValue("classification", &cast) + if err != nil { + return err + } + } + return nil +} +// SetCadence sets the cadence property value. The cadence property +func (m *QualityUpdateFilter) SetCadence(value *QualityUpdateCadence)() { + err := m.GetBackingStore().Set("cadence", value) + if err != nil { + panic(err) + } +} +// SetClassification sets the classification property value. The classification property +func (m *QualityUpdateFilter) SetClassification(value *QualityUpdateClassification)() { + err := m.GetBackingStore().Set("classification", value) + if err != nil { + panic(err) + } +} +type QualityUpdateFilterable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WindowsUpdateFilterable + GetCadence()(*QualityUpdateCadence) + GetClassification()(*QualityUpdateClassification) + SetCadence(value *QualityUpdateCadence)() + SetClassification(value *QualityUpdateClassification)() +} diff --git a/models/windowsupdates/servicing_period.go b/models/windowsupdates/servicing_period.go new file mode 100644 index 00000000000..e2da0a588e6 --- /dev/null +++ b/models/windowsupdates/servicing_period.go @@ -0,0 +1,225 @@ +package windowsupdates + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ServicingPeriod struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewServicingPeriod instantiates a new ServicingPeriod and sets the default values. +func NewServicingPeriod()(*ServicingPeriod) { + m := &ServicingPeriod{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateServicingPeriodFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateServicingPeriodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewServicingPeriod(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ServicingPeriod) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ServicingPeriod) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEndDateTime gets the endDateTime property value. The date and time when the servicing period ends. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// returns a *Time when successful +func (m *ServicingPeriod) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("endDateTime") + 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 *ServicingPeriod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEndDateTime(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@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["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name of the servicing period. For example, Modern Lifecycle. +// returns a *string when successful +func (m *ServicingPeriod) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + 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 *ServicingPeriod) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The start date and time of the servicing period. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// returns a *Time when successful +func (m *ServicingPeriod) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *ServicingPeriod) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ServicingPeriod) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ServicingPeriod) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEndDateTime sets the endDateTime property value. The date and time when the servicing period ends. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +func (m *ServicingPeriod) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("endDateTime", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. The name of the servicing period. For example, Modern Lifecycle. +func (m *ServicingPeriod) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServicingPeriod) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The start date and time of the servicing period. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +func (m *ServicingPeriod) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +type ServicingPeriodable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetOdataType()(*string) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetOdataType(value *string)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/windowsupdates/software_update_filter.go b/models/windowsupdates/software_update_filter.go index 5919c284e46..fb012c1bc82 100644 --- a/models/windowsupdates/software_update_filter.go +++ b/models/windowsupdates/software_update_filter.go @@ -33,6 +33,8 @@ func CreateSoftwareUpdateFilterFromDiscriminatorValue(parseNode i878a80d2330e89d switch *mappingValue { case "#microsoft.graph.windowsUpdates.driverUpdateFilter": return NewDriverUpdateFilter(), nil + case "#microsoft.graph.windowsUpdates.qualityUpdateFilter": + return NewQualityUpdateFilter(), nil case "#microsoft.graph.windowsUpdates.windowsUpdateFilter": return NewWindowsUpdateFilter(), nil } diff --git a/models/windowsupdates/user_experience_settings.go b/models/windowsupdates/user_experience_settings.go index 16f4b718aee..e430b0f5e8c 100644 --- a/models/windowsupdates/user_experience_settings.go +++ b/models/windowsupdates/user_experience_settings.go @@ -66,6 +66,16 @@ func (m *UserExperienceSettings) GetFieldDeserializers()(map[string]func(i878a80 } return nil } + res["isHotpatchEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsHotpatchEnabled(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -88,6 +98,18 @@ func (m *UserExperienceSettings) GetFieldDeserializers()(map[string]func(i878a80 } return res } +// GetIsHotpatchEnabled gets the isHotpatchEnabled property value. The isHotpatchEnabled property +// returns a *bool when successful +func (m *UserExperienceSettings) GetIsHotpatchEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isHotpatchEnabled") + 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 *UserExperienceSettings) GetOdataType()(*string) { @@ -120,6 +142,12 @@ func (m *UserExperienceSettings) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err := writer.WriteBoolValue("isHotpatchEnabled", m.GetIsHotpatchEnabled()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -158,6 +186,13 @@ func (m *UserExperienceSettings) SetDaysUntilForcedReboot(value *int32)() { panic(err) } } +// SetIsHotpatchEnabled sets the isHotpatchEnabled property value. The isHotpatchEnabled property +func (m *UserExperienceSettings) SetIsHotpatchEnabled(value *bool)() { + err := m.GetBackingStore().Set("isHotpatchEnabled", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *UserExperienceSettings) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -178,10 +213,12 @@ type UserExperienceSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDaysUntilForcedReboot()(*int32) + GetIsHotpatchEnabled()(*bool) GetOdataType()(*string) GetOfferAsOptional()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDaysUntilForcedReboot(value *int32)() + SetIsHotpatchEnabled(value *bool)() SetOdataType(value *string)() SetOfferAsOptional(value *bool)() } diff --git a/models/windowsupdates/windows_release_health_status.go b/models/windowsupdates/windows_release_health_status.go new file mode 100644 index 00000000000..c5e0665d9e6 --- /dev/null +++ b/models/windowsupdates/windows_release_health_status.go @@ -0,0 +1,54 @@ +package windowsupdates +import ( + "errors" +) +type WindowsReleaseHealthStatus int + +const ( + RESOLVED_WINDOWSRELEASEHEALTHSTATUS WindowsReleaseHealthStatus = iota + MITIGATEDEXTERNAL_WINDOWSRELEASEHEALTHSTATUS + MITIGATED_WINDOWSRELEASEHEALTHSTATUS + RESOLVEDEXTERNAL_WINDOWSRELEASEHEALTHSTATUS + CONFIRMED_WINDOWSRELEASEHEALTHSTATUS + REPORTED_WINDOWSRELEASEHEALTHSTATUS + INVESTIGATING_WINDOWSRELEASEHEALTHSTATUS + UNKNOWNFUTUREVALUE_WINDOWSRELEASEHEALTHSTATUS +) + +func (i WindowsReleaseHealthStatus) String() string { + return []string{"resolved", "mitigatedExternal", "mitigated", "resolvedExternal", "confirmed", "reported", "investigating", "unknownFutureValue"}[i] +} +func ParseWindowsReleaseHealthStatus(v string) (any, error) { + result := RESOLVED_WINDOWSRELEASEHEALTHSTATUS + switch v { + case "resolved": + result = RESOLVED_WINDOWSRELEASEHEALTHSTATUS + case "mitigatedExternal": + result = MITIGATEDEXTERNAL_WINDOWSRELEASEHEALTHSTATUS + case "mitigated": + result = MITIGATED_WINDOWSRELEASEHEALTHSTATUS + case "resolvedExternal": + result = RESOLVEDEXTERNAL_WINDOWSRELEASEHEALTHSTATUS + case "confirmed": + result = CONFIRMED_WINDOWSRELEASEHEALTHSTATUS + case "reported": + result = REPORTED_WINDOWSRELEASEHEALTHSTATUS + case "investigating": + result = INVESTIGATING_WINDOWSRELEASEHEALTHSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_WINDOWSRELEASEHEALTHSTATUS + default: + return 0, errors.New("Unknown WindowsReleaseHealthStatus value: " + v) + } + return &result, nil +} +func SerializeWindowsReleaseHealthStatus(values []WindowsReleaseHealthStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WindowsReleaseHealthStatus) isMultiValue() bool { + return false +} diff --git a/models/windowsupdates/windows_update_filter.go b/models/windowsupdates/windows_update_filter.go index 274eb71cd0d..71b09df2587 100644 --- a/models/windowsupdates/windows_update_filter.go +++ b/models/windowsupdates/windows_update_filter.go @@ -33,6 +33,8 @@ func CreateWindowsUpdateFilterFromDiscriminatorValue(parseNode i878a80d2330e89d2 switch *mappingValue { case "#microsoft.graph.windowsUpdates.driverUpdateFilter": return NewDriverUpdateFilter(), nil + case "#microsoft.graph.windowsUpdates.qualityUpdateFilter": + return NewQualityUpdateFilter(), nil } } } diff --git a/models/workplace.go b/models/workplace.go new file mode 100644 index 00000000000..43626a8b270 --- /dev/null +++ b/models/workplace.go @@ -0,0 +1,162 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type Workplace struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkplace instantiates a new Workplace and sets the default values. +func NewWorkplace()(*Workplace) { + m := &Workplace{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkplaceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkplaceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkplace(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *Workplace) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *Workplace) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Workplace) 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["sensorDevices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkplaceSensorDeviceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkplaceSensorDeviceable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkplaceSensorDeviceable) + } + } + m.SetSensorDevices(res) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *Workplace) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensorDevices gets the sensorDevices property value. The sensorDevices property +// returns a []WorkplaceSensorDeviceable when successful +func (m *Workplace) GetSensorDevices()([]WorkplaceSensorDeviceable) { + val, err := m.GetBackingStore().Get("sensorDevices") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkplaceSensorDeviceable) + } + return nil +} +// Serialize serializes information the current object +func (m *Workplace) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetSensorDevices() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSensorDevices())) + for i, v := range m.GetSensorDevices() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("sensorDevices", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Workplace) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *Workplace) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Workplace) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetSensorDevices sets the sensorDevices property value. The sensorDevices property +func (m *Workplace) SetSensorDevices(value []WorkplaceSensorDeviceable)() { + err := m.GetBackingStore().Set("sensorDevices", value) + if err != nil { + panic(err) + } +} +type Workplaceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetSensorDevices()([]WorkplaceSensorDeviceable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetSensorDevices(value []WorkplaceSensorDeviceable)() +} diff --git a/models/workplace_sensor.go b/models/workplace_sensor.go new file mode 100644 index 00000000000..fa9feaed06c --- /dev/null +++ b/models/workplace_sensor.go @@ -0,0 +1,262 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type WorkplaceSensor struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkplaceSensor instantiates a new WorkplaceSensor and sets the default values. +func NewWorkplaceSensor()(*WorkplaceSensor) { + m := &WorkplaceSensor{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkplaceSensorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkplaceSensorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkplaceSensor(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *WorkplaceSensor) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *WorkplaceSensor) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDisplayName gets the displayName property value. The display name of the sensor. +// returns a *string when successful +func (m *WorkplaceSensor) 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 *WorkplaceSensor) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + 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 { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["placeId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPlaceId(val) + } + return nil + } + res["sensorId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSensorId(val) + } + return nil + } + res["sensorType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWorkplaceSensorType) + if err != nil { + return err + } + if val != nil { + m.SetSensorType(val.(*WorkplaceSensorType)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *WorkplaceSensor) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPlaceId gets the placeId property value. The unique identifier of the place served by the sensor. Only needs to be provided if the sensor serves a different place than the device's location. +// returns a *string when successful +func (m *WorkplaceSensor) GetPlaceId()(*string) { + val, err := m.GetBackingStore().Get("placeId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensorId gets the sensorId property value. The unique identifier of a sensor within the device. If the sensor Id is not provided, the sensorType will be used as sensorId. +// returns a *string when successful +func (m *WorkplaceSensor) GetSensorId()(*string) { + val, err := m.GetBackingStore().Get("sensorId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensorType gets the sensorType property value. The sensorType property +// returns a *WorkplaceSensorType when successful +func (m *WorkplaceSensor) GetSensorType()(*WorkplaceSensorType) { + val, err := m.GetBackingStore().Get("sensorType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*WorkplaceSensorType) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkplaceSensor) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("placeId", m.GetPlaceId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sensorId", m.GetSensorId()) + if err != nil { + return err + } + } + if m.GetSensorType() != nil { + cast := (*m.GetSensorType()).String() + err := writer.WriteStringValue("sensorType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *WorkplaceSensor) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *WorkplaceSensor) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDisplayName sets the displayName property value. The display name of the sensor. +func (m *WorkplaceSensor) 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 *WorkplaceSensor) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPlaceId sets the placeId property value. The unique identifier of the place served by the sensor. Only needs to be provided if the sensor serves a different place than the device's location. +func (m *WorkplaceSensor) SetPlaceId(value *string)() { + err := m.GetBackingStore().Set("placeId", value) + if err != nil { + panic(err) + } +} +// SetSensorId sets the sensorId property value. The unique identifier of a sensor within the device. If the sensor Id is not provided, the sensorType will be used as sensorId. +func (m *WorkplaceSensor) SetSensorId(value *string)() { + err := m.GetBackingStore().Set("sensorId", value) + if err != nil { + panic(err) + } +} +// SetSensorType sets the sensorType property value. The sensorType property +func (m *WorkplaceSensor) SetSensorType(value *WorkplaceSensorType)() { + err := m.GetBackingStore().Set("sensorType", value) + if err != nil { + panic(err) + } +} +type WorkplaceSensorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDisplayName()(*string) + GetOdataType()(*string) + GetPlaceId()(*string) + GetSensorId()(*string) + GetSensorType()(*WorkplaceSensorType) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDisplayName(value *string)() + SetOdataType(value *string)() + SetPlaceId(value *string)() + SetSensorId(value *string)() + SetSensorType(value *WorkplaceSensorType)() +} diff --git a/models/workplace_sensor_device.go b/models/workplace_sensor_device.go new file mode 100644 index 00000000000..18e8449094b --- /dev/null +++ b/models/workplace_sensor_device.go @@ -0,0 +1,427 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type WorkplaceSensorDevice struct { + Entity +} +// NewWorkplaceSensorDevice instantiates a new WorkplaceSensorDevice and sets the default values. +func NewWorkplaceSensorDevice()(*WorkplaceSensorDevice) { + m := &WorkplaceSensorDevice{ + Entity: *NewEntity(), + } + return m +} +// CreateWorkplaceSensorDeviceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkplaceSensorDeviceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkplaceSensorDevice(), nil +} +// GetDescription gets the description property value. The description of the device. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDeviceId gets the deviceId property value. The unique identifier of the device set by the user. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetDeviceId()(*string) { + val, err := m.GetBackingStore().Get("deviceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The display name of the device. +// returns a *string when successful +func (m *WorkplaceSensorDevice) 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 *WorkplaceSensorDevice) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + 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["deviceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceId(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["ipV4Address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIpV4Address(val) + } + return nil + } + res["ipV6Address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIpV6Address(val) + } + return nil + } + res["macAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMacAddress(val) + } + return nil + } + res["manufacturer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetManufacturer(val) + } + return nil + } + res["placeId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPlaceId(val) + } + return nil + } + res["sensors"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkplaceSensorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkplaceSensorable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkplaceSensorable) + } + } + m.SetSensors(res) + } + return nil + } + res["tags"] = 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.SetTags(res) + } + return nil + } + return res +} +// GetIpV4Address gets the ipV4Address property value. The IPv4 Address of the device. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetIpV4Address()(*string) { + val, err := m.GetBackingStore().Get("ipV4Address") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetIpV6Address gets the ipV6Address property value. The IPv6 Address of the device. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetIpV6Address()(*string) { + val, err := m.GetBackingStore().Get("ipV6Address") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetMacAddress gets the macAddress property value. The MAC address of the device. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetMacAddress()(*string) { + val, err := m.GetBackingStore().Get("macAddress") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetManufacturer gets the manufacturer property value. The manufacturer of the device. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetManufacturer()(*string) { + val, err := m.GetBackingStore().Get("manufacturer") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPlaceId gets the placeId property value. The unique identifier of the place where the device is located. +// returns a *string when successful +func (m *WorkplaceSensorDevice) GetPlaceId()(*string) { + val, err := m.GetBackingStore().Get("placeId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensors gets the sensors property value. A list of sensors associated with the device. Sensors can measure physical quantities such as temperature, humidity, occupancy, etc. +// returns a []WorkplaceSensorable when successful +func (m *WorkplaceSensorDevice) GetSensors()([]WorkplaceSensorable) { + val, err := m.GetBackingStore().Get("sensors") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkplaceSensorable) + } + return nil +} +// GetTags gets the tags property value. A list of custom tags associated with the device. +// returns a []string when successful +func (m *WorkplaceSensorDevice) GetTags()([]string) { + val, err := m.GetBackingStore().Get("tags") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkplaceSensorDevice) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("deviceId", m.GetDeviceId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("ipV4Address", m.GetIpV4Address()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("ipV6Address", m.GetIpV6Address()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("macAddress", m.GetMacAddress()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("manufacturer", m.GetManufacturer()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("placeId", m.GetPlaceId()) + if err != nil { + return err + } + } + if m.GetSensors() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSensors())) + for i, v := range m.GetSensors() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("sensors", cast) + if err != nil { + return err + } + } + if m.GetTags() != nil { + err = writer.WriteCollectionOfStringValues("tags", m.GetTags()) + if err != nil { + return err + } + } + return nil +} +// SetDescription sets the description property value. The description of the device. +func (m *WorkplaceSensorDevice) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDeviceId sets the deviceId property value. The unique identifier of the device set by the user. +func (m *WorkplaceSensorDevice) SetDeviceId(value *string)() { + err := m.GetBackingStore().Set("deviceId", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The display name of the device. +func (m *WorkplaceSensorDevice) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetIpV4Address sets the ipV4Address property value. The IPv4 Address of the device. +func (m *WorkplaceSensorDevice) SetIpV4Address(value *string)() { + err := m.GetBackingStore().Set("ipV4Address", value) + if err != nil { + panic(err) + } +} +// SetIpV6Address sets the ipV6Address property value. The IPv6 Address of the device. +func (m *WorkplaceSensorDevice) SetIpV6Address(value *string)() { + err := m.GetBackingStore().Set("ipV6Address", value) + if err != nil { + panic(err) + } +} +// SetMacAddress sets the macAddress property value. The MAC address of the device. +func (m *WorkplaceSensorDevice) SetMacAddress(value *string)() { + err := m.GetBackingStore().Set("macAddress", value) + if err != nil { + panic(err) + } +} +// SetManufacturer sets the manufacturer property value. The manufacturer of the device. +func (m *WorkplaceSensorDevice) SetManufacturer(value *string)() { + err := m.GetBackingStore().Set("manufacturer", value) + if err != nil { + panic(err) + } +} +// SetPlaceId sets the placeId property value. The unique identifier of the place where the device is located. +func (m *WorkplaceSensorDevice) SetPlaceId(value *string)() { + err := m.GetBackingStore().Set("placeId", value) + if err != nil { + panic(err) + } +} +// SetSensors sets the sensors property value. A list of sensors associated with the device. Sensors can measure physical quantities such as temperature, humidity, occupancy, etc. +func (m *WorkplaceSensorDevice) SetSensors(value []WorkplaceSensorable)() { + err := m.GetBackingStore().Set("sensors", value) + if err != nil { + panic(err) + } +} +// SetTags sets the tags property value. A list of custom tags associated with the device. +func (m *WorkplaceSensorDevice) SetTags(value []string)() { + err := m.GetBackingStore().Set("tags", value) + if err != nil { + panic(err) + } +} +type WorkplaceSensorDeviceable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetDeviceId()(*string) + GetDisplayName()(*string) + GetIpV4Address()(*string) + GetIpV6Address()(*string) + GetMacAddress()(*string) + GetManufacturer()(*string) + GetPlaceId()(*string) + GetSensors()([]WorkplaceSensorable) + GetTags()([]string) + SetDescription(value *string)() + SetDeviceId(value *string)() + SetDisplayName(value *string)() + SetIpV4Address(value *string)() + SetIpV6Address(value *string)() + SetMacAddress(value *string)() + SetManufacturer(value *string)() + SetPlaceId(value *string)() + SetSensors(value []WorkplaceSensorable)() + SetTags(value []string)() +} diff --git a/models/workplace_sensor_device_collection_response.go b/models/workplace_sensor_device_collection_response.go new file mode 100644 index 00000000000..911faeb456b --- /dev/null +++ b/models/workplace_sensor_device_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type WorkplaceSensorDeviceCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewWorkplaceSensorDeviceCollectionResponse instantiates a new WorkplaceSensorDeviceCollectionResponse and sets the default values. +func NewWorkplaceSensorDeviceCollectionResponse()(*WorkplaceSensorDeviceCollectionResponse) { + m := &WorkplaceSensorDeviceCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateWorkplaceSensorDeviceCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkplaceSensorDeviceCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkplaceSensorDeviceCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WorkplaceSensorDeviceCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateWorkplaceSensorDeviceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]WorkplaceSensorDeviceable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(WorkplaceSensorDeviceable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []WorkplaceSensorDeviceable when successful +func (m *WorkplaceSensorDeviceCollectionResponse) GetValue()([]WorkplaceSensorDeviceable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]WorkplaceSensorDeviceable) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkplaceSensorDeviceCollectionResponse) 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 *WorkplaceSensorDeviceCollectionResponse) SetValue(value []WorkplaceSensorDeviceable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type WorkplaceSensorDeviceCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]WorkplaceSensorDeviceable) + SetValue(value []WorkplaceSensorDeviceable)() +} diff --git a/models/workplace_sensor_device_telemetry.go b/models/workplace_sensor_device_telemetry.go new file mode 100644 index 00000000000..31ba0a6c740 --- /dev/null +++ b/models/workplace_sensor_device_telemetry.go @@ -0,0 +1,337 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type WorkplaceSensorDeviceTelemetry struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkplaceSensorDeviceTelemetry instantiates a new WorkplaceSensorDeviceTelemetry and sets the default values. +func NewWorkplaceSensorDeviceTelemetry()(*WorkplaceSensorDeviceTelemetry) { + m := &WorkplaceSensorDeviceTelemetry{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkplaceSensorDeviceTelemetryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkplaceSensorDeviceTelemetryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkplaceSensorDeviceTelemetry(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *WorkplaceSensorDeviceTelemetry) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *WorkplaceSensorDeviceTelemetry) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBoolValue gets the boolValue property value. The value of the sensor. +// returns a *bool when successful +func (m *WorkplaceSensorDeviceTelemetry) GetBoolValue()(*bool) { + val, err := m.GetBackingStore().Get("boolValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetDeviceId gets the deviceId property value. The unique identifier of the device. +// returns a *string when successful +func (m *WorkplaceSensorDeviceTelemetry) GetDeviceId()(*string) { + val, err := m.GetBackingStore().Get("deviceId") + 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 *WorkplaceSensorDeviceTelemetry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["boolValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetBoolValue(val) + } + return nil + } + res["deviceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceId(val) + } + return nil + } + res["intValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetIntValue(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["sensorId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSensorId(val) + } + return nil + } + res["sensorType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWorkplaceSensorType) + if err != nil { + return err + } + if val != nil { + m.SetSensorType(val.(*WorkplaceSensorType)) + } + return nil + } + res["timestamp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetTimestamp(val) + } + return nil + } + return res +} +// GetIntValue gets the intValue property value. The value of the sensor. +// returns a *int32 when successful +func (m *WorkplaceSensorDeviceTelemetry) GetIntValue()(*int32) { + val, err := m.GetBackingStore().Get("intValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *WorkplaceSensorDeviceTelemetry) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensorId gets the sensorId property value. The unique identifier of a sensor within the device. If the sensor Id is not provided, the sensorType will be used as sensorId. +// returns a *string when successful +func (m *WorkplaceSensorDeviceTelemetry) GetSensorId()(*string) { + val, err := m.GetBackingStore().Get("sensorId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensorType gets the sensorType property value. The sensorType property +// returns a *WorkplaceSensorType when successful +func (m *WorkplaceSensorDeviceTelemetry) GetSensorType()(*WorkplaceSensorType) { + val, err := m.GetBackingStore().Get("sensorType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*WorkplaceSensorType) + } + return nil +} +// GetTimestamp gets the timestamp property value. The timestamp at which the sensor value was observed. +// returns a *Time when successful +func (m *WorkplaceSensorDeviceTelemetry) GetTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("timestamp") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkplaceSensorDeviceTelemetry) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("boolValue", m.GetBoolValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("deviceId", m.GetDeviceId()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("intValue", m.GetIntValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sensorId", m.GetSensorId()) + if err != nil { + return err + } + } + if m.GetSensorType() != nil { + cast := (*m.GetSensorType()).String() + err := writer.WriteStringValue("sensorType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("timestamp", m.GetTimestamp()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *WorkplaceSensorDeviceTelemetry) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *WorkplaceSensorDeviceTelemetry) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBoolValue sets the boolValue property value. The value of the sensor. +func (m *WorkplaceSensorDeviceTelemetry) SetBoolValue(value *bool)() { + err := m.GetBackingStore().Set("boolValue", value) + if err != nil { + panic(err) + } +} +// SetDeviceId sets the deviceId property value. The unique identifier of the device. +func (m *WorkplaceSensorDeviceTelemetry) SetDeviceId(value *string)() { + err := m.GetBackingStore().Set("deviceId", value) + if err != nil { + panic(err) + } +} +// SetIntValue sets the intValue property value. The value of the sensor. +func (m *WorkplaceSensorDeviceTelemetry) SetIntValue(value *int32)() { + err := m.GetBackingStore().Set("intValue", 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) + if err != nil { + panic(err) + } +} +// SetSensorId sets the sensorId property value. The unique identifier of a sensor within the device. If the sensor Id is not provided, the sensorType will be used as sensorId. +func (m *WorkplaceSensorDeviceTelemetry) SetSensorId(value *string)() { + err := m.GetBackingStore().Set("sensorId", value) + if err != nil { + panic(err) + } +} +// SetSensorType sets the sensorType property value. The sensorType property +func (m *WorkplaceSensorDeviceTelemetry) SetSensorType(value *WorkplaceSensorType)() { + err := m.GetBackingStore().Set("sensorType", value) + if err != nil { + panic(err) + } +} +// SetTimestamp sets the timestamp property value. The timestamp at which the sensor value was observed. +func (m *WorkplaceSensorDeviceTelemetry) SetTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("timestamp", value) + if err != nil { + panic(err) + } +} +type WorkplaceSensorDeviceTelemetryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBoolValue()(*bool) + GetDeviceId()(*string) + GetIntValue()(*int32) + GetOdataType()(*string) + GetSensorId()(*string) + GetSensorType()(*WorkplaceSensorType) + GetTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBoolValue(value *bool)() + SetDeviceId(value *string)() + SetIntValue(value *int32)() + SetOdataType(value *string)() + SetSensorId(value *string)() + SetSensorType(value *WorkplaceSensorType)() + SetTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/workplace_sensor_type.go b/models/workplace_sensor_type.go new file mode 100644 index 00000000000..2c684671747 --- /dev/null +++ b/models/workplace_sensor_type.go @@ -0,0 +1,50 @@ +package models +import ( + "errors" +) +type WorkplaceSensorType int + +const ( + // The occupancy sensor type. + OCCUPANCY_WORKPLACESENSORTYPE WorkplaceSensorType = iota + // The people count sensor type. + PEOPLECOUNT_WORKPLACESENSORTYPE + // The inferred Occupancy sensor type. + INFERREDOCCUPANCY_WORKPLACESENSORTYPE + // The heartbeat sensor type. + HEARTBEAT_WORKPLACESENSORTYPE + // The unknown feature value. + UNKNOWNFUTUREVALUE_WORKPLACESENSORTYPE +) + +func (i WorkplaceSensorType) String() string { + return []string{"occupancy", "peopleCount", "inferredOccupancy", "heartbeat", "unknownFutureValue"}[i] +} +func ParseWorkplaceSensorType(v string) (any, error) { + result := OCCUPANCY_WORKPLACESENSORTYPE + switch v { + case "occupancy": + result = OCCUPANCY_WORKPLACESENSORTYPE + case "peopleCount": + result = PEOPLECOUNT_WORKPLACESENSORTYPE + case "inferredOccupancy": + result = INFERREDOCCUPANCY_WORKPLACESENSORTYPE + case "heartbeat": + result = HEARTBEAT_WORKPLACESENSORTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_WORKPLACESENSORTYPE + default: + return 0, errors.New("Unknown WorkplaceSensorType value: " + v) + } + return &result, nil +} +func SerializeWorkplaceSensorType(values []WorkplaceSensorType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WorkplaceSensorType) isMultiValue() bool { + return false +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_response.go deleted file mode 100644 index fe9f16c2f71..00000000000 --- a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse struct { - ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse -} -// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse) { - m := &ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse{ - ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponse(), nil -} -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable -} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_response.go similarity index 57% rename from networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_response.go rename to networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_response.go index 31e38e4f760..154b3e78247 100644 --- a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_get_response.go +++ b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_response.go @@ -6,24 +6,24 @@ import ( i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" ) -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse struct { +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse) { - m := &ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse{ +// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse()(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +func CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateDiscoveredApplicationSegmentReportFromDiscriminatorValue) @@ -45,7 +45,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReport } // GetValue gets the value property value. The value property // returns a []DiscoveredApplicationSegmentReportable when successful -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DiscoveredApplicationSegmentReportable) { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DiscoveredApplicationSegmentReportable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) @@ -56,7 +56,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReport return nil } // Serialize serializes information the current object -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -76,13 +76,13 @@ func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReport return nil } // SetValue sets the value property value. The value property -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DiscoveredApplicationSegmentReportable)() { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DiscoveredApplicationSegmentReportable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable interface { +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DiscoveredApplicationSegmentReportable) diff --git a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_response.go b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_response.go new file mode 100644 index 00000000000..da22752a771 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_response.go @@ -0,0 +1,27 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse struct { + ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse()(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse) { + m := &ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse{ + ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse: *NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponse(), nil +} +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_request_builder.go similarity index 50% rename from networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_request_builder.go rename to networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_request_builder.go index db8d0af6a4c..d8bf5e4e9ef 100644 --- a/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_time_request_builder.go +++ b/networkaccess/reports_microsoft_graph_networkaccess_get_discovered_application_segment_report_with_start_date_time_with_end_date_timeuser_id_user_id_request_builder.go @@ -7,12 +7,12 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) -// ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the getDiscoveredApplicationSegmentReport method. -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder struct { +// ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder provides operations to call the getDiscoveredApplicationSegmentReport method. +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function getDiscoveredApplicationSegmentReport -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { +// ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetQueryParameters invoke function getDiscoveredApplicationSegmentReport +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` // Filter items by property values @@ -23,20 +23,22 @@ type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWith Skip *int32 `uriparametername:"%24skip"` // Show only the first n items Top *int32 `uriparametername:"%24top"` + // Usage: userId='@userId' + UserId *string `uriparametername:"userId"` } -// ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { +// ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters - QueryParameters *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetQueryParameters } -// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - m := &ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.getDiscoveredApplicationSegmentReport(startDateTime={startDateTime},endDateTime={endDateTime}){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters), +// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.getDiscoveredApplicationSegmentReport(startDateTime={startDateTime},endDateTime={endDateTime},userId='@userId'){?%24count,%24filter,%24search,%24skip,%24top,userId*}", pathParameters), } if endDateTime != nil { m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) @@ -46,17 +48,17 @@ func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportW } return m } -// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) { +// NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl - return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) + return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderInternal(urlParams, requestAdapter, nil, nil) } // Get invoke function getDiscoveredApplicationSegmentReport -// Deprecated: This method is obsolete. Use GetAsGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse instead. -// returns a ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseable when successful +// Deprecated: This method is obsolete. Use GetAsGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse instead. +// returns a ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseable, error) { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -64,19 +66,19 @@ func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReport errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeResponseable), nil + return res.(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdResponseable), nil } -// GetAsGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse invoke function getDiscoveredApplicationSegmentReport -// returns a ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable when successful +// GetAsGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse invoke function getDiscoveredApplicationSegmentReport +// returns a ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable, error) { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) GetAsGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -84,18 +86,18 @@ func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReport errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeGetResponseable), nil + return res.(ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdGetResponseable), nil } // ToGetRequestInformation invoke function getDiscoveredApplicationSegmentReport // returns a *RequestInformation when successful -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { @@ -108,7 +110,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReport return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder when successful -func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +// returns a *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder when successful +func (m *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } diff --git a/networkaccess/reports_request_builder.go b/networkaccess/reports_request_builder.go index bacd954eab7..5333af54324 100644 --- a/networkaccess/reports_request_builder.go +++ b/networkaccess/reports_request_builder.go @@ -126,10 +126,10 @@ func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessGetDestinationSummari func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime(activityPivotDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, activityPivotDateTime, endDateTime, startDateTime) } -// MicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTime provides operations to call the getDiscoveredApplicationSegmentReport method. -// returns a *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder when successful -func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +// MicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserId provides operations to call the getDiscoveredApplicationSegmentReport method. +// returns a *ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder when successful +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserId(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessGetDiscoveredApplicationSegmentReportWithStartDateTimeWithEndDateTimeuserIdUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } // MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime provides operations to call the transactionSummaries method. // returns a *ReportsMicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder when successful diff --git a/reports/partners_billing_usage_unbilled_microsoft_graph_partners_billing_export_request_builder.go b/reports/partners_billing_usage_unbilled_microsoft_graph_partners_billing_export_request_builder.go index d729a9a6e99..8a69398f3bf 100644 --- a/reports/partners_billing_usage_unbilled_microsoft_graph_partners_billing_export_request_builder.go +++ b/reports/partners_billing_usage_unbilled_microsoft_graph_partners_billing_export_request_builder.go @@ -31,7 +31,7 @@ func NewPartnersBillingUsageUnbilledMicrosoftGraphPartnersBillingExportRequestBu urlParams["request-raw-url"] = rawUrl return NewPartnersBillingUsageUnbilledMicrosoftGraphPartnersBillingExportRequestBuilderInternal(urlParams, requestAdapter) } -// Post export the unbilled Azure usage data for a specific billing period and a given currency. +// Post export unbilled Azure usage data for a specific billing period and currency. // returns a Operationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *PartnersBillingUsageUnbilledMicrosoftGraphPartnersBillingExportRequestB } return res.(ibc1d41e06c1155c6505b27a1d0c17b20692636238b0ddb2acdaa2b4548e4f67b.Operationable), nil } -// ToPostRequestInformation export the unbilled Azure usage data for a specific billing period and a given currency. +// ToPostRequestInformation export unbilled Azure usage data for a specific billing period and currency. // returns a *RequestInformation when successful func (m *PartnersBillingUsageUnbilledMicrosoftGraphPartnersBillingExportRequestBuilder) ToPostRequestInformation(ctx context.Context, body PartnersBillingUsageUnbilledMicrosoftGraphPartnersBillingExportExportPostRequestBodyable, requestConfiguration *PartnersBillingUsageUnbilledMicrosoftGraphPartnersBillingExportRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/riskdetections/risk_detections_request_builder.go b/riskdetections/risk_detections_request_builder.go index 9187a57297e..e9cdee6b2a9 100644 --- a/riskdetections/risk_detections_request_builder.go +++ b/riskdetections/risk_detections_request_builder.go @@ -11,7 +11,7 @@ import ( type RiskDetectionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a collection of riskDetection objects. +// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a riskDetection object. type RiskDetectionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -67,12 +67,12 @@ func NewRiskDetectionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7dae urlParams["request-raw-url"] = rawUrl return NewRiskDetectionsRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties of a collection of riskDetection objects. +// Get retrieve the properties of a riskDetection object. // returns a RiskDetectionCollectionResponseable 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/riskdetection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 func (m *RiskDetectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -110,7 +110,7 @@ func (m *RiskDetectionsRequestBuilder) Post(ctx context.Context, body ie233ee762 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionable), nil } -// ToGetRequestInformation retrieve the properties of a collection of riskDetection objects. +// ToGetRequestInformation retrieve the properties of a riskDetection object. // returns a *RequestInformation when successful func (m *RiskDetectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/cloud_p_c_role_assignments_request_builder.go b/rolemanagement/cloud_p_c_role_assignments_request_builder.go index f6eeb95cc9c..dbf471b0307 100644 --- a/rolemanagement/cloud_p_c_role_assignments_request_builder.go +++ b/rolemanagement/cloud_p_c_role_assignments_request_builder.go @@ -81,7 +81,7 @@ func (m *CloudPCRoleAssignmentsRequestBuilder) Count()(*CloudPCRoleAssignmentsCo // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 func (m *CloudPCRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *CloudPCRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/rolemanagement/device_management_role_assignments_request_builder.go b/rolemanagement/device_management_role_assignments_request_builder.go index 87bc3134784..f7fe1c2d7e4 100644 --- a/rolemanagement/device_management_role_assignments_request_builder.go +++ b/rolemanagement/device_management_role_assignments_request_builder.go @@ -81,7 +81,7 @@ func (m *DeviceManagementRoleAssignmentsRequestBuilder) Count()(*DeviceManagemen // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 func (m *DeviceManagementRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceManagementRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/search/acronyms_acronym_item_request_builder.go b/search/acronyms_acronym_item_request_builder.go index f616d3e6d6d..5a9728cf3d8 100644 --- a/search/acronyms_acronym_item_request_builder.go +++ b/search/acronyms_acronym_item_request_builder.go @@ -54,7 +54,7 @@ func NewAcronymsAcronymItemRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewAcronymsAcronymItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes an acronym object. +// Delete delete an acronym object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -119,7 +119,7 @@ func (m *AcronymsAcronymItemRequestBuilder) Patch(ctx context.Context, body iea4 } return res.(iea48ada8ff44901e797bb459ff00d73b62bd6a3bff0f3314a5377938749128cb.Acronymable), nil } -// ToDeleteRequestInformation deletes an acronym object. +// ToDeleteRequestInformation delete an acronym object. // returns a *RequestInformation when successful func (m *AcronymsAcronymItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *AcronymsAcronymItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/search/acronyms/{acronym%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/security/cases_ediscovery_cases_item_custodians_item_microsoft_graph_security_remove_hold_request_builder.go b/security/cases_ediscovery_cases_item_custodians_item_microsoft_graph_security_remove_hold_request_builder.go index c197611a39b..7f3423e79a3 100644 --- a/security/cases_ediscovery_cases_item_custodians_item_microsoft_graph_security_remove_hold_request_builder.go +++ b/security/cases_ediscovery_cases_item_custodians_item_microsoft_graph_security_remove_hold_request_builder.go @@ -30,7 +30,7 @@ func NewCasesEdiscoveryCasesItemCustodiansItemMicrosoftGraphSecurityRemoveHoldRe urlParams["request-raw-url"] = rawUrl return NewCasesEdiscoveryCasesItemCustodiansItemMicrosoftGraphSecurityRemoveHoldRequestBuilderInternal(urlParams, requestAdapter) } -// Post start the process of removing hold from eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. +// Post invoke action removeHold // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CasesEdiscoveryCasesItemCustodiansItemMicrosoftGraphSecurityRemoveHoldR } return nil } -// ToPostRequestInformation start the process of removing hold from eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. +// ToPostRequestInformation invoke action removeHold // returns a *RequestInformation when successful func (m *CasesEdiscoveryCasesItemCustodiansItemMicrosoftGraphSecurityRemoveHoldRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *CasesEdiscoveryCasesItemCustodiansItemMicrosoftGraphSecurityRemoveHoldRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/collaboration_analyzed_emails_analyzed_email_item_request_builder.go b/security/collaboration_analyzed_emails_analyzed_email_item_request_builder.go index 17aaf9f9e60..c1749b67184 100644 --- a/security/collaboration_analyzed_emails_analyzed_email_item_request_builder.go +++ b/security/collaboration_analyzed_emails_analyzed_email_item_request_builder.go @@ -18,7 +18,7 @@ type CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilderDeleteRequestConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilderGetQueryParameters get analyzedEmails from security +// CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilderGetQueryParameters read the properties and relationships of an analyzedEmail object. type CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,9 +70,12 @@ func (m *CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilder) Delete(ctx } return nil } -// Get get analyzedEmails from security +// Get read the properties and relationships of an analyzedEmail object. // returns a AnalyzedEmailable 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/security-analyzedemail-get?view=graph-rest-1.0 func (m *CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AnalyzedEmailable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -121,7 +124,7 @@ func (m *CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilder) ToDeleteReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get analyzedEmails from security +// ToGetRequestInformation read the properties and relationships of an analyzedEmail object. // returns a *RequestInformation when successful func (m *CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CollaborationAnalyzedEmailsAnalyzedEmailItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_request_builder.go b/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_request_builder.go index 0d9f06fa2cf..4d468f686c2 100644 --- a/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_request_builder.go +++ b/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_request_builder.go @@ -30,8 +30,11 @@ func NewCollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilder urlParams["request-raw-url"] = rawUrl return NewCollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action remediate +// Post remove a potential threat from end users' mailboxes. Remediation means to take prescribed action against a threat. This API can trigger email purge actions like move to junk, move to deleted items, soft delete, hard delete, or move to Inbox. This API enables scenarios and use cases such as SOAR integration, playbooks, and automations. For more information read email remediation, trigger action and track actions. If there is false positives admins can take move to inbox action. // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-analyzedemail-remediate?view=graph-rest-1.0 func (m *CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilder) Post(ctx context.Context, body CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRemediatePostRequestBodyable, requestConfiguration *CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -46,7 +49,7 @@ func (m *CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilde } return nil } -// ToPostRequestInformation invoke action remediate +// ToPostRequestInformation remove a potential threat from end users' mailboxes. Remediation means to take prescribed action against a threat. This API can trigger email purge actions like move to junk, move to deleted items, soft delete, hard delete, or move to Inbox. This API enables scenarios and use cases such as SOAR integration, playbooks, and automations. For more information read email remediation, trigger action and track actions. If there is false positives admins can take move to inbox action. // returns a *RequestInformation when successful func (m *CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilder) ToPostRequestInformation(ctx context.Context, body CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRemediatePostRequestBodyable, requestConfiguration *CollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/collaboration_analyzed_emails_request_builder.go b/security/collaboration_analyzed_emails_request_builder.go index 944de955689..b763a7ae40d 100644 --- a/security/collaboration_analyzed_emails_request_builder.go +++ b/security/collaboration_analyzed_emails_request_builder.go @@ -11,7 +11,7 @@ import ( type CollaborationAnalyzedEmailsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// CollaborationAnalyzedEmailsRequestBuilderGetQueryParameters get analyzedEmails from security +// CollaborationAnalyzedEmailsRequestBuilderGetQueryParameters read the properties and relationships of an analyzedEmail object. type CollaborationAnalyzedEmailsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewCollaborationAnalyzedEmailsRequestBuilder(rawUrl string, requestAdapter func (m *CollaborationAnalyzedEmailsRequestBuilder) Count()(*CollaborationAnalyzedEmailsCountRequestBuilder) { return NewCollaborationAnalyzedEmailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get analyzedEmails from security +// Get read the properties and relationships of an analyzedEmail object. // returns a AnalyzedEmailCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CollaborationAnalyzedEmailsRequestBuilder) Get(ctx context.Context, requestConfiguration *CollaborationAnalyzedEmailsRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AnalyzedEmailCollectionResponseable, error) { @@ -121,7 +121,7 @@ func (m *CollaborationAnalyzedEmailsRequestBuilder) Post(ctx context.Context, bo } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AnalyzedEmailable), nil } -// ToGetRequestInformation get analyzedEmails from security +// ToGetRequestInformation read the properties and relationships of an analyzedEmail object. // returns a *RequestInformation when successful func (m *CollaborationAnalyzedEmailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CollaborationAnalyzedEmailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/collaboration_request_builder.go b/security/collaboration_request_builder.go index 742b7c3dc88..f0cf6978725 100644 --- a/security/collaboration_request_builder.go +++ b/security/collaboration_request_builder.go @@ -18,7 +18,7 @@ type CollaborationRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CollaborationRequestBuilderGetQueryParameters get collaboration from security +// CollaborationRequestBuilderGetQueryParameters enables read and other actions on collaborative entities in Microsoft Defender. type CollaborationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *CollaborationRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get get collaboration from security +// Get enables read and other actions on collaborative entities in Microsoft Defender. // returns a CollaborationRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CollaborationRequestBuilder) Get(ctx context.Context, requestConfiguration *CollaborationRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CollaborationRootable, error) { @@ -126,7 +126,7 @@ func (m *CollaborationRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get collaboration from security +// ToGetRequestInformation enables read and other actions on collaborative entities in Microsoft Defender. // returns a *RequestInformation when successful func (m *CollaborationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CollaborationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipals/item_owners_ref_request_builder.go b/serviceprincipals/item_owners_ref_request_builder.go index 295455f01ef..a9c412ffa5a 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 directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// 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,7 +88,7 @@ func (m *ItemOwnersRefRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// 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] @@ -144,7 +144,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// 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, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipals/item_owners_request_builder.go b/serviceprincipals/item_owners_request_builder.go index 24d4e02c0ab..12e4238142b 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 directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// 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,7 +69,7 @@ func NewItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// 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] @@ -112,7 +112,7 @@ func (m *ItemOwnersRequestBuilder) GraphUser()(*ItemOwnersGraphUserRequestBuilde func (m *ItemOwnersRequestBuilder) Ref()(*ItemOwnersRefRequestBuilder) { return NewItemOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of non-admin 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). +// 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/serviceprincipals/service_principal_item_request_builder.go b/serviceprincipals/service_principal_item_request_builder.go index 0fef8094d4e..2faf8119488 100644 --- a/serviceprincipals/service_principal_item_request_builder.go +++ b/serviceprincipals/service_principal_item_request_builder.go @@ -211,12 +211,12 @@ func (m *ServicePrincipalItemRequestBuilder) OwnedObjects()(*ItemOwnedObjectsReq func (m *ServicePrincipalItemRequestBuilder) Owners()(*ItemOwnersRequestBuilder) { return NewItemOwnersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of servicePrincipal object. +// Patch create a new servicePrincipal object if it doesn't exist, or update the properties of an existing servicePrincipal object. // returns a ServicePrincipalable 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/serviceprincipal-upsert?view=graph-rest-1.0 func (m *ServicePrincipalItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, requestConfiguration *ServicePrincipalItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -284,7 +284,7 @@ func (m *ServicePrincipalItemRequestBuilder) TokenIssuancePolicies()(*ItemTokenI func (m *ServicePrincipalItemRequestBuilder) TokenLifetimePolicies()(*ItemTokenLifetimePoliciesRequestBuilder) { return NewItemTokenLifetimePoliciesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToPatchRequestInformation update the properties of servicePrincipal object. +// ToPatchRequestInformation create a new servicePrincipal object if it doesn't exist, or update the properties of an existing servicePrincipal object. // returns a *RequestInformation when successful func (m *ServicePrincipalItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, requestConfiguration *ServicePrincipalItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipalswithappid/service_principals_with_app_id_request_builder.go b/serviceprincipalswithappid/service_principals_with_app_id_request_builder.go index 8dcaae7b173..27d6e8e8715 100644 --- a/serviceprincipalswithappid/service_principals_with_app_id_request_builder.go +++ b/serviceprincipalswithappid/service_principals_with_app_id_request_builder.go @@ -99,12 +99,12 @@ func (m *ServicePrincipalsWithAppIdRequestBuilder) Get(ctx context.Context, requ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } -// Patch update the properties of servicePrincipal object. +// Patch create a new servicePrincipal object if it doesn't exist, or update the properties of an existing servicePrincipal object. // returns a ServicePrincipalable 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/serviceprincipal-upsert?view=graph-rest-1.0 func (m *ServicePrincipalsWithAppIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, requestConfiguration *ServicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -147,7 +147,7 @@ func (m *ServicePrincipalsWithAppIdRequestBuilder) ToGetRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of servicePrincipal object. +// ToPatchRequestInformation create a new servicePrincipal object if it doesn't exist, or update the properties of an existing servicePrincipal object. // returns a *RequestInformation when successful func (m *ServicePrincipalsWithAppIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, requestConfiguration *ServicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/servicePrincipals(appId='{appId}')", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_drive_item_content_request_builder.go b/shares/item_drive_item_content_request_builder.go index cc3b2061e77..c80a686ae2d 100644 --- a/shares/item_drive_item_content_request_builder.go +++ b/shares/item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from shares type ItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemDriveItemContentRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from shares // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestCon } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byt } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from shares // returns a *RequestInformation when successful func (m *ItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in shares // returns a *RequestInformation when successful func (m *ItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/shares/{sharedDriveItem%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_drive_item_content_stream_request_builder.go b/shares/item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..6e7e3817f96 --- /dev/null +++ b/shares/item_drive_item_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package shares + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the sharedDriveItem entity. +type ItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDriveItemContentStreamRequestBuilder) { + m := &ItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemDriveItemContentStreamRequestBuilder instantiates a new ItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/shares-get?view=graph-rest-1.0 +func (m *ItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemDriveItemContentStreamRequestBuilder) { + return NewItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/shares/item_drive_item_request_builder.go b/shares/item_drive_item_request_builder.go index 14149f60002..bf534eb16e0 100644 --- a/shares/item_drive_item_request_builder.go +++ b/shares/item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemDriveItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *ItemDriveItemRequestBuilder) Content()(*ItemDriveItemContentRequestBuilder) { return NewItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the sharedDriveItem entity. +// returns a *ItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemDriveItemRequestBuilder) ContentStream()(*ItemDriveItemContentStreamRequestBuilder) { + return NewItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/shares/item_items_drive_item_item_request_builder.go b/shares/item_items_drive_item_item_request_builder.go index d6257130750..9f4a9f3db70 100644 --- a/shares/item_items_drive_item_item_request_builder.go +++ b/shares/item_items_drive_item_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemItemsDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4 func (m *ItemItemsDriveItemItemRequestBuilder) Content()(*ItemItemsItemContentRequestBuilder) { return NewItemItemsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the sharedDriveItem entity. +// returns a *ItemItemsItemContentStreamRequestBuilder when successful +func (m *ItemItemsDriveItemItemRequestBuilder) ContentStream()(*ItemItemsItemContentStreamRequestBuilder) { + return NewItemItemsItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get all driveItems contained in the sharing root. This collection cannot be enumerated. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/shares/item_items_item_content_request_builder.go b/shares/item_items_item_content_request_builder.go index 8f3d8734870..b1ea7ed6e32 100644 --- a/shares/item_items_item_content_request_builder.go +++ b/shares/item_items_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemItemsItemContentRequestBuilderGetQueryParameters get content for the navigation property items from shares type ItemItemsItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemItemsItemContentRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemItemsItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property items from shares // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemItemsItemContentRequestBuilder) Get(ctx context.Context, requestCon } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property items in shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemItemsItemContentRequestBuilder) Put(ctx context.Context, body []byt } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property items from shares // returns a *RequestInformation when successful func (m *ItemItemsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemItemsItemContentRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property items in shares // returns a *RequestInformation when successful func (m *ItemItemsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/shares/{sharedDriveItem%2Did}/items/{driveItem%2Did}/content", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_items_item_content_stream_request_builder.go b/shares/item_items_item_content_stream_request_builder.go new file mode 100644 index 00000000000..05b0fcc0f07 --- /dev/null +++ b/shares/item_items_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package shares + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemContentStreamRequestBuilder provides operations to manage the media for the sharedDriveItem entity. +type ItemItemsItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemContentStreamRequestBuilderInternal instantiates a new ItemItemsItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemContentStreamRequestBuilder) { + m := &ItemItemsItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/items/{driveItem%2Did}/contentStream", pathParameters), + } + return m +} +// NewItemItemsItemContentStreamRequestBuilder instantiates a new ItemItemsItemContentStreamRequestBuilder and sets the default values. +func NewItemItemsItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemItemsItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemsItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemContentStreamRequestBuilder when successful +func (m *ItemItemsItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemContentStreamRequestBuilder) { + return NewItemItemsItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/shares/item_list_columns_request_builder.go b/shares/item_list_columns_request_builder.go index 21425232f13..a6641694d20 100644 --- a/shares/item_list_columns_request_builder.go +++ b/shares/item_list_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ItemListColumnsRequestBuilderGetQueryParameters the collection of field definitions for this list. type ItemListColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *ItemListColumnsRequestBuilder) Count()(*ItemListColumnsCountRequestBuilder) { return NewItemListColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// Get the collection of field definitions for this list. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemListColumnsRequestBuilder) Get(ctx context.Context, requestConfigur } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// Post create columnDefinition // returns a ColumnDefinitionable 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 *ItemListColumnsRequestBuilder) Post(ctx context.Context, body ie233ee76 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ToGetRequestInformation the collection of field definitions for this list. // returns a *RequestInformation when successful func (m *ItemListColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemListColumnsRequestBuilder) ToGetRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition // returns a *RequestInformation when successful func (m *ItemListColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/columns", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_add_copy_request_builder.go b/shares/item_list_content_types_add_copy_request_builder.go index ae70caf1868..1a386b6c61b 100644 --- a/shares/item_list_content_types_add_copy_request_builder.go +++ b/shares/item_list_content_types_add_copy_request_builder.go @@ -31,7 +31,7 @@ func NewItemListContentTypesAddCopyRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) } -// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// Post invoke action addCopy // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemListContentTypesAddCopyRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToPostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// ToPostRequestInformation invoke action addCopy // returns a *RequestInformation when successful func (m *ItemListContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemListContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_associate_with_hub_sites_request_builder.go b/shares/item_list_content_types_item_associate_with_hub_sites_request_builder.go index cb56e96662a..cb6db2beb4e 100644 --- a/shares/item_list_content_types_item_associate_with_hub_sites_request_builder.go +++ b/shares/item_list_content_types_item_associate_with_hub_sites_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) } -// Post associate a [content type][contentType] with a list of hub sites. +// Post invoke action associateWithHubSites // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemAssociateWithHubSitesRequestBuilder) Post(ctx c } return nil } -// ToPostRequestInformation associate a [content type][contentType] with a list of hub sites. +// ToPostRequestInformation invoke action associateWithHubSites // returns a *RequestInformation when successful func (m *ItemListContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemListContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_column_links_column_link_item_request_builder.go b/shares/item_list_content_types_item_column_links_column_link_item_request_builder.go index 64baf7cc821..67beb405708 100644 --- a/shares/item_list_content_types_item_column_links_column_link_item_request_builder.go +++ b/shares/item_list_content_types_item_column_links_column_link_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Delete } return nil } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable, error) { @@ -121,7 +121,7 @@ func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToDele requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_column_links_request_builder.go b/shares/item_list_content_types_item_column_links_request_builder.go index 512875d2abe..6b27fb161d9 100644 --- a/shares/item_list_content_types_item_column_links_request_builder.go +++ b/shares/item_list_content_types_item_column_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListContentTypesItemColumnLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemListContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemListContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListContentTypesItemColumnLinksRequestBuilder(rawUrl string, request func (m *ItemListContentTypesItemColumnLinksRequestBuilder) Count()(*ItemListContentTypesItemColumnLinksCountRequestBuilder) { return NewItemListContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemListContentTypesItemColumnLinksRequestBuilder) Post(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable), nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_columns_column_definition_item_request_builder.go b/shares/item_list_content_types_item_columns_column_definition_item_request_builder.go index 1860dd4ebd0..e9fc63576df 100644 --- a/shares/item_list_content_types_item_columns_column_definition_item_request_builder.go +++ b/shares/item_list_content_types_item_columns_column_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. type ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,7 @@ func NewItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// Delete delete columnDefinition // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -73,7 +73,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Dele } return nil } -// Get retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// Get retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -96,7 +96,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// Patch update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// Patch update columnDefinition // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Patc func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemListContentTypesItemColumnsItemSourceColumnRequestBuilder) { return NewItemListContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// ToDeleteRequestInformation delete columnDefinition // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ToGetRequestInformation retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// ToPatchRequestInformation update columnDefinition // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_columns_request_builder.go b/shares/item_list_content_types_item_columns_request_builder.go index 8e4bbfb8e14..bc67c3f6658 100644 --- a/shares/item_list_content_types_item_columns_request_builder.go +++ b/shares/item_list_content_types_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListContentTypesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ItemListContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. type ItemListContentTypesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListContentTypesItemColumnsRequestBuilder(rawUrl string, requestAdap func (m *ItemListContentTypesItemColumnsRequestBuilder) Count()(*ItemListContentTypesItemColumnsCountRequestBuilder) { return NewItemListContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// Get the collection of column definitions for this content type. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemListContentTypesItemColumnsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a content type // returns a ColumnDefinitionable 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 *ItemListContentTypesItemColumnsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ToGetRequestInformation the collection of column definitions for this content type. // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemListContentTypesItemColumnsRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a content type // returns a *RequestInformation when successful func (m *ItemListContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_copy_to_default_content_location_request_builder.go b/shares/item_list_content_types_item_copy_to_default_content_location_request_builder.go index 3096af47fdb..83a477b86bc 100644 --- a/shares/item_list_content_types_item_copy_to_default_content_location_request_builder.go +++ b/shares/item_list_content_types_item_copy_to_default_content_location_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemCopyToDefaultContentLocationRequestBuilder(rawUr urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) } -// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// Post invoke action copyToDefaultContentLocation // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemCopyToDefaultContentLocationRequestBuilder) Pos } return nil } -// ToPostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// ToPostRequestInformation invoke action copyToDefaultContentLocation // returns a *RequestInformation when successful func (m *ItemListContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemListContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_publish_request_builder.go b/shares/item_list_content_types_item_publish_request_builder.go index 13d8bb9f828..76678b83722 100644 --- a/shares/item_list_content_types_item_publish_request_builder.go +++ b/shares/item_list_content_types_item_publish_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemPublishRequestBuilder(rawUrl string, requestAdap urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post publishes a [contentType][] present in a content type hub site. +// Post invoke action publish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemPublishRequestBuilder) Post(ctx context.Context } return nil } -// ToPostRequestInformation publishes a [contentType][] present in a content type hub site. +// ToPostRequestInformation invoke action publish // returns a *RequestInformation when successful func (m *ItemListContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_item_unpublish_request_builder.go b/shares/item_list_content_types_item_unpublish_request_builder.go index 7b14401e334..6f965610ed7 100644 --- a/shares/item_list_content_types_item_unpublish_request_builder.go +++ b/shares/item_list_content_types_item_unpublish_request_builder.go @@ -30,7 +30,7 @@ func NewItemListContentTypesItemUnpublishRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemListContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post unpublish a [contentType][] from a content type hub site. +// Post invoke action unpublish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListContentTypesItemUnpublishRequestBuilder) Post(ctx context.Conte } return nil } -// ToPostRequestInformation unpublish a [contentType][] from a content type hub site. +// ToPostRequestInformation invoke action unpublish // returns a *RequestInformation when successful func (m *ItemListContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_content_types_request_builder.go b/shares/item_list_content_types_request_builder.go index 4a8033c40c7..74a95bbb48b 100644 --- a/shares/item_list_content_types_request_builder.go +++ b/shares/item_list_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [list][]. +// ItemListContentTypesRequestBuilderGetQueryParameters the collection of content types present in this list. type ItemListContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemListContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ItemListContentTypesRequestBuilder) Count()(*ItemListContentTypesCountRequestBuilder) { return NewItemListContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [list][]. +// Get the collection of content types present in this list. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -134,7 +134,7 @@ func (m *ItemListContentTypesRequestBuilder) Post(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [list][]. +// ToGetRequestInformation the collection of content types present in this list. // returns a *RequestInformation when successful func (m *ItemListContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_items_item_activities_item_drive_item_content_request_builder.go b/shares/item_list_items_item_activities_item_drive_item_content_request_builder.go index e4f5d2719f0..b751e07ad2b 100644 --- a/shares/item_list_items_item_activities_item_drive_item_content_request_builder.go +++ b/shares/item_list_items_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from shares type ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemListItemsItemActivitiesItemDriveItemContentRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemListItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from shares // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from shares // returns a *RequestInformation when successful func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in shares // returns a *RequestInformation when successful func (m *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_items_item_activities_item_drive_item_content_stream_request_builder.go b/shares/item_list_items_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..a02eb288712 --- /dev/null +++ b/shares/item_list_items_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package shares + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the sharedDriveItem entity. +type ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/shares/item_list_items_item_activities_item_drive_item_request_builder.go b/shares/item_list_items_item_activities_item_drive_item_request_builder.go index f6c305813ab..8b6ff267ed3 100644 --- a/shares/item_list_items_item_activities_item_drive_item_request_builder.go +++ b/shares/item_list_items_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemListItemsItemActivitiesItemDriveItemRequestBuilder(rawUrl string, re func (m *ItemListItemsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemListItemsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemListItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the sharedDriveItem entity. +// returns a *ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get driveItem from shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/shares/item_list_items_item_create_link_request_builder.go b/shares/item_list_items_item_create_link_request_builder.go index 9bd875a2b9d..8b1b8c97e20 100644 --- a/shares/item_list_items_item_create_link_request_builder.go +++ b/shares/item_list_items_item_create_link_request_builder.go @@ -31,7 +31,7 @@ func NewItemListItemsItemCreateLinkRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemListItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) } -// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a Permissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemListItemsItemCreateLinkRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Permissionable), nil } -// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a *RequestInformation when successful func (m *ItemListItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListItemsItemCreateLinkPostRequestBodyable, requestConfiguration *ItemListItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_items_item_drive_item_content_request_builder.go b/shares/item_list_items_item_drive_item_content_request_builder.go index f81b78dfd32..6633dd17b79 100644 --- a/shares/item_list_items_item_drive_item_content_request_builder.go +++ b/shares/item_list_items_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListItemsItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListItemsItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemListItemsItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from shares type ItemListItemsItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemListItemsItemDriveItemContentRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemListItemsItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from shares // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemListItemsItemDriveItemContentRequestBuilder) Get(ctx context.Contex } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemListItemsItemDriveItemContentRequestBuilder) Put(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from shares // returns a *RequestInformation when successful func (m *ItemListItemsItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemListItemsItemDriveItemContentRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in shares // returns a *RequestInformation when successful func (m *ItemListItemsItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_list_items_item_drive_item_content_stream_request_builder.go b/shares/item_list_items_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..258181bd485 --- /dev/null +++ b/shares/item_list_items_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package shares + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemListItemsItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the sharedDriveItem entity. +type ItemListItemsItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemListItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + m := &ItemListItemsItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemListItemsItemDriveItemContentStreamRequestBuilder instantiates a new ItemListItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListItemsItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemListItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/shares/item_list_items_item_drive_item_request_builder.go b/shares/item_list_items_item_drive_item_request_builder.go index 614f2ae9e22..9a48df2ff7e 100644 --- a/shares/item_list_items_item_drive_item_request_builder.go +++ b/shares/item_list_items_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemListItemsItemDriveItemRequestBuilder(rawUrl string, requestAdapter i func (m *ItemListItemsItemDriveItemRequestBuilder) Content()(*ItemListItemsItemDriveItemContentRequestBuilder) { return NewItemListItemsItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the sharedDriveItem entity. +// returns a *ItemListItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListItemsItemDriveItemRequestBuilder) ContentStream()(*ItemListItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemListItemsItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get for document libraries, the driveItem relationship exposes the listItem as a [driveItem][] // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/shares/item_root_content_request_builder.go b/shares/item_root_content_request_builder.go index f11f2d18d77..02e64121d2e 100644 --- a/shares/item_root_content_request_builder.go +++ b/shares/item_root_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemRootContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemRootContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemRootContentRequestBuilderGetQueryParameters get content for the navigation property root from shares type ItemRootContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemRootContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewItemRootContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property root from shares // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRootContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRootContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemRootContentRequestBuilder) Get(ctx context.Context, requestConfigur } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property root in shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRootContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemRootContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemRootContentRequestBuilder) Put(ctx context.Context, body []byte, re } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property root from shares // returns a *RequestInformation when successful func (m *ItemRootContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRootContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemRootContentRequestBuilder) ToGetRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property root in shares // returns a *RequestInformation when successful func (m *ItemRootContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemRootContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/shares/{sharedDriveItem%2Did}/root/content", m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_root_content_stream_request_builder.go b/shares/item_root_content_stream_request_builder.go new file mode 100644 index 00000000000..ea90f96dace --- /dev/null +++ b/shares/item_root_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package shares + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemRootContentStreamRequestBuilder provides operations to manage the media for the sharedDriveItem entity. +type ItemRootContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemRootContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemRootContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemRootContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemRootContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemRootContentStreamRequestBuilderInternal instantiates a new ItemRootContentStreamRequestBuilder and sets the default values. +func NewItemRootContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRootContentStreamRequestBuilder) { + m := &ItemRootContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/root/contentStream", pathParameters), + } + return m +} +// NewItemRootContentStreamRequestBuilder instantiates a new ItemRootContentStreamRequestBuilder and sets the default values. +func NewItemRootContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRootContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemRootContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemRootContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRootContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemRootContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemRootContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemRootContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRootContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemRootContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemRootContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemRootContentStreamRequestBuilder when successful +func (m *ItemRootContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemRootContentStreamRequestBuilder) { + return NewItemRootContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/shares/item_root_request_builder.go b/shares/item_root_request_builder.go index cd1e16dc354..b6591d9e8b4 100644 --- a/shares/item_root_request_builder.go +++ b/shares/item_root_request_builder.go @@ -45,6 +45,11 @@ func NewItemRootRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26337 func (m *ItemRootRequestBuilder) Content()(*ItemRootContentRequestBuilder) { return NewItemRootContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the sharedDriveItem entity. +// returns a *ItemRootContentStreamRequestBuilder when successful +func (m *ItemRootRequestBuilder) ContentStream()(*ItemRootContentStreamRequestBuilder) { + return NewItemRootContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get root from shares // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go b/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go index 0b8b55d2195..2290d633c32 100644 --- a/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go +++ b/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from sites type ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestB urlParams["request-raw-url"] = rawUrl return NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from sites // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequest } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in sites // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from sites // returns a *RequestInformation when successful func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequest requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in sites // returns a *RequestInformation when successful func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go b/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..526358dbb9e --- /dev/null +++ b/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package sites + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the site entity. +type ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go b/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go index e626e71cf60..3bba520b594 100644 --- a/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go +++ b/sites/item_analytics_item_activity_stats_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder( func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the site entity. +// returns a *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get exposes the driveItem that was the target of this activity. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/sites/item_analytics_request_builder.go b/sites/item_analytics_request_builder.go index d7a3098bbb8..6e6132ac11f 100644 --- a/sites/item_analytics_request_builder.go +++ b/sites/item_analytics_request_builder.go @@ -18,7 +18,7 @@ type ItemAnalyticsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site. +// ItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. type ItemAnalyticsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemAnalyticsRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get analytics about the view activities that took place in this site. +// Get analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAnalyticsable, error) { @@ -136,7 +136,7 @@ func (m *ItemAnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation analytics about the view activities that took place in this site. +// ToGetRequestInformation analytics about the view activities that took place on this site. // 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) diff --git a/sites/item_columns_request_builder.go b/sites/item_columns_request_builder.go index 947c406751f..6482ac24076 100644 --- a/sites/item_columns_request_builder.go +++ b/sites/item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ItemColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. type ItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 func (m *ItemColumnsRequestBuilder) Count()(*ItemColumnsCountRequestBuilder) { return NewItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// Get the collection of column definitions reusable across lists under this site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguratio } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a site // returns a ColumnDefinitionable 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 *ItemColumnsRequestBuilder) Post(ctx context.Context, body ie233ee762e29 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ToGetRequestInformation the collection of column definitions reusable across lists under this site. // returns a *RequestInformation when successful func (m *ItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a site // returns a *RequestInformation when successful func (m *ItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/sites/{site%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_add_copy_request_builder.go b/sites/item_content_types_add_copy_request_builder.go index abed9f0d2ed..75f684f2712 100644 --- a/sites/item_content_types_add_copy_request_builder.go +++ b/sites/item_content_types_add_copy_request_builder.go @@ -31,7 +31,7 @@ func NewItemContentTypesAddCopyRequestBuilder(rawUrl string, requestAdapter i2ae urlParams["request-raw-url"] = rawUrl return NewItemContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) } -// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// Post invoke action addCopy // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemContentTypesAddCopyRequestBuilder) Post(ctx context.Context, body I } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToPostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// ToPostRequestInformation invoke action addCopy // returns a *RequestInformation when successful func (m *ItemContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_content_type_item_request_builder.go b/sites/item_content_types_content_type_item_request_builder.go index 0be9687631d..1548dbb4a7e 100644 --- a/sites/item_content_types_content_type_item_request_builder.go +++ b/sites/item_content_types_content_type_item_request_builder.go @@ -136,7 +136,7 @@ func (m *ItemContentTypesContentTypeItemRequestBuilder) Get(ctx context.Context, func (m *ItemContentTypesContentTypeItemRequestBuilder) IsPublished()(*ItemContentTypesItemIsPublishedRequestBuilder) { return NewItemContentTypesItemIsPublishedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update a [content type][contentType]. +// Patch update contentType // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -189,7 +189,7 @@ func (m *ItemContentTypesContentTypeItemRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [content type][contentType]. +// ToPatchRequestInformation update contentType // returns a *RequestInformation when successful func (m *ItemContentTypesContentTypeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_associate_with_hub_sites_request_builder.go b/sites/item_content_types_item_associate_with_hub_sites_request_builder.go index 0e4c4abf56b..78077c14d98 100644 --- a/sites/item_content_types_item_associate_with_hub_sites_request_builder.go +++ b/sites/item_content_types_item_associate_with_hub_sites_request_builder.go @@ -30,7 +30,7 @@ func NewItemContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl string, r urlParams["request-raw-url"] = rawUrl return NewItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) } -// Post associate a [content type][contentType] with a list of hub sites. +// Post invoke action associateWithHubSites // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemContentTypesItemAssociateWithHubSitesRequestBuilder) Post(ctx conte } return nil } -// ToPostRequestInformation associate a [content type][contentType] with a list of hub sites. +// ToPostRequestInformation invoke action associateWithHubSites // returns a *RequestInformation when successful func (m *ItemContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_column_links_column_link_item_request_builder.go b/sites/item_content_types_item_column_links_column_link_item_request_builder.go index 1686f338b2f..edee29f4d9f 100644 --- a/sites/item_content_types_item_column_links_column_link_item_request_builder.go +++ b/sites/item_content_types_item_column_links_column_link_item_request_builder.go @@ -18,7 +18,7 @@ type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Delete(ctx } return nil } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable, error) { @@ -121,7 +121,7 @@ func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToDeleteRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_column_links_request_builder.go b/sites/item_content_types_item_column_links_request_builder.go index 548c11777a1..1c033e45057 100644 --- a/sites/item_content_types_item_column_links_request_builder.go +++ b/sites/item_content_types_item_column_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemContentTypesItemColumnLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemContentTypesItemColumnLinksRequestBuilder(rawUrl string, requestAdap func (m *ItemContentTypesItemColumnLinksRequestBuilder) Count()(*ItemContentTypesItemColumnLinksCountRequestBuilder) { return NewItemContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemContentTypesItemColumnLinksRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable), nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_columns_column_definition_item_request_builder.go b/sites/item_content_types_item_columns_column_definition_item_request_builder.go index 182c95e2802..c8510080ffe 100644 --- a/sites/item_content_types_item_columns_column_definition_item_request_builder.go +++ b/sites/item_content_types_item_columns_column_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,7 @@ func NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// Delete delete columnDefinition // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -73,7 +73,7 @@ func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Delete(c } return nil } -// Get retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// Get retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -96,7 +96,7 @@ func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// Patch update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// Patch update columnDefinition // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Patch(ct func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemContentTypesItemColumnsItemSourceColumnRequestBuilder) { return NewItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// ToDeleteRequestInformation delete columnDefinition // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDelete requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ToGetRequestInformation retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// ToPatchRequestInformation update columnDefinition // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_columns_request_builder.go b/sites/item_content_types_item_columns_request_builder.go index dbdefeb1ff0..b2e008c49af 100644 --- a/sites/item_content_types_item_columns_request_builder.go +++ b/sites/item_content_types_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemContentTypesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ItemContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. type ItemContentTypesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemContentTypesItemColumnsRequestBuilder(rawUrl string, requestAdapter func (m *ItemContentTypesItemColumnsRequestBuilder) Count()(*ItemContentTypesItemColumnsCountRequestBuilder) { return NewItemContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// Get the collection of column definitions for this content type. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemContentTypesItemColumnsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a content type // returns a ColumnDefinitionable 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 *ItemContentTypesItemColumnsRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ToGetRequestInformation the collection of column definitions for this content type. // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a content type // returns a *RequestInformation when successful func (m *ItemContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_copy_to_default_content_location_request_builder.go b/sites/item_content_types_item_copy_to_default_content_location_request_builder.go index 34b8d51bb26..dafac439a3a 100644 --- a/sites/item_content_types_item_copy_to_default_content_location_request_builder.go +++ b/sites/item_content_types_item_copy_to_default_content_location_request_builder.go @@ -30,7 +30,7 @@ func NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) } -// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// Post invoke action copyToDefaultContentLocation // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) Post(ct } return nil } -// ToPostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// ToPostRequestInformation invoke action copyToDefaultContentLocation // returns a *RequestInformation when successful func (m *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_publish_request_builder.go b/sites/item_content_types_item_publish_request_builder.go index 47590260c48..10bdf1aafa1 100644 --- a/sites/item_content_types_item_publish_request_builder.go +++ b/sites/item_content_types_item_publish_request_builder.go @@ -30,7 +30,7 @@ func NewItemContentTypesItemPublishRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post publishes a [contentType][] present in a content type hub site. +// Post invoke action publish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemContentTypesItemPublishRequestBuilder) Post(ctx context.Context, re } return nil } -// ToPostRequestInformation publishes a [contentType][] present in a content type hub site. +// ToPostRequestInformation invoke action publish // returns a *RequestInformation when successful func (m *ItemContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_item_unpublish_request_builder.go b/sites/item_content_types_item_unpublish_request_builder.go index d57b90959b4..40ddefc3ea5 100644 --- a/sites/item_content_types_item_unpublish_request_builder.go +++ b/sites/item_content_types_item_unpublish_request_builder.go @@ -30,7 +30,7 @@ func NewItemContentTypesItemUnpublishRequestBuilder(rawUrl string, requestAdapte urlParams["request-raw-url"] = rawUrl return NewItemContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post unpublish a [contentType][] from a content type hub site. +// Post invoke action unpublish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemContentTypesItemUnpublishRequestBuilder) Post(ctx context.Context, } return nil } -// ToPostRequestInformation unpublish a [contentType][] from a content type hub site. +// ToPostRequestInformation invoke action unpublish // returns a *RequestInformation when successful func (m *ItemContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_content_types_request_builder.go b/sites/item_content_types_request_builder.go index e7dbd061517..bdeaf0e5d21 100644 --- a/sites/item_content_types_request_builder.go +++ b/sites/item_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][]. +// ItemContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. type ItemContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d func (m *ItemContentTypesRequestBuilder) Count()(*ItemContentTypesCountRequestBuilder) { return NewItemContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [site][]. +// Get the collection of content types defined for this site. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -137,7 +137,7 @@ func (m *ItemContentTypesRequestBuilder) Post(ctx context.Context, body ie233ee7 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [site][]. +// ToGetRequestInformation the collection of content types defined for this site. // returns a *RequestInformation when successful func (m *ItemContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_external_columns_column_definition_item_request_builder.go b/sites/item_external_columns_column_definition_item_request_builder.go index 457784bd996..67546917fb3 100644 --- a/sites/item_external_columns_column_definition_item_request_builder.go +++ b/sites/item_external_columns_column_definition_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemExternalColumnsColumnDefinitionItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemExternalColumnsColumnDefinitionItemRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewItemExternalColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExternalColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *ItemExternalColumnsColumnDefinitionItemRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemExternalColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_external_columns_request_builder.go b/sites/item_external_columns_request_builder.go index 32327522e5a..d1eb6081db0 100644 --- a/sites/item_external_columns_request_builder.go +++ b/sites/item_external_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemExternalColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemExternalColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemExternalColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *ItemExternalColumnsRequestBuilder) Count()(*ItemExternalColumnsCountRequestBuilder) { return NewItemExternalColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExternalColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable, error) { @@ -89,7 +89,7 @@ func (m *ItemExternalColumnsRequestBuilder) Get(ctx context.Context, requestConf } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_analytics_request_builder.go b/sites/item_get_by_path_with_path_analytics_request_builder.go index d5fa83e5640..855fda25e0e 100644 --- a/sites/item_get_by_path_with_path_analytics_request_builder.go +++ b/sites/item_get_by_path_with_path_analytics_request_builder.go @@ -18,7 +18,7 @@ type ItemGetByPathWithPathAnalyticsRequestBuilderDeleteRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemGetByPathWithPathAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site. +// ItemGetByPathWithPathAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. type ItemGetByPathWithPathAnalyticsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemGetByPathWithPathAnalyticsRequestBuilder) Delete(ctx context.Contex } return nil } -// Get analytics about the view activities that took place in this site. +// Get analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathAnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAnalyticsable, error) { @@ -121,7 +121,7 @@ func (m *ItemGetByPathWithPathAnalyticsRequestBuilder) ToDeleteRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation analytics about the view activities that took place in this site. +// ToGetRequestInformation analytics about the view activities that took place on this site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_columns_request_builder.go b/sites/item_get_by_path_with_path_columns_request_builder.go index e8852dcf9a2..5e7947bf401 100644 --- a/sites/item_get_by_path_with_path_columns_request_builder.go +++ b/sites/item_get_by_path_with_path_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ItemGetByPathWithPathColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. type ItemGetByPathWithPathColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemGetByPathWithPathColumnsRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// Get the collection of column definitions reusable across lists under this site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -82,7 +82,7 @@ func (m *ItemGetByPathWithPathColumnsRequestBuilder) Get(ctx context.Context, re } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a site // returns a ColumnDefinitionable 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 *ItemGetByPathWithPathColumnsRequestBuilder) Post(ctx context.Context, b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ToGetRequestInformation the collection of column definitions reusable across lists under this site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,7 +119,7 @@ func (m *ItemGetByPathWithPathColumnsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a site // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemGetByPathWithPathColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/columns", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_content_types_request_builder.go b/sites/item_get_by_path_with_path_content_types_request_builder.go index bfb4dc3489c..8ef0dcd0caf 100644 --- a/sites/item_get_by_path_with_path_content_types_request_builder.go +++ b/sites/item_get_by_path_with_path_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][]. +// ItemGetByPathWithPathContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. type ItemGetByPathWithPathContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemGetByPathWithPathContentTypesRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathContentTypesRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [site][]. +// Get the collection of content types defined for this site. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *ItemGetByPathWithPathContentTypesRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [site][]. +// ToGetRequestInformation the collection of content types defined for this site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_external_columns_request_builder.go b/sites/item_get_by_path_with_path_external_columns_request_builder.go index 3a4214887cf..17d289e6dca 100644 --- a/sites/item_get_by_path_with_path_external_columns_request_builder.go +++ b/sites/item_get_by_path_with_path_external_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathExternalColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemGetByPathWithPathExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemGetByPathWithPathExternalColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemGetByPathWithPathExternalColumnsRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathExternalColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathExternalColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemGetByPathWithPathExternalColumnsRequestBuilder) Get(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go index 18503d1f21d..b8d55b18175 100644 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go +++ b/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go @@ -18,7 +18,7 @@ type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site. +// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Delete( } return nil } -// Get analytics about the view activities that took place in this site. +// Get analytics about the view activities that took place on this site. // returns a ItemAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAnalyticsable, error) { @@ -121,7 +121,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation analytics about the view activities that took place in this site. +// ToGetRequestInformation analytics about the view activities that took place on this site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go index 8d95a903574..4b0494cb049 100644 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go +++ b/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. type ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// Get the collection of column definitions reusable across lists under this site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -82,7 +82,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a site // returns a ColumnDefinitionable 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 *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site]. +// ToGetRequestInformation the collection of column definitions reusable across lists under this site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,7 +119,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToGetRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a site // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go index 8724ee53e7a..f89c1d4449e 100644 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go +++ b/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][]. +// ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. type ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(urlParams, requestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [site][]. +// Get the collection of content types defined for this site. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) Post } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [site][]. +// ToGetRequestInformation the collection of content types defined for this site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go index 6f32edbc4e0..b1cc8f0099b 100644 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go +++ b/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. type ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// Get the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) G } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// ToGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site. +// ToGetRequestInformation the collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go index 78fe2eb7173..2eef12771e8 100644 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go +++ b/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(urlParams, requestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_items_request_builder.go b/sites/item_get_by_path_with_path_items_request_builder.go index bd57d14f13b..6579da89957 100644 --- a/sites/item_get_by_path_with_path_items_request_builder.go +++ b/sites/item_get_by_path_with_path_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemGetByPathWithPathItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemGetByPathWithPathItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemGetByPathWithPathItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemGetByPathWithPathItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -52,7 +52,7 @@ func NewItemGetByPathWithPathItemsRequestBuilder(rawUrl string, requestAdapter i urlParams["request-raw-url"] = rawUrl return NewItemGetByPathWithPathItemsRequestBuilderInternal(urlParams, requestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable, error) { @@ -72,7 +72,7 @@ func (m *ItemGetByPathWithPathItemsRequestBuilder) Get(ctx context.Context, requ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_items_base_item_item_request_builder.go b/sites/item_items_base_item_item_request_builder.go index d2470c24025..17a771796e1 100644 --- a/sites/item_items_base_item_item_request_builder.go +++ b/sites/item_items_base_item_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsBaseItemItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsBaseItemItemRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemItemsBaseItemItemRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemItemsBaseItemItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemItemsBaseItemItemRequestBuilder(rawUrl string, requestAdapter i2ae41 urlParams["request-raw-url"] = rawUrl return NewItemItemsBaseItemItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsBaseItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsBaseItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemable, error) { @@ -60,7 +60,7 @@ func (m *ItemItemsBaseItemItemRequestBuilder) Get(ctx context.Context, requestCo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemItemsBaseItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsBaseItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_items_request_builder.go b/sites/item_items_request_builder.go index 6f0253ac369..02c92e2df95 100644 --- a/sites/item_items_request_builder.go +++ b/sites/item_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection cannot be enumerated. +// ItemItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. type ItemItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2633 func (m *ItemItemsRequestBuilder) Count()(*ItemItemsCountRequestBuilder) { return NewItemItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get used to address any item contained in this site. This collection cannot be enumerated. +// Get used to address any item contained in this site. This collection can't be enumerated. // returns a BaseItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable, error) { @@ -89,7 +89,7 @@ func (m *ItemItemsRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseItemCollectionResponseable), nil } -// ToGetRequestInformation used to address any item contained in this site. This collection cannot be enumerated. +// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. // returns a *RequestInformation when successful func (m *ItemItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_columns_request_builder.go b/sites/item_lists_item_columns_request_builder.go index 44a5a1cbd2d..1b66bba5582 100644 --- a/sites/item_lists_item_columns_request_builder.go +++ b/sites/item_lists_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListsItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListsItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ItemListsItemColumnsRequestBuilderGetQueryParameters the collection of field definitions for this list. type ItemListsItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListsItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ItemListsItemColumnsRequestBuilder) Count()(*ItemListsItemColumnsCountRequestBuilder) { return NewItemListsItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// Get the collection of field definitions for this list. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemListsItemColumnsRequestBuilder) Get(ctx context.Context, requestCon } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// Post create columnDefinition // returns a ColumnDefinitionable 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 *ItemListsItemColumnsRequestBuilder) Post(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [list][list]. +// ToGetRequestInformation the collection of field definitions for this list. // returns a *RequestInformation when successful func (m *ItemListsItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemListsItemColumnsRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition // returns a *RequestInformation when successful func (m *ItemListsItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListsItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_add_copy_request_builder.go b/sites/item_lists_item_content_types_add_copy_request_builder.go index 0974eba2ac7..184fe8e8c1e 100644 --- a/sites/item_lists_item_content_types_add_copy_request_builder.go +++ b/sites/item_lists_item_content_types_add_copy_request_builder.go @@ -31,7 +31,7 @@ func NewItemListsItemContentTypesAddCopyRequestBuilder(rawUrl string, requestAda urlParams["request-raw-url"] = rawUrl return NewItemListsItemContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) } -// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// Post invoke action addCopy // returns a ContentTypeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemListsItemContentTypesAddCopyRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToPostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list]. +// ToPostRequestInformation invoke action addCopy // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListsItemContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemListsItemContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go b/sites/item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go index 09920f03786..3dbbb698181 100644 --- a/sites/item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go +++ b/sites/item_lists_item_content_types_item_associate_with_hub_sites_request_builder.go @@ -30,7 +30,7 @@ func NewItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) } -// Post associate a [content type][contentType] with a list of hub sites. +// Post invoke action associateWithHubSites // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilder) Post( } return nil } -// ToPostRequestInformation associate a [content type][contentType] with a list of hub sites. +// ToPostRequestInformation invoke action associateWithHubSites // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemListsItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_column_links_column_link_item_request_builder.go b/sites/item_lists_item_content_types_item_column_links_column_link_item_request_builder.go index 201d2d7711b..d9ed97f37ea 100644 --- a/sites/item_lists_item_content_types_item_column_links_column_link_item_request_builder.go +++ b/sites/item_lists_item_content_types_item_column_links_column_link_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) D } return nil } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable, error) { @@ -121,7 +121,7 @@ func (m *ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_column_links_request_builder.go b/sites/item_lists_item_content_types_item_column_links_request_builder.go index d0c9b74f9f0..08c17656451 100644 --- a/sites/item_lists_item_content_types_item_column_links_request_builder.go +++ b/sites/item_lists_item_content_types_item_column_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListsItemContentTypesItemColumnLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListsItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type +// ItemListsItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. type ItemListsItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListsItemContentTypesItemColumnLinksRequestBuilder(rawUrl string, re func (m *ItemListsItemContentTypesItemColumnLinksRequestBuilder) Count()(*ItemListsItemContentTypesItemColumnLinksCountRequestBuilder) { return NewItemListsItemContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of columns that are required by this content type +// Get the collection of columns that are required by this content type. // returns a ColumnLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemListsItemContentTypesItemColumnLinksRequestBuilder) Post(ctx contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnLinkable), nil } -// ToGetRequestInformation the collection of columns that are required by this content type +// ToGetRequestInformation the collection of columns that are required by this content type. // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_columns_column_definition_item_request_builder.go b/sites/item_lists_item_content_types_item_columns_column_definition_item_request_builder.go index 87122f98408..63b58f0bc2e 100644 --- a/sites/item_lists_item_content_types_item_columns_column_definition_item_request_builder.go +++ b/sites/item_lists_item_content_types_item_columns_column_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. type ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,7 @@ func NewItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// Delete delete columnDefinition // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -73,7 +73,7 @@ func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) } return nil } -// Get retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// Get retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -96,7 +96,7 @@ func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// Patch update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// Patch update columnDefinition // returns a ColumnDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemListsItemContentTypesItemColumnsItemSourceColumnRequestBuilder) { return NewItemListsItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation remove a [column][columndefinition] from a [site][], [list][] or [content type][contentType]. +// ToDeleteRequestInformation delete columnDefinition // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the metadata for a [site][], [list][] or [contentType][] [column][columnDefinition]. +// ToGetRequestInformation retrieve the metadata for a [site][], [list][], or [contentType][] [column][columnDefinition]. // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a [site][], [list][] or [content type][contentType] [column][columnDefinition]. +// ToPatchRequestInformation update columnDefinition // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListsItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_columns_request_builder.go b/sites/item_lists_item_content_types_item_columns_request_builder.go index 53aecbaa623..b0ac4e945a2 100644 --- a/sites/item_lists_item_content_types_item_columns_request_builder.go +++ b/sites/item_lists_item_content_types_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListsItemContentTypesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListsItemContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ItemListsItemContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. type ItemListsItemContentTypesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemListsItemContentTypesItemColumnsRequestBuilder(rawUrl string, reques func (m *ItemListsItemContentTypesItemColumnsRequestBuilder) Count()(*ItemListsItemContentTypesItemColumnsCountRequestBuilder) { return NewItemListsItemContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// Get the collection of column definitions for this content type. // returns a ColumnDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ItemListsItemContentTypesItemColumnsRequestBuilder) Get(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionCollectionResponseable), nil } -// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// Post create columnDefinition for a content type // returns a ColumnDefinitionable 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 *ItemListsItemContentTypesItemColumnsRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable), nil } -// ToGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType]. +// ToGetRequestInformation the collection of column definitions for this content type. // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ItemListsItemContentTypesItemColumnsRequestBuilder) ToGetRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition]. +// ToPostRequestInformation create columnDefinition for a content type // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ColumnDefinitionable, requestConfiguration *ItemListsItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go b/sites/item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go index 78d8dd14de8..6daab458013 100644 --- a/sites/item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go +++ b/sites/item_lists_item_content_types_item_copy_to_default_content_location_request_builder.go @@ -30,7 +30,7 @@ func NewItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) } -// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// Post invoke action copyToDefaultContentLocation // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilder } return nil } -// ToPostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. +// ToPostRequestInformation invoke action copyToDefaultContentLocation // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemListsItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_publish_request_builder.go b/sites/item_lists_item_content_types_item_publish_request_builder.go index d14b7d0ad07..dd1d935cbb5 100644 --- a/sites/item_lists_item_content_types_item_publish_request_builder.go +++ b/sites/item_lists_item_content_types_item_publish_request_builder.go @@ -30,7 +30,7 @@ func NewItemListsItemContentTypesItemPublishRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewItemListsItemContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post publishes a [contentType][] present in a content type hub site. +// Post invoke action publish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListsItemContentTypesItemPublishRequestBuilder) Post(ctx context.Co } return nil } -// ToPostRequestInformation publishes a [contentType][] present in a content type hub site. +// ToPostRequestInformation invoke action publish // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_item_unpublish_request_builder.go b/sites/item_lists_item_content_types_item_unpublish_request_builder.go index 47cd267f4d8..35a7c65a630 100644 --- a/sites/item_lists_item_content_types_item_unpublish_request_builder.go +++ b/sites/item_lists_item_content_types_item_unpublish_request_builder.go @@ -30,7 +30,7 @@ func NewItemListsItemContentTypesItemUnpublishRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewItemListsItemContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) } -// Post unpublish a [contentType][] from a content type hub site. +// Post invoke action unpublish // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemListsItemContentTypesItemUnpublishRequestBuilder) Post(ctx context. } return nil } -// ToPostRequestInformation unpublish a [contentType][] from a content type hub site. +// ToPostRequestInformation invoke action unpublish // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_content_types_request_builder.go b/sites/item_lists_item_content_types_request_builder.go index 6b7f3ec5f28..be88b3c6501 100644 --- a/sites/item_lists_item_content_types_request_builder.go +++ b/sites/item_lists_item_content_types_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListsItemContentTypesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListsItemContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [list][]. +// ItemListsItemContentTypesRequestBuilderGetQueryParameters the collection of content types present in this list. type ItemListsItemContentTypesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemListsItemContentTypesRequestBuilder(rawUrl string, requestAdapter i2 func (m *ItemListsItemContentTypesRequestBuilder) Count()(*ItemListsItemContentTypesCountRequestBuilder) { return NewItemListsItemContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the collection of [contentType][contentType] resources in a [list][]. +// Get the collection of content types present in this list. // returns a ContentTypeCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -134,7 +134,7 @@ func (m *ItemListsItemContentTypesRequestBuilder) Post(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentTypeable), nil } -// ToGetRequestInformation get the collection of [contentType][contentType] resources in a [list][]. +// ToGetRequestInformation the collection of content types present in this list. // returns a *RequestInformation when successful func (m *ItemListsItemContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_items_item_activities_item_drive_item_content_request_builder.go b/sites/item_lists_item_items_item_activities_item_drive_item_content_request_builder.go index 2dc61a104dc..52faae2a5a2 100644 --- a/sites/item_lists_item_items_item_activities_item_drive_item_content_request_builder.go +++ b/sites/item_lists_item_items_item_activities_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from sites type ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder(rawUr urlParams["request-raw-url"] = rawUrl return NewItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from sites // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) Get } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in sites // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) Put } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from sites // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) ToG requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in sites // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_items_item_activities_item_drive_item_content_stream_request_builder.go b/sites/item_lists_item_items_item_activities_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..4ce35f547e6 --- /dev/null +++ b/sites/item_lists_item_items_item_activities_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package sites + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the site entity. +type ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + m := &ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder instantiates a new ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_lists_item_items_item_activities_item_drive_item_request_builder.go b/sites/item_lists_item_items_item_activities_item_drive_item_request_builder.go index 912638ca165..beec4da0b6e 100644 --- a/sites/item_lists_item_items_item_activities_item_drive_item_request_builder.go +++ b/sites/item_lists_item_items_item_activities_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemListsItemItemsItemActivitiesItemDriveItemRequestBuilder(rawUrl strin func (m *ItemListsItemItemsItemActivitiesItemDriveItemRequestBuilder) Content()(*ItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilder) { return NewItemListsItemItemsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the site entity. +// returns a *ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListsItemItemsItemActivitiesItemDriveItemRequestBuilder) ContentStream()(*ItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilder) { + return NewItemListsItemItemsItemActivitiesItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get driveItem from sites // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/sites/item_lists_item_items_item_create_link_request_builder.go b/sites/item_lists_item_items_item_create_link_request_builder.go index 1f52b5533df..a4507994d95 100644 --- a/sites/item_lists_item_items_item_create_link_request_builder.go +++ b/sites/item_lists_item_items_item_create_link_request_builder.go @@ -31,7 +31,7 @@ func NewItemListsItemItemsItemCreateLinkRequestBuilder(rawUrl string, requestAda urlParams["request-raw-url"] = rawUrl return NewItemListsItemItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) } -// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// Post create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a Permissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemListsItemItemsItemCreateLinkRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Permissionable), nil } -// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. +// ToPostRequestInformation create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemListsItemItemsItemCreateLinkPostRequestBodyable, requestConfiguration *ItemListsItemItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_items_item_drive_item_content_request_builder.go b/sites/item_lists_item_items_item_drive_item_content_request_builder.go index b842a9d2191..ecc39cfde2a 100644 --- a/sites/item_lists_item_items_item_drive_item_content_request_builder.go +++ b/sites/item_lists_item_items_item_drive_item_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemListsItemItemsItemDriveItemContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemListsItemItemsItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemListsItemItemsItemDriveItemContentRequestBuilderGetQueryParameters get content for the navigation property driveItem from sites type ItemListsItemItemsItemDriveItemContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemListsItemItemsItemDriveItemContentRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewItemListsItemItemsItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property driveItem from sites // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -65,7 +65,7 @@ func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) Get(ctx context.C } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property driveItem in sites // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -85,7 +85,7 @@ func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) Put(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property driveItem from sites // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,7 +99,7 @@ func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property driveItem in sites // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/content", m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_lists_item_items_item_drive_item_content_stream_request_builder.go b/sites/item_lists_item_items_item_drive_item_content_stream_request_builder.go new file mode 100644 index 00000000000..b7e44bc09ca --- /dev/null +++ b/sites/item_lists_item_items_item_drive_item_content_stream_request_builder.go @@ -0,0 +1,107 @@ +package sites + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemListsItemItemsItemDriveItemContentStreamRequestBuilder provides operations to manage the media for the site entity. +type ItemListsItemItemsItemDriveItemContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal instantiates a new ItemListsItemItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + m := &ItemListsItemItemsItemDriveItemContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/contentStream", pathParameters), + } + return m +} +// NewItemListsItemItemsItemDriveItemContentStreamRequestBuilder instantiates a new ItemListsItemItemsItemDriveItemContentStreamRequestBuilder and sets the default values. +func NewItemListsItemItemsItemDriveItemContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemDriveItemContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemListsItemItemsItemDriveItemContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemListsItemItemsItemDriveItemContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_lists_item_items_item_drive_item_request_builder.go b/sites/item_lists_item_items_item_drive_item_request_builder.go index 90daae34749..fd9c53b9abe 100644 --- a/sites/item_lists_item_items_item_drive_item_request_builder.go +++ b/sites/item_lists_item_items_item_drive_item_request_builder.go @@ -45,6 +45,11 @@ func NewItemListsItemItemsItemDriveItemRequestBuilder(rawUrl string, requestAdap func (m *ItemListsItemItemsItemDriveItemRequestBuilder) Content()(*ItemListsItemItemsItemDriveItemContentRequestBuilder) { return NewItemListsItemItemsItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the site entity. +// returns a *ItemListsItemItemsItemDriveItemContentStreamRequestBuilder when successful +func (m *ItemListsItemItemsItemDriveItemRequestBuilder) ContentStream()(*ItemListsItemItemsItemDriveItemContentStreamRequestBuilder) { + return NewItemListsItemItemsItemDriveItemContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get for document libraries, the driveItem relationship exposes the listItem as a [driveItem][] // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/sites/item_lists_list_item_request_builder.go b/sites/item_lists_list_item_request_builder.go index 7e19b6fb575..a8b9546608b 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 func (m *ItemListsListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Listable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -169,7 +169,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_sites_add_request_builder.go b/sites/item_sites_add_request_builder.go deleted file mode 100644 index 4e3596d7b81..00000000000 --- a/sites/item_sites_add_request_builder.go +++ /dev/null @@ -1,99 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ItemSitesAddRequestBuilder provides operations to call the add method. -type ItemSitesAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesAddRequestBuilderInternal instantiates a new ItemSitesAddRequestBuilder and sets the default values. -func NewItemSitesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesAddRequestBuilder) { - m := &ItemSitesAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/sites/add", pathParameters), - } - return m -} -// NewItemSitesAddRequestBuilder instantiates a new ItemSitesAddRequestBuilder and sets the default values. -func NewItemSitesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post follow a user's site or multiple sites. -// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. -// returns a ItemSitesAddResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 -func (m *ItemSitesAddRequestBuilder) Post(ctx context.Context, body ItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesAddResponseable, 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, CreateItemSitesAddResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesAddResponseable), nil -} -// PostAsAddPostResponse follow a user's site or multiple sites. -// returns a ItemSitesAddPostResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 -func (m *ItemSitesAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesAddPostResponseable, 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, CreateItemSitesAddPostResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesAddPostResponseable), nil -} -// ToPostRequestInformation follow a user's site or multiple sites. -// returns a *RequestInformation when successful -func (m *ItemSitesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesAddRequestBuilder when successful -func (m *ItemSitesAddRequestBuilder) WithUrl(rawUrl string)(*ItemSitesAddRequestBuilder) { - return NewItemSitesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_sites_add_response.go b/sites/item_sites_add_response.go deleted file mode 100644 index d1f3b96e3e7..00000000000 --- a/sites/item_sites_add_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package sites - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ItemSitesAddPostResponseable instead. -type ItemSitesAddResponse struct { - ItemSitesAddPostResponse -} -// NewItemSitesAddResponse instantiates a new ItemSitesAddResponse and sets the default values. -func NewItemSitesAddResponse()(*ItemSitesAddResponse) { - m := &ItemSitesAddResponse{ - ItemSitesAddPostResponse: *NewItemSitesAddPostResponse(), - } - return m -} -// CreateItemSitesAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemSitesAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesAddResponse(), nil -} -// Deprecated: This class is obsolete. Use ItemSitesAddPostResponseable instead. -type ItemSitesAddResponseable interface { - ItemSitesAddPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/sites/item_sites_remove_request_builder.go b/sites/item_sites_remove_request_builder.go deleted file mode 100644 index e455b0bf7ae..00000000000 --- a/sites/item_sites_remove_request_builder.go +++ /dev/null @@ -1,99 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ItemSitesRemoveRequestBuilder provides operations to call the remove method. -type ItemSitesRemoveRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesRemoveRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesRemoveRequestBuilderInternal instantiates a new ItemSitesRemoveRequestBuilder and sets the default values. -func NewItemSitesRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesRemoveRequestBuilder) { - m := &ItemSitesRemoveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/sites/remove", pathParameters), - } - return m -} -// NewItemSitesRemoveRequestBuilder instantiates a new ItemSitesRemoveRequestBuilder and sets the default values. -func NewItemSitesRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesRemoveRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesRemoveRequestBuilderInternal(urlParams, requestAdapter) -} -// Post unfollow a user's site or multiple sites. -// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. -// returns a ItemSitesRemoveResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 -func (m *ItemSitesRemoveRequestBuilder) Post(ctx context.Context, body ItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesRemoveResponseable, 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, CreateItemSitesRemoveResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesRemoveResponseable), nil -} -// PostAsRemovePostResponse unfollow a user's site or multiple sites. -// returns a ItemSitesRemovePostResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 -func (m *ItemSitesRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesRemovePostResponseable, 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, CreateItemSitesRemovePostResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ItemSitesRemovePostResponseable), nil -} -// ToPostRequestInformation unfollow a user's site or multiple sites. -// returns a *RequestInformation when successful -func (m *ItemSitesRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesRemoveRequestBuilder when successful -func (m *ItemSitesRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemSitesRemoveRequestBuilder) { - return NewItemSitesRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_sites_remove_response.go b/sites/item_sites_remove_response.go deleted file mode 100644 index c183b6524c5..00000000000 --- a/sites/item_sites_remove_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package sites - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ItemSitesRemovePostResponseable instead. -type ItemSitesRemoveResponse struct { - ItemSitesRemovePostResponse -} -// NewItemSitesRemoveResponse instantiates a new ItemSitesRemoveResponse and sets the default values. -func NewItemSitesRemoveResponse()(*ItemSitesRemoveResponse) { - m := &ItemSitesRemoveResponse{ - ItemSitesRemovePostResponse: *NewItemSitesRemovePostResponse(), - } - return m -} -// CreateItemSitesRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateItemSitesRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesRemoveResponse(), nil -} -// Deprecated: This class is obsolete. Use ItemSitesRemovePostResponseable instead. -type ItemSitesRemoveResponseable interface { - ItemSitesRemovePostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/sites/item_sites_request_builder.go b/sites/item_sites_request_builder.go index bcd4e30443f..373359d9467 100644 --- a/sites/item_sites_request_builder.go +++ b/sites/item_sites_request_builder.go @@ -39,11 +39,6 @@ type ItemSitesRequestBuilderGetRequestConfiguration struct { // Request query parameters QueryParameters *ItemSitesRequestBuilderGetQueryParameters } -// Add provides operations to call the add method. -// returns a *ItemSitesAddRequestBuilder when successful -func (m *ItemSitesRequestBuilder) Add()(*ItemSitesAddRequestBuilder) { - return NewItemSitesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // BySiteId1 provides operations to manage the sites property of the microsoft.graph.site entity. // returns a *ItemSitesSiteItemRequestBuilder when successful func (m *ItemSitesRequestBuilder) BySiteId1(siteId1 string)(*ItemSitesSiteItemRequestBuilder) { @@ -97,11 +92,6 @@ func (m *ItemSitesRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable), nil } -// Remove provides operations to call the remove method. -// returns a *ItemSitesRemoveRequestBuilder when successful -func (m *ItemSitesRequestBuilder) Remove()(*ItemSitesRemoveRequestBuilder) { - return NewItemSitesRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // ToGetRequestInformation get a collection of subsites defined for a [site][]. // returns a *RequestInformation when successful func (m *ItemSitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 063e346be55..7e8dc15fa10 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// SitesRequestBuilderGetQueryParameters list all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. +// SitesRequestBuilderGetQueryParameters search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. type SitesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -79,12 +79,12 @@ func (m *SitesRequestBuilder) Count()(*CountRequestBuilder) { func (m *SitesRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. +// Get search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. // returns a SiteCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 func (m *SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *SitesRequestBuilder) GetAllSites()(*GetAllSitesRequestBuilder) { func (m *SitesRequestBuilder) Remove()(*RemoveRequestBuilder) { return NewRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation list all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. +// ToGetRequestInformation search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. // returns a *RequestInformation when successful func (m *SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_events_item_sessions_item_registrations_with_email_request_builder.go b/solutions/virtual_events_events_item_sessions_item_registrations_with_email_request_builder.go new file mode 100644 index 00000000000..fca241f8fd1 --- /dev/null +++ b/solutions/virtual_events_events_item_sessions_item_registrations_with_email_request_builder.go @@ -0,0 +1,84 @@ +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" +) + +// VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal instantiates a new VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, email *string)(*VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + m := &VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters), + } + if email != nil { + m.BaseRequestBuilder.PathParameters["email"] = *email + } + return m +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder instantiates a new VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_sessions_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_events_item_sessions_item_registrations_with_user_id_request_builder.go new file mode 100644 index 00000000000..c6168e51b0d --- /dev/null +++ b/solutions/virtual_events_events_item_sessions_item_registrations_with_user_id_request_builder.go @@ -0,0 +1,84 @@ +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" +) + +// VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal instantiates a new VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userId *string)(*VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + m := &VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters), + } + if userId != nil { + m.BaseRequestBuilder.PathParameters["userId"] = *userId + } + return m +} +// NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder instantiates a new VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go index 445f4a9585c..f945ff43979 100644 --- a/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go @@ -125,6 +125,16 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) P func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Registrations()(*VirtualEventsEventsItemSessionsItemRegistrationsRequestBuilder) { return NewVirtualEventsEventsItemSessionsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RegistrationsWithEmail provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +// returns a *VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) RegistrationsWithEmail(email *string)(*VirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsEventsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, email) +} +// RegistrationsWithUserId provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +// returns a *VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) RegistrationsWithUserId(userId *string)(*VirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsEventsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, userId) +} // ToDeleteRequestInformation delete navigation property sessions for solutions // returns a *RequestInformation when successful func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/virtual_events_townhalls_item_sessions_item_registrations_with_email_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_item_registrations_with_email_request_builder.go new file mode 100644 index 00000000000..957a95816ac --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_item_registrations_with_email_request_builder.go @@ -0,0 +1,84 @@ +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" +) + +// VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, email *string)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters), + } + if email != nil { + m.BaseRequestBuilder.PathParameters["email"] = *email + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_item_registrations_with_user_id_request_builder.go new file mode 100644 index 00000000000..1c5c576e709 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_item_registrations_with_user_id_request_builder.go @@ -0,0 +1,84 @@ +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" +) + +// VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userId *string)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters), + } + if userId != nil { + m.BaseRequestBuilder.PathParameters["userId"] = *userId + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go index ac4c9ddfa46..80061c27f69 100644 --- a/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go @@ -125,6 +125,16 @@ func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) Registrations()(*VirtualEventsTownhallsItemSessionsItemRegistrationsRequestBuilder) { return NewVirtualEventsTownhallsItemSessionsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RegistrationsWithEmail provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +// returns a *VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) RegistrationsWithEmail(email *string)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, email) +} +// RegistrationsWithUserId provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +// returns a *VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) RegistrationsWithUserId(userId *string)(*VirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, userId) +} // ToDeleteRequestInformation delete navigation property sessions for solutions // returns a *RequestInformation when successful func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/virtual_events_webinars_item_registrations_with_email_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_email_request_builder.go new file mode 100644 index 00000000000..8f695ae0747 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_with_email_request_builder.go @@ -0,0 +1,163 @@ +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" +) + +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get the properties and relationships of a virtualEventRegistration object. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, email *string)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters), + } + if email != nil { + m.BaseRequestBuilder.PathParameters["email"] = *email + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get the properties and relationships of a virtualEventRegistration object. +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventregistration-get?view=graph-rest-1.0 +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}')", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get the properties and relationships of a virtualEventRegistration object. +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}')", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_user_id_request_builder.go new file mode 100644 index 00000000000..bef92552a70 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_with_user_id_request_builder.go @@ -0,0 +1,163 @@ +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" +) + +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get the properties and relationships of a virtualEventRegistration object. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userId *string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters), + } + if userId != nil { + m.BaseRequestBuilder.PathParameters["userId"] = *userId + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get the properties and relationships of a virtualEventRegistration object. +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventregistration-get?view=graph-rest-1.0 +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, 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.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}')", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get the properties and relationships of a virtualEventRegistration object. +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}')", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_sessions_item_registrations_with_email_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_registrations_with_email_request_builder.go new file mode 100644 index 00000000000..46d863f8c59 --- /dev/null +++ b/solutions/virtual_events_webinars_item_sessions_item_registrations_with_email_request_builder.go @@ -0,0 +1,84 @@ +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" +) + +// VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, email *string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + m := &VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters), + } + if email != nil { + m.BaseRequestBuilder.PathParameters["email"] = *email + } + return m +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder instantiates a new VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_sessions_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_registrations_with_user_id_request_builder.go new file mode 100644 index 00000000000..982863bf7c6 --- /dev/null +++ b/solutions/virtual_events_webinars_item_sessions_item_registrations_with_user_id_request_builder.go @@ -0,0 +1,84 @@ +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" +) + +// VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +type VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userId *string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + m := &VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters), + } + if userId != nil { + m.BaseRequestBuilder.PathParameters["userId"] = *userId + } + return m +} +// NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder instantiates a new VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go index 0f47c91569a..1389549ad4e 100644 --- a/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go @@ -125,6 +125,16 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Registrations()(*VirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RegistrationsWithEmail provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +// returns a *VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) RegistrationsWithEmail(email *string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithEmailRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, email) +} +// RegistrationsWithUserId provides operations to manage the registrations property of the microsoft.graph.virtualEventSession entity. +// returns a *VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) RegistrationsWithUserId(userId *string)(*VirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsWebinarsItemSessionsItemRegistrationsWithUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, userId) +} // ToDeleteRequestInformation delete navigation property sessions for solutions // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go b/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go index 29d8d54727f..ce897dfbd57 100644 --- a/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go +++ b/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go @@ -128,6 +128,16 @@ func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Registratio func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Registrations()(*VirtualEventsWebinarsItemRegistrationsRequestBuilder) { return NewVirtualEventsWebinarsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RegistrationsWithEmail provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +// returns a *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) RegistrationsWithEmail(email *string)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, email) +} +// RegistrationsWithUserId provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +// returns a *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) RegistrationsWithUserId(userId *string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, userId) +} // Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. // returns a *VirtualEventsWebinarsItemSessionsRequestBuilder when successful func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Sessions()(*VirtualEventsWebinarsItemSessionsRequestBuilder) { diff --git a/teams/item_archive_request_builder.go b/teams/item_archive_request_builder.go index ed147c8b5a8..580841631e8 100644 --- a/teams/item_archive_request_builder.go +++ b/teams/item_archive_request_builder.go @@ -30,7 +30,7 @@ func NewItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 urlParams["request-raw-url"] = rawUrl return NewItemArchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// Post archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemArchiveRequestBuilder) Post(ctx context.Context, body ItemArchivePo } return nil } -// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a *RequestInformation when successful func (m *ItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemArchivePostRequestBodyable, requestConfiguration *ItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_files_folder_content_request_builder.go b/teams/item_channels_item_files_folder_content_request_builder.go index 0722b118c60..6678b08d996 100644 --- a/teams/item_channels_item_files_folder_content_request_builder.go +++ b/teams/item_channels_item_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemChannelsItemFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemChannelsItemFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemChannelsItemFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teams type ItemChannelsItemFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemChannelsItemFilesFolderContentRequestBuilder(rawUrl string, requestA urlParams["request-raw-url"] = rawUrl return NewItemChannelsItemFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teams // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemChannelsItemFilesFolderContentRequestBuilder) Get(ctx context.Conte } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teams // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teams // returns a *RequestInformation when successful func (m *ItemChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInformati requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teams // returns a *RequestInformation when successful func (m *ItemChannelsItemFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_files_folder_content_stream_request_builder.go b/teams/item_channels_item_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..424ae59462b --- /dev/null +++ b/teams/item_channels_item_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemFilesFolderContentStreamRequestBuilder provides operations to manage the media for the team entity. +type ItemChannelsItemFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemFilesFolderContentStreamRequestBuilderInternal instantiates a new ItemChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemChannelsItemFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemFilesFolderContentStreamRequestBuilder) { + m := &ItemChannelsItemFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/filesFolder/contentStream", pathParameters), + } + return m +} +// NewItemChannelsItemFilesFolderContentStreamRequestBuilder instantiates a new ItemChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *ItemChannelsItemFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemChannelsItemFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemChannelsItemFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *ItemChannelsItemFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewItemChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_files_folder_request_builder.go b/teams/item_channels_item_files_folder_request_builder.go index 1397fd06467..9626d426966 100644 --- a/teams/item_channels_item_files_folder_request_builder.go +++ b/teams/item_channels_item_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewItemChannelsItemFilesFolderRequestBuilder(rawUrl string, requestAdapter func (m *ItemChannelsItemFilesFolderRequestBuilder) Content()(*ItemChannelsItemFilesFolderContentRequestBuilder) { return NewItemChannelsItemFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the team entity. +// returns a *ItemChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *ItemChannelsItemFilesFolderRequestBuilder) ContentStream()(*ItemChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewItemChannelsItemFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teams/item_channels_item_members_conversation_member_item_request_builder.go b/teams/item_channels_item_members_conversation_member_item_request_builder.go index f8d86cd305b..e3c38b96b32 100644 --- a/teams/item_channels_item_members_conversation_member_item_request_builder.go +++ b/teams/item_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToGetReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go b/teams/item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go index 338322cf516..562854f4d5d 100644 --- a/teams/item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teams/item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teams -type ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPut // NewItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilde func (m *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilde // ToPutRequestInformation update media content for the navigation property hostedContents in teams // returns a *RequestInformation when successful func (m *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teams/item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teams/item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index 4d2b061c8cb..53bfdc0b0f0 100644 --- a/teams/item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teams/item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teams -type ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentReques // NewItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRe func (m *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRe // ToPutRequestInformation update media content for the navigation property hostedContents in teams // returns a *RequestInformation when successful func (m *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teams/item_channels_item_messages_request_builder.go b/teams/item_channels_item_messages_request_builder.go index 912a575c7ca..3f12d134670 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 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, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_provision_email_request_builder.go b/teams/item_channels_item_provision_email_request_builder.go index 9bb17338c97..205db0523c4 100644 --- a/teams/item_channels_item_provision_email_request_builder.go +++ b/teams/item_channels_item_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewItemChannelsItemProvisionEmailRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemChannelsItemProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemChannelsItemProvisionEmailRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *ItemChannelsItemProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_request_builder.go b/teams/item_channels_request_builder.go index 8a853bfbfa0..9b2ed3b14b9 100644 --- a/teams/item_channels_request_builder.go +++ b/teams/item_channels_request_builder.go @@ -114,7 +114,7 @@ func (m *ItemChannelsRequestBuilder) GetAllMessages()(*ItemChannelsGetAllMessage func (m *ItemChannelsRequestBuilder) GetAllRetainedMessages()(*ItemChannelsGetAllRetainedMessagesRequestBuilder) { return NewItemChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -151,7 +151,7 @@ func (m *ItemChannelsRequestBuilder) ToGetRequestInformation(ctx context.Context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a *RequestInformation when successful func (m *ItemChannelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable, requestConfiguration *ItemChannelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teams/{team%2Did}/channels", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_photo_value_content_request_builder.go b/teams/item_photo_value_content_request_builder.go index fa04365a289..a70bd104503 100644 --- a/teams/item_photo_value_content_request_builder.go +++ b/teams/item_photo_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from teams -type ItemPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemPhotoValueContentRequestBuilderGetQueryParameters } // ItemPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemPhotoValueContentRequestBuilderPutRequestConfiguration struct { // NewItemPhotoValueContentRequestBuilderInternal instantiates a new ItemPhotoValueContentRequestBuilder and sets the default values. func NewItemPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPhotoValueContentRequestBuilder) { m := &ItemPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *ItemPhotoValueContentRequestBuilder) Put(ctx context.Context, body []by func (m *ItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *ItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx contex // ToPutRequestInformation update media content for the navigation property photo in teams // returns a *RequestInformation when successful func (m *ItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teams/item_primary_channel_files_folder_content_request_builder.go b/teams/item_primary_channel_files_folder_content_request_builder.go index 2723153b2da..1b8b5a5508a 100644 --- a/teams/item_primary_channel_files_folder_content_request_builder.go +++ b/teams/item_primary_channel_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemPrimaryChannelFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teams type ItemPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemPrimaryChannelFilesFolderContentRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewItemPrimaryChannelFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teams // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemPrimaryChannelFilesFolderContentRequestBuilder) Get(ctx context.Con } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teams // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPrimaryChannelFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemPrimaryChannelFilesFolderContentRequestBuilder) Put(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teams // returns a *RequestInformation when successful func (m *ItemPrimaryChannelFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemPrimaryChannelFilesFolderContentRequestBuilder) ToGetRequestInforma requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teams // returns a *RequestInformation when successful func (m *ItemPrimaryChannelFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/primaryChannel/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_primary_channel_files_folder_content_stream_request_builder.go b/teams/item_primary_channel_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..c834e290ec7 --- /dev/null +++ b/teams/item_primary_channel_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelFilesFolderContentStreamRequestBuilder provides operations to manage the media for the team entity. +type ItemPrimaryChannelFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelFilesFolderContentStreamRequestBuilderInternal instantiates a new ItemPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) { + m := &ItemPrimaryChannelFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/filesFolder/contentStream", pathParameters), + } + return m +} +// NewItemPrimaryChannelFilesFolderContentStreamRequestBuilder instantiates a new ItemPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewItemPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_files_folder_request_builder.go b/teams/item_primary_channel_files_folder_request_builder.go index 60eaee0ca8e..6b24eb0bad4 100644 --- a/teams/item_primary_channel_files_folder_request_builder.go +++ b/teams/item_primary_channel_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewItemPrimaryChannelFilesFolderRequestBuilder(rawUrl string, requestAdapte func (m *ItemPrimaryChannelFilesFolderRequestBuilder) Content()(*ItemPrimaryChannelFilesFolderContentRequestBuilder) { return NewItemPrimaryChannelFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the team entity. +// returns a *ItemPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *ItemPrimaryChannelFilesFolderRequestBuilder) ContentStream()(*ItemPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewItemPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teams/item_primary_channel_members_conversation_member_item_request_builder.go b/teams/item_primary_channel_members_conversation_member_item_request_builder.go index 5f57717c5cf..15d3ee464d4 100644 --- a/teams/item_primary_channel_members_conversation_member_item_request_builder.go +++ b/teams/item_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go b/teams/item_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go index 55da6458e6d..de2a9ade51a 100644 --- a/teams/item_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teams/item_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teams -type ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderP // NewItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuil func (m *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuil // ToPutRequestInformation update media content for the navigation property hostedContents in teams // returns a *RequestInformation when successful func (m *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teams/item_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teams/item_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index 45cfaf64ef5..63d8d113096 100644 --- a/teams/item_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teams/item_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teams -type ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequ // NewItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContent func (m *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContent // ToPutRequestInformation update media content for the navigation property hostedContents in teams // returns a *RequestInformation when successful func (m *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teams/item_primary_channel_messages_request_builder.go b/teams/item_primary_channel_messages_request_builder.go index 97a8cce0060..1f4e6685c94 100644 --- a/teams/item_primary_channel_messages_request_builder.go +++ b/teams/item_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemPrimaryChannelMessagesRequestBuilder) Get(ctx context.Context, requ } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *ItemPrimaryChannelMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemPrimaryChannelMessagesRequestBuilder) ToGetRequestInformation(ctx c 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 *ItemPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_primary_channel_provision_email_request_builder.go b/teams/item_primary_channel_provision_email_request_builder.go index e9992198af3..6164e4057e8 100644 --- a/teams/item_primary_channel_provision_email_request_builder.go +++ b/teams/item_primary_channel_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewItemPrimaryChannelProvisionEmailRequestBuilder(rawUrl string, requestAda urlParams["request-raw-url"] = rawUrl return NewItemPrimaryChannelProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemPrimaryChannelProvisionEmailRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *ItemPrimaryChannelProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_schedule_shifts_request_builder.go b/teams/item_schedule_shifts_request_builder.go index f02f9114ab2..61ec476a2ca 100644 --- a/teams/item_schedule_shifts_request_builder.go +++ b/teams/item_schedule_shifts_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemScheduleShiftsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemScheduleShiftsRequestBuilderGetQueryParameters get the list of shift instances in a schedule. +// ItemScheduleShiftsRequestBuilderGetQueryParameters the shifts in the schedule. type ItemScheduleShiftsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemScheduleShiftsRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ItemScheduleShiftsRequestBuilder) Count()(*ItemScheduleShiftsCountRequestBuilder) { return NewItemScheduleShiftsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of shift instances in a schedule. +// Get the shifts in the schedule. // returns a ShiftCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *ItemScheduleShiftsRequestBuilder) Post(ctx context.Context, body ie233e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Shiftable), nil } -// ToGetRequestInformation get the list of shift instances in a schedule. +// ToGetRequestInformation the shifts in the schedule. // returns a *RequestInformation when successful func (m *ItemScheduleShiftsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleShiftsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_schedule_time_off_reasons_request_builder.go b/teams/item_schedule_time_off_reasons_request_builder.go index afad3ed7a1b..94cfa131e33 100644 --- a/teams/item_schedule_time_off_reasons_request_builder.go +++ b/teams/item_schedule_time_off_reasons_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemScheduleTimeOffReasonsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemScheduleTimeOffReasonsRequestBuilderGetQueryParameters get the list of timeOffReasons in a schedule. +// ItemScheduleTimeOffReasonsRequestBuilderGetQueryParameters the set of reasons for a time off in the schedule. type ItemScheduleTimeOffReasonsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemScheduleTimeOffReasonsRequestBuilder(rawUrl string, requestAdapter i func (m *ItemScheduleTimeOffReasonsRequestBuilder) Count()(*ItemScheduleTimeOffReasonsCountRequestBuilder) { return NewItemScheduleTimeOffReasonsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of timeOffReasons in a schedule. +// Get the set of reasons for a time off in the schedule. // returns a TimeOffReasonCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *ItemScheduleTimeOffReasonsRequestBuilder) Post(ctx context.Context, bod } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TimeOffReasonable), nil } -// ToGetRequestInformation get the list of timeOffReasons in a schedule. +// ToGetRequestInformation the set of reasons for a time off in the schedule. // returns a *RequestInformation when successful func (m *ItemScheduleTimeOffReasonsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleTimeOffReasonsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_unarchive_request_builder.go b/teams/item_unarchive_request_builder.go index dde2e8354cf..b0a6c1c166d 100644 --- a/teams/item_unarchive_request_builder.go +++ b/teams/item_unarchive_request_builder.go @@ -30,7 +30,7 @@ func NewItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee urlParams["request-raw-url"] = rawUrl return NewItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfigura } return nil } -// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a *RequestInformation when successful func (m *ItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_archive_request_builder.go b/teamtemplatedefinition/item_team_definition_archive_request_builder.go index 583417f4c8b..a63dbb57221 100644 --- a/teamtemplatedefinition/item_team_definition_archive_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_archive_request_builder.go @@ -30,7 +30,7 @@ func NewItemTeamDefinitionArchiveRequestBuilder(rawUrl string, requestAdapter i2 urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionArchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// Post archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemTeamDefinitionArchiveRequestBuilder) Post(ctx context.Context, body } return nil } -// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_request_builder.go index 380a1cdb3e5..5851c1d2581 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teamTemplateDefinition type ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teamTemplateDefinition // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) Get(ctx } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teamTemplateDefinition // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) Put(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) ToGetRe requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_stream_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..cbb92a1b456 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder provides operations to manage the media for the teamTemplateDefinition entity. +type ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/filesFolder/contentStream", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_files_folder_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_files_folder_request_builder.go index dd243057105..7b078717492 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_files_folder_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewItemTeamDefinitionChannelsItemFilesFolderRequestBuilder(rawUrl string, r func (m *ItemTeamDefinitionChannelsItemFilesFolderRequestBuilder) Content()(*ItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) { return NewItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the teamTemplateDefinition entity. +// returns a *ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemFilesFolderRequestBuilder) ContentStream()(*ItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go index b8754bc355d..8cf71cc4f0d 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go index b7d4acd512d..970af5e694e 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamTemplateDefinition -type ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentReq // NewItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueConten func (m *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueConten // ToPutRequestInformation update media content for the navigation property hostedContents in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index 96d823b619e..13fc422bea5 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamTemplateDefinition -type ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValu // NewItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItem func (m *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItem // ToPutRequestInformation update media content for the navigation property hostedContents in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go index 590888e0672..24013e6ae98 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) Get(ctx context.C } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToGetRequestInfor 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 *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_provision_email_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_provision_email_request_builder.go index 4ae4152c78e..80ff2608fe7 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_provision_email_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewItemTeamDefinitionChannelsItemProvisionEmailRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionChannelsItemProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemTeamDefinitionChannelsItemProvisionEmailRequestBuilder) Post(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_request_builder.go index d493328280e..1bf9718344d 100644 --- a/teamtemplatedefinition/item_team_definition_channels_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_request_builder.go @@ -114,7 +114,7 @@ func (m *ItemTeamDefinitionChannelsRequestBuilder) GetAllMessages()(*ItemTeamDef func (m *ItemTeamDefinitionChannelsRequestBuilder) GetAllRetainedMessages()(*ItemTeamDefinitionChannelsGetAllRetainedMessagesRequestBuilder) { return NewItemTeamDefinitionChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -151,7 +151,7 @@ func (m *ItemTeamDefinitionChannelsRequestBuilder) ToGetRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable, requestConfiguration *ItemTeamDefinitionChannelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_photo_value_content_request_builder.go b/teamtemplatedefinition/item_team_definition_photo_value_content_request_builder.go index e41be3b1a89..19cae098264 100644 --- a/teamtemplatedefinition/item_team_definition_photo_value_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_photo_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamDefinitionPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from teamTemplateDefinition -type ItemTeamDefinitionPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamDefinitionPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamDefinitionPhotoValueContentRequestBuilderGetQueryParameters } // ItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration st // NewItemTeamDefinitionPhotoValueContentRequestBuilderInternal instantiates a new ItemTeamDefinitionPhotoValueContentRequestBuilder and sets the default values. func NewItemTeamDefinitionPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPhotoValueContentRequestBuilder) { m := &ItemTeamDefinitionPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *ItemTeamDefinitionPhotoValueContentRequestBuilder) Put(ctx context.Cont func (m *ItemTeamDefinitionPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *ItemTeamDefinitionPhotoValueContentRequestBuilder) ToGetRequestInformat // ToPutRequestInformation update media content for the navigation property photo in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_request_builder.go index 5878c19ba89..4d435a7e237 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teamTemplateDefinition type ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teamTemplateDefinition // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) Get(c } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teamTemplateDefinition // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) Put(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) ToGet requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_stream_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..c2bacfa676b --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder provides operations to manage the media for the teamTemplateDefinition entity. +type ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/filesFolder/contentStream", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_request_builder.go index e39eeca1e5e..f60c59c2bb2 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewItemTeamDefinitionPrimaryChannelFilesFolderRequestBuilder(rawUrl string, func (m *ItemTeamDefinitionPrimaryChannelFilesFolderRequestBuilder) Content()(*ItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) { return NewItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the teamTemplateDefinition entity. +// returns a *ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelFilesFolderRequestBuilder) ContentStream()(*ItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index bb73a386135..12529dd35f3 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go index ca6b9bb48d8..02fd80b7753 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamTemplateDefinition -type ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentR // NewItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueCont func (m *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueCont // ToPutRequestInformation update media content for the navigation property hostedContents in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index a298c1ce64e..a9a70a93904 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamTemplateDefinition -type ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemVa // NewItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsIt func (m *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsIt // ToPutRequestInformation update media content for the navigation property hostedContents in teamTemplateDefinition // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go index b10d84392ae..2e0e9485ff8 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) Get(ctx context } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToGetRequestInf 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 *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_provision_email_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_provision_email_request_builder.go index 87526c6d17b..151e4bcae65 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_provision_email_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_schedule_shifts_request_builder.go b/teamtemplatedefinition/item_team_definition_schedule_shifts_request_builder.go index d3c8801d979..e84216ec025 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_shifts_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_schedule_shifts_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamDefinitionScheduleShiftsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionScheduleShiftsRequestBuilderGetQueryParameters get the list of shift instances in a schedule. +// ItemTeamDefinitionScheduleShiftsRequestBuilderGetQueryParameters the shifts in the schedule. type ItemTeamDefinitionScheduleShiftsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemTeamDefinitionScheduleShiftsRequestBuilder(rawUrl string, requestAda func (m *ItemTeamDefinitionScheduleShiftsRequestBuilder) Count()(*ItemTeamDefinitionScheduleShiftsCountRequestBuilder) { return NewItemTeamDefinitionScheduleShiftsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of shift instances in a schedule. +// Get the shifts in the schedule. // returns a ShiftCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *ItemTeamDefinitionScheduleShiftsRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Shiftable), nil } -// ToGetRequestInformation get the list of shift instances in a schedule. +// ToGetRequestInformation the shifts in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionScheduleShiftsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionScheduleShiftsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_schedule_time_off_reasons_request_builder.go b/teamtemplatedefinition/item_team_definition_schedule_time_off_reasons_request_builder.go index fed0965433f..61553ec6bff 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_time_off_reasons_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_schedule_time_off_reasons_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetQueryParameters get the list of timeOffReasons in a schedule. +// ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetQueryParameters the set of reasons for a time off in the schedule. type ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder(rawUrl string, re func (m *ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder) Count()(*ItemTeamDefinitionScheduleTimeOffReasonsCountRequestBuilder) { return NewItemTeamDefinitionScheduleTimeOffReasonsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of timeOffReasons in a schedule. +// Get the set of reasons for a time off in the schedule. // returns a TimeOffReasonCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder) Post(ctx contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TimeOffReasonable), nil } -// ToGetRequestInformation get the list of timeOffReasons in a schedule. +// ToGetRequestInformation the set of reasons for a time off in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_unarchive_request_builder.go b/teamtemplatedefinition/item_team_definition_unarchive_request_builder.go index a44bb4d1f5e..230cf77a065 100644 --- a/teamtemplatedefinition/item_team_definition_unarchive_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_unarchive_request_builder.go @@ -30,7 +30,7 @@ func NewItemTeamDefinitionUnarchiveRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemTeamDefinitionUnarchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemTeamDefinitionUnarchiveRequestBuilder) Post(ctx context.Context, re } return nil } -// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_teams_item_channels_item_files_folder_content_request_builder.go b/teamwork/deleted_teams_item_channels_item_files_folder_content_request_builder.go index 1d5e7342c64..4f520dcd8ed 100644 --- a/teamwork/deleted_teams_item_channels_item_files_folder_content_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teamwork type DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewDeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewDeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teamwork // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) Get(ctx c } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teamwork // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) Put(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teamwork // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) ToGetRequ requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teamwork // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_teams_item_channels_item_files_folder_content_stream_request_builder.go b/teamwork/deleted_teams_item_channels_item_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..f0c3ab5eb32 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder provides operations to manage the media for the teamwork entity. +type DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) { + m := &DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/filesFolder/contentStream", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder instantiates a new DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_files_folder_request_builder.go b/teamwork/deleted_teams_item_channels_item_files_folder_request_builder.go index 2e29115d3bf..5e6149d495a 100644 --- a/teamwork/deleted_teams_item_channels_item_files_folder_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewDeletedTeamsItemChannelsItemFilesFolderRequestBuilder(rawUrl string, req func (m *DeletedTeamsItemChannelsItemFilesFolderRequestBuilder) Content()(*DeletedTeamsItemChannelsItemFilesFolderContentRequestBuilder) { return NewDeletedTeamsItemChannelsItemFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the teamwork entity. +// returns a *DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemFilesFolderRequestBuilder) ContentStream()(*DeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewDeletedTeamsItemChannelsItemFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go index d7c85bf663f..04770bbbf9e 100644 --- a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_teams_item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go b/teamwork/deleted_teams_item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go index 48d6e286e70..3d7fb00761d 100644 --- a/teamwork/deleted_teams_item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamwork -type DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentReque // NewDeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewDeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentR func (m *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentR // ToPutRequestInformation update media content for the navigation property hostedContents in teamwork // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *DeletedTeamsItemChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/deleted_teams_item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teamwork/deleted_teams_item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index 7b38dcfe890..d005500ffd8 100644 --- a/teamwork/deleted_teams_item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamwork -type DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueC // NewDeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewDeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemVa func (m *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemVa // ToPutRequestInformation update media content for the navigation property hostedContents in teamwork // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *DeletedTeamsItemChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/deleted_teams_item_channels_item_messages_request_builder.go b/teamwork/deleted_teams_item_channels_item_messages_request_builder.go index bb937301891..8ce6c61ebbd 100644 --- a/teamwork/deleted_teams_item_channels_item_messages_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) Get(ctx context.Con } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *DeletedTeamsItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) ToGetRequestInforma 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 *DeletedTeamsItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *DeletedTeamsItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_teams_item_channels_item_provision_email_request_builder.go b/teamwork/deleted_teams_item_channels_item_provision_email_request_builder.go index fed7e57c25a..8567e273403 100644 --- a/teamwork/deleted_teams_item_channels_item_provision_email_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewDeletedTeamsItemChannelsItemProvisionEmailRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewDeletedTeamsItemChannelsItemProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *DeletedTeamsItemChannelsItemProvisionEmailRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_archive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_archive_request_builder.go index 8810974a3d3..452fa66648d 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_archive_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_archive_request_builder.go @@ -30,7 +30,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionArchiveRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionArchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// Post archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionArchiveRequestBuilder) Po } return nil } -// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. +// ToPostRequestInformation archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which can occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_request_builder.go index 11f9916b66b..c50acb11210 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teamwork type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderCon urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teamwork // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderCo } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teamwork // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderCo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderCo requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_stream_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..50b929fa3a3 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder provides operations to manage the media for the teamwork entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/filesFolder/contentStream", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_request_builder.go index f6c62ce639d..4d7a362e3b1 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderReq func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderRequestBuilder) Content()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the teamwork entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderRequestBuilder) ContentStream()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go index 9cd650ec420..d4dcbe491ad 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go index 2a83c511c7a..f7e67f6ea0b 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamwork -type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHoste // NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemH func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemH // ToPutRequestInformation update media content for the navigation property hostedContents in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index b5774636bee..620b67e08cf 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamwork -type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepli // NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemR func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemR // ToPutRequestInformation update media content for the navigation property hostedContents in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go index a3898b1d7d9..911490d392c 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesReque } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesReque 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 *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_provision_email_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_provision_email_request_builder.go index 67684186fa5..38968ab4491 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_provision_email_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemProvisionEmail urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemProvisionEmai } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_request_builder.go index f87237c2626..60b1f3491b5 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_request_builder.go @@ -114,7 +114,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsRequestBuilder) G func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsRequestBuilder) GetAllRetainedMessages()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsGetAllRetainedMessagesRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -151,7 +151,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. +// ToPostRequestInformation create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This display name appears to the user in Microsoft Teams. You can add a maximum of 200 members when you create a private channel. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_photo_value_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_photo_value_content_request_builder.go index 9425d73e883..ec114b99a15 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_photo_value_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_photo_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from teamwork -type TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderGetQueryParameters } // TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuild // NewTeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilder and sets the default values. func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilder) { m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestB func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestB // ToPutRequestInformation update media content for the navigation property photo in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_request_builder.go index c90223c3e8a..def38fa1d59 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters get content for the navigation property filesFolder from teamwork type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetQueryParameters struct { // Format of the content Format *string `uriparametername:"%24format"` @@ -45,7 +45,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderC urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderInternal(urlParams, requestAdapter) } -// Get the content stream, if the item represents a file. +// Get get content for the navigation property filesFolder from teamwork // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -68,7 +68,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolder } return res.([]byte), nil } -// Put the content stream, if the item represents a file. +// Put update content for the navigation property filesFolder in teamwork // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { @@ -88,7 +88,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable), nil } -// ToGetRequestInformation the content stream, if the item represents a file. +// ToGetRequestInformation get content for the navigation property filesFolder from teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,7 +102,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolder requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") return requestInfo, nil } -// ToPutRequestInformation the content stream, if the item represents a file. +// ToPutRequestInformation update content for the navigation property filesFolder in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/filesFolder/content", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_stream_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_stream_request_builder.go new file mode 100644 index 00000000000..5fc03c9bc78 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_content_stream_request_builder.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder provides operations to manage the media for the teamwork entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/filesFolder/contentStream", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put the content stream, if the item represents a file. +// returns a []byte when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToGetRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + return requestInfo, nil +} +// ToPutRequestInformation the content stream, if the item represents a file. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_request_builder.go index 78a44c32755..38595f1a2f3 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_files_folder_request_builder.go @@ -45,6 +45,11 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderR func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderRequestBuilder) Content()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ContentStream provides operations to manage the media for the teamwork entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderRequestBuilder) ContentStream()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelFilesFolderContentStreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get the metadata for the location where the files of a channel are stored. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index 957bd25083d..c33e6cb22bb 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Patch update the role of a conversationMember in a team.or channel. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go index d99a23e6543..a6bf6bc03ea 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamwork -type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHos // NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesIte func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesIte // ToPutRequestInformation update media content for the navigation property hostedContents in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index c5c36db6cd9..1cbc84e57ce 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from teamwork -type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRep // NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesIte func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesIte // ToPutRequestInformation update media content for the navigation property hostedContents in teamwork // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go index f4422d9f12a..ebb0d8f88d9 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesReq } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesReq 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 *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_provision_email_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_provision_email_request_builder.go index a17519e7ad4..ebfe83d10f7 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_provision_email_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_provision_email_request_builder.go @@ -31,7 +31,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelProvisionEma urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilderInternal(urlParams, requestAdapter) } -// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// Post provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a ProvisionChannelEmailResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelProvisionEm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProvisionChannelEmailResultable), nil } -// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. +// ToPostRequestInformation provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelProvisionEmailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_request_builder.go index 48d7b4d3234..f66fd5696f2 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilderGetQueryParameters get the list of shift instances in a schedule. +// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilderGetQueryParameters the shifts in the schedule. type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuild func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsCountRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of shift instances in a schedule. +// Get the shifts in the schedule. // returns a ShiftCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Shiftable), nil } -// ToGetRequestInformation get the list of shift instances in a schedule. +// ToGetRequestInformation the shifts in the schedule. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_off_reasons_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_off_reasons_request_builder.go index ca6c0baaf37..3cc6c4ffd3c 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_off_reasons_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_off_reasons_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetQueryParameters get the list of timeOffReasons in a schedule. +// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetQueryParameters the set of reasons for a time off in the schedule. type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsCountRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of timeOffReasons in a schedule. +// Get the set of reasons for a time off in the schedule. // returns a TimeOffReasonCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,7 +120,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TimeOffReasonable), nil } -// ToGetRequestInformation get the list of timeOffReasons in a schedule. +// ToGetRequestInformation the set of reasons for a time off in the schedule. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeOffReasonsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_unarchive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_unarchive_request_builder.go index 3c4f360d0c3..8e86ea5d183 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_unarchive_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_unarchive_request_builder.go @@ -30,7 +30,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionUnarchiveRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewTeamTemplatesItemDefinitionsItemTeamDefinitionUnarchiveRequestBuilderInternal(urlParams, requestAdapter) } -// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// Post restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionUnarchiveRequestBuilder) } return nil } -// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. +// ToPostRequestInformation restore an archived team and restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_request_builder.go b/teamwork/team_templates_request_builder.go index 5e9abfa4b2f..81927b3571c 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-list-teamtemplates?view=graph-rest-1.0 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/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index fa438a93d67..d2f7c6d6112 100644 --- a/tenantrelationships/multi_tenant_organization_request_builder.go +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -75,12 +75,12 @@ func (m *MultiTenantOrganizationRequestBuilder) Get(ctx context.Context, request func (m *MultiTenantOrganizationRequestBuilder) JoinRequest()(*MultiTenantOrganizationJoinRequestRequestBuilder) { return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a multi-tenant organization. +// Patch create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. // returns a MultiTenantOrganizationable 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/multitenantorganization-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 func (m *MultiTenantOrganizationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -117,7 +117,7 @@ func (m *MultiTenantOrganizationRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a multi-tenant organization. +// ToPatchRequestInformation create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. // returns a *RequestInformation when successful func (m *MultiTenantOrganizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/tenantRelationships/multiTenantOrganization", m.BaseRequestBuilder.PathParameters) diff --git a/trustframework/policies_item_value_content_request_builder.go b/trustframework/policies_item_value_content_request_builder.go index ba0ec25e8d9..a5ba6cabd8a 100644 --- a/trustframework/policies_item_value_content_request_builder.go +++ b/trustframework/policies_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type PoliciesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PoliciesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property policies from trustFramework -type PoliciesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // PoliciesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type PoliciesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *PoliciesItemValueContentRequestBuilderGetQueryParameters } // PoliciesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type PoliciesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type PoliciesItemValueContentRequestBuilderPutRequestConfiguration struct { // NewPoliciesItemValueContentRequestBuilderInternal instantiates a new PoliciesItemValueContentRequestBuilder and sets the default values. func NewPoliciesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PoliciesItemValueContentRequestBuilder) { m := &PoliciesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/trustFramework/policies/{trustFrameworkPolicy%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/trustFramework/policies/{trustFrameworkPolicy%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *PoliciesItemValueContentRequestBuilder) Put(ctx context.Context, body [ func (m *PoliciesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PoliciesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *PoliciesItemValueContentRequestBuilder) ToGetRequestInformation(ctx con // ToPutRequestInformation update media content for the navigation property policies in trustFramework // returns a *RequestInformation when successful func (m *PoliciesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *PoliciesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/trustFramework/policies/{trustFrameworkPolicy%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) 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 55dd155b822..462f836f1c1 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 @@ -10,19 +10,12 @@ import ( type ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from users -type ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutReq // NewItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) // ToPutRequestInformation update media content for the navigation property hostedContents in users // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) 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 2a7ae929d54..0ed4b57c42a 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 @@ -10,19 +10,12 @@ import ( type ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property hostedContents from users -type ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetQueryParameters } // ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBu // NewItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal instantiates a new ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder and sets the default values. func NewItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { m := &ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque // ToPutRequestInformation update media content for the navigation property hostedContents in users // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/users/item_chats_item_messages_request_builder.go b/users/item_chats_item_messages_request_builder.go index dd778f620ab..1551cf2d8ea 100644 --- a/users/item_chats_item_messages_request_builder.go +++ b/users/item_chats_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemChatsItemMessagesRequestBuilder) Get(ctx context.Context, requestCo } 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-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 func (m *ItemChatsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemChatsItemMessagesRequestBuilder) ToGetRequestInformation(ctx contex 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 *ItemChatsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages", m.BaseRequestBuilder.PathParameters) 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 3900b330080..733dcf80e72 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 @@ -18,7 +18,7 @@ type ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderGetQueryParameters get items from users +// ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderGetQueryParameters represents a collection of Cloud Clipboard items. type ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Delete(ctx } return nil } -// Get get items from users +// Get represents a collection of Cloud Clipboard items. // 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) { @@ -121,7 +121,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToDeleteRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get items from users +// ToGetRequestInformation represents a collection of Cloud Clipboard items. // 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) diff --git a/users/item_cloud_clipboard_items_request_builder.go b/users/item_cloud_clipboard_items_request_builder.go index db8b8d8aa43..05b5cd723dd 100644 --- a/users/item_cloud_clipboard_items_request_builder.go +++ b/users/item_cloud_clipboard_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCloudClipboardItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCloudClipboardItemsRequestBuilderGetQueryParameters get items from users +// ItemCloudClipboardItemsRequestBuilderGetQueryParameters get a list of the cloudClipboardItem objects and their properties for a user. This API only allows you to get cloudClipboardItem objects for: This API doesn't support using another user's credentials to get a cloudClipboardItem for a user. type ItemCloudClipboardItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,9 +76,12 @@ func NewItemCloudClipboardItemsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *ItemCloudClipboardItemsRequestBuilder) Count()(*ItemCloudClipboardItemsCountRequestBuilder) { return NewItemCloudClipboardItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get items from users +// Get get a list of the cloudClipboardItem objects and their properties for a user. This API only allows you to get cloudClipboardItem objects for: This API doesn't support using another user's credentials to get a cloudClipboardItem for a user. // returns a CloudClipboardItemCollectionResponseable 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/cloudclipboardroot-list-items?view=graph-rest-1.0 func (m *ItemCloudClipboardItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +119,7 @@ func (m *ItemCloudClipboardItemsRequestBuilder) Post(ctx context.Context, body i } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable), nil } -// ToGetRequestInformation get items from users +// ToGetRequestInformation get a list of the cloudClipboardItem objects and their properties for a user. This API only allows you to get cloudClipboardItem objects for: This API doesn't support using another user's credentials to get a cloudClipboardItem for a user. // 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) 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 0f78c9ef71a..a898b95d8ef 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 @@ -10,19 +10,12 @@ import ( type ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from users -type ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters } // ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestB // NewItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderInternal instantiates a new ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder and sets the default values. func NewItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) { m := &ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/{contact%2Did}/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/{contact%2Did}/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ // ToPutRequestInformation update media content for the navigation property photo in users // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/{contact%2Did}/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) 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 0c38ba24064..b0ccc18f45d 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 @@ -10,19 +10,12 @@ import ( type ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from users -type ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters } // ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequest // NewItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderInternal instantiates a new ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder and sets the default values. func NewItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) { m := &ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/{contact%2Did}/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/{contact%2Did}/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Put( func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToGe // ToPutRequestInformation update media content for the navigation property photo in users // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/{contact%2Did}/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) 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 bd7bdf24974..385e9e6dd11 100644 --- a/users/item_contacts_item_photo_value_content_request_builder.go +++ b/users/item_contacts_item_photo_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemContactsItemPhotoValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters get media content for the navigation property photo from users -type ItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemContactsItemPhotoValueContentRequestBuilderGetQueryParameters } // ItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration stru // NewItemContactsItemPhotoValueContentRequestBuilderInternal instantiates a new ItemContactsItemPhotoValueContentRequestBuilder and sets the default values. func NewItemContactsItemPhotoValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactsItemPhotoValueContentRequestBuilder) { m := &ItemContactsItemPhotoValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contacts/{contact%2Did}/photo/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contacts/{contact%2Did}/photo/$value", pathParameters), } return m } @@ -89,9 +82,6 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) Put(ctx context.Contex func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -101,7 +91,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformatio // ToPutRequestInformation update media content for the navigation property photo in users // returns a *RequestInformation when successful func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/contacts/{contact%2Did}/photo/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/users/item_convert_external_to_internal_member_user_post_request_body.go b/users/item_convert_external_to_internal_member_user_post_request_body.go new file mode 100644 index 00000000000..636c96fd7c6 --- /dev/null +++ b/users/item_convert_external_to_internal_member_user_post_request_body.go @@ -0,0 +1,188 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemConvertExternalToInternalMemberUserPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemConvertExternalToInternalMemberUserPostRequestBody instantiates a new ItemConvertExternalToInternalMemberUserPostRequestBody and sets the default values. +func NewItemConvertExternalToInternalMemberUserPostRequestBody()(*ItemConvertExternalToInternalMemberUserPostRequestBody) { + m := &ItemConvertExternalToInternalMemberUserPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemConvertExternalToInternalMemberUserPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemConvertExternalToInternalMemberUserPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemConvertExternalToInternalMemberUserPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["mail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMail(val) + } + return nil + } + res["passwordProfile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePasswordProfileFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPasswordProfile(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordProfileable)) + } + return nil + } + res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserPrincipalName(val) + } + return nil + } + return res +} +// GetMail gets the mail property value. The mail property +// returns a *string when successful +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) GetMail()(*string) { + val, err := m.GetBackingStore().Get("mail") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPasswordProfile gets the passwordProfile property value. The passwordProfile property +// returns a PasswordProfileable when successful +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) GetPasswordProfile()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordProfileable) { + val, err := m.GetBackingStore().Get("passwordProfile") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordProfileable) + } + return nil +} +// GetUserPrincipalName gets the userPrincipalName property value. The userPrincipalName property +// returns a *string when successful +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) GetUserPrincipalName()(*string) { + val, err := m.GetBackingStore().Get("userPrincipalName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("mail", m.GetMail()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("passwordProfile", m.GetPasswordProfile()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMail sets the mail property value. The mail property +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) SetMail(value *string)() { + err := m.GetBackingStore().Set("mail", value) + if err != nil { + panic(err) + } +} +// SetPasswordProfile sets the passwordProfile property value. The passwordProfile property +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) SetPasswordProfile(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordProfileable)() { + err := m.GetBackingStore().Set("passwordProfile", value) + if err != nil { + panic(err) + } +} +// SetUserPrincipalName sets the userPrincipalName property value. The userPrincipalName property +func (m *ItemConvertExternalToInternalMemberUserPostRequestBody) SetUserPrincipalName(value *string)() { + err := m.GetBackingStore().Set("userPrincipalName", value) + if err != nil { + panic(err) + } +} +type ItemConvertExternalToInternalMemberUserPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMail()(*string) + GetPasswordProfile()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordProfileable) + GetUserPrincipalName()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMail(value *string)() + SetPasswordProfile(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordProfileable)() + SetUserPrincipalName(value *string)() +} 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 new file mode 100644 index 00000000000..26d086187bc --- /dev/null +++ b/users/item_convert_external_to_internal_member_user_request_builder.go @@ -0,0 +1,76 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemConvertExternalToInternalMemberUserRequestBuilder provides operations to call the convertExternalToInternalMemberUser method. +type ItemConvertExternalToInternalMemberUserRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemConvertExternalToInternalMemberUserRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemConvertExternalToInternalMemberUserRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemConvertExternalToInternalMemberUserRequestBuilderInternal instantiates a new ItemConvertExternalToInternalMemberUserRequestBuilder and sets the default values. +func NewItemConvertExternalToInternalMemberUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemConvertExternalToInternalMemberUserRequestBuilder) { + m := &ItemConvertExternalToInternalMemberUserRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/convertExternalToInternalMemberUser", pathParameters), + } + return m +} +// NewItemConvertExternalToInternalMemberUserRequestBuilder instantiates a new ItemConvertExternalToInternalMemberUserRequestBuilder and sets the default values. +func NewItemConvertExternalToInternalMemberUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemConvertExternalToInternalMemberUserRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + 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. +// returns a ConversionUserDetailsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/user-convertexternaltointernalmemberuser?view=graph-rest-1.0 +func (m *ItemConvertExternalToInternalMemberUserRequestBuilder) Post(ctx context.Context, body ItemConvertExternalToInternalMemberUserPostRequestBodyable, requestConfiguration *ItemConvertExternalToInternalMemberUserRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversionUserDetailsable, 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.CreateConversionUserDetailsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + 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. +// 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) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemConvertExternalToInternalMemberUserRequestBuilder when successful +func (m *ItemConvertExternalToInternalMemberUserRequestBuilder) WithUrl(rawUrl string)(*ItemConvertExternalToInternalMemberUserRequestBuilder) { + return NewItemConvertExternalToInternalMemberUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_drive_request_builder.go b/users/item_drive_request_builder.go index dd23fe2765a..429080f1f6d 100644 --- a/users/item_drive_request_builder.go +++ b/users/item_drive_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemDriveRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemDriveRequestBuilderGetQueryParameters retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. +// ItemDriveRequestBuilderGetQueryParameters retrieve the properties and relationships of a drive resource. A drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. type ItemDriveRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemDriveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2633 urlParams["request-raw-url"] = rawUrl return NewItemDriveRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. +// Get retrieve the properties and relationships of a drive resource. A drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. // returns a Driveable 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 *ItemDriveRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Driveable), nil } -// ToGetRequestInformation retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. +// ToGetRequestInformation retrieve the properties and relationships of a drive resource. A drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. // 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) diff --git a/users/item_drives_request_builder.go b/users/item_drives_request_builder.go index 83dc0729e71..35aa38b3e73 100644 --- a/users/item_drives_request_builder.go +++ b/users/item_drives_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemDrivesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemDrivesRequestBuilderGetQueryParameters retrieve the list of Drive resources available for a target User, Group, or Site. +// ItemDrivesRequestBuilderGetQueryParameters retrieve the list of drive resources available for a target user, group, or site. type ItemDrivesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemDrivesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemDrivesRequestBuilder) Count()(*ItemDrivesCountRequestBuilder) { return NewItemDrivesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the list of Drive resources available for a target User, Group, or Site. +// Get retrieve the list of drive resources available for a target user, group, or site. // returns a DriveCollectionResponseable 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 *ItemDrivesRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveCollectionResponseable), nil } -// ToGetRequestInformation retrieve the list of Drive resources available for a target User, Group, or Site. +// ToGetRequestInformation retrieve the list of drive resources available for a target user, group, or site. // 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) 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 6903b644244..e850cb18064 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 @@ -98,12 +98,12 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. +// Post use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. // returns a Attachmentable 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/eventmessage-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. +// ToPostRequestInformation use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. // 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, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments", m.BaseRequestBuilder.PathParameters) 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 dced334e739..6164ddcc35a 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 @@ -10,19 +10,12 @@ import ( type ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property messages from users -type ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetQueryParameters } // ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderPu // NewItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderInternal instantiates a new ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder and sets the default values. func NewItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) { m := &ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild // ToPutRequestInformation update media content for the navigation property messages in users // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) 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 9fc5af30a68..6a9ddb849ad 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 @@ -98,12 +98,12 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. +// Post use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. // returns a Attachmentable 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/eventmessage-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. +// ToPostRequestInformation use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. // 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, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments", m.BaseRequestBuilder.PathParameters) 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 93bbd56d8ca..bd9ddbb012c 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 @@ -10,19 +10,12 @@ import ( type ItemMailFoldersItemMessagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property messages from users -type ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetQueryParameters } // ItemMailFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemMailFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemMailFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfigur // NewItemMailFoldersItemMessagesItemValueContentRequestBuilderInternal instantiates a new ItemMailFoldersItemMessagesItemValueContentRequestBuilder and sets the default values. func NewItemMailFoldersItemMessagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemMessagesItemValueContentRequestBuilder) { m := &ItemMailFoldersItemMessagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/$value", pathParameters), } return m } @@ -92,9 +85,6 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Put(ctx cont func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToGetRequest // ToPutRequestInformation update media content for the navigation property messages in users // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) 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 a5eec53d542..d6fa5ddf538 100644 --- a/users/item_mail_folders_mail_folder_item_request_builder.go +++ b/users/item_mail_folders_mail_folder_item_request_builder.go @@ -123,12 +123,12 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Messages()(*ItemMailFolder func (m *ItemMailFoldersMailFolderItemRequestBuilder) Move()(*ItemMailFoldersItemMoveRequestBuilder) { return NewItemMailFoldersItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of mailFolder object. +// Patch update the writable properties of a mailSearchFolder object. // returns a MailFolderable 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/mailfolder-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0 func (m *ItemMailFoldersMailFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -171,7 +171,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToGetRequestInformation(ct requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of mailFolder object. +// ToPatchRequestInformation update the writable properties of a mailSearchFolder object. // 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, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index 267352429e6..3da1a7b5773 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -98,12 +98,12 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. +// Post use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. // returns a Attachmentable 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/eventmessage-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. +// ToPostRequestInformation use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. // 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, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_messages_item_value_content_request_builder.go b/users/item_messages_item_value_content_request_builder.go index afbeee27232..c049ea5d73d 100644 --- a/users/item_messages_item_value_content_request_builder.go +++ b/users/item_messages_item_value_content_request_builder.go @@ -10,19 +10,12 @@ import ( type ItemMessagesItemValueContentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMessagesItemValueContentRequestBuilderGetQueryParameters get media content for the navigation property messages from users -type ItemMessagesItemValueContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} // ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemMessagesItemValueContentRequestBuilderGetQueryParameters } // ItemMessagesItemValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. type ItemMessagesItemValueContentRequestBuilderPutRequestConfiguration struct { @@ -34,7 +27,7 @@ type ItemMessagesItemValueContentRequestBuilderPutRequestConfiguration struct { // NewItemMessagesItemValueContentRequestBuilderInternal instantiates a new ItemMessagesItemValueContentRequestBuilder and sets the default values. func NewItemMessagesItemValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMessagesItemValueContentRequestBuilder) { m := &ItemMessagesItemValueContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/$value{?%24format*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/$value", pathParameters), } return m } @@ -49,7 +42,7 @@ func NewItemMessagesItemValueContentRequestBuilder(rawUrl string, requestAdapter // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 func (m *ItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,9 +85,6 @@ func (m *ItemMessagesItemValueContentRequestBuilder) Put(ctx context.Context, bo func (m *ItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) } @@ -104,7 +94,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx // ToPutRequestInformation update media content for the navigation property messages in users // returns a *RequestInformation when successful func (m *ItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/$value", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index 8dbdfcdf7c0..0120578cd49 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -120,7 +120,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Forward()(*ItemMessagesItemForwa // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -158,12 +158,12 @@ func (m *ItemMessagesMessageItemRequestBuilder) Mentions()(*ItemMessagesItemMent func (m *ItemMessagesMessageItemRequestBuilder) Move()(*ItemMessagesItemMoveRequestBuilder) { return NewItemMessagesItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an eventMessage object. +// Patch update the properties of a message object. // returns a Messageable 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/eventmessage-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-update?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -221,7 +221,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an eventMessage object. +// ToPatchRequestInformation update the properties of a message object. // 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, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index 67a6501ca43..365f97b5d10 100644 --- a/users/item_messages_request_builder.go +++ b/users/item_messages_request_builder.go @@ -88,7 +88,7 @@ func (m *ItemMessagesRequestBuilder) Delta()(*ItemMessagesDeltaRequestBuilder) { // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -106,12 +106,12 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable), nil } -// Post create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- 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. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. +// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/user-post-messages?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -143,7 +143,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- 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. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. +// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go b/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go index cc709d90381..c4468dc3b2b 100644 --- a/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go +++ b/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_app_log_collection_request_item_request_builder.go @@ -18,7 +18,7 @@ type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollect // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters the collection property of AppLogUploadRequest. +// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol } return nil } -// Get the collection property of AppLogUploadRequest. +// Get indicates collection of App Log Upload Request. // 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) { @@ -126,7 +126,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection property of AppLogUploadRequest. +// ToGetRequestInformation indicates collection of App Log Upload Request. // 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) 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 01a591a6b96..8d8bcc54e10 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 the collection property of AppLogUploadRequest. +// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBui func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) Count()(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) { return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection property of AppLogUploadRequest. +// Get indicates collection of App Log Upload Request. // 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) { @@ -116,7 +116,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable), nil } -// ToGetRequestInformation the collection property of AppLogUploadRequest. +// ToGetRequestInformation indicates collection of App Log Upload Request. // 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) diff --git a/users/item_photo_request_builder.go b/users/item_photo_request_builder.go index dc376413007..7fdbc27ee1e 100644 --- a/users/item_photo_request_builder.go +++ b/users/item_photo_request_builder.go @@ -11,6 +11,13 @@ import ( type ItemPhotoRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } +// ItemPhotoRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPhotoRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} // ItemPhotoRequestBuilderGetQueryParameters the user's profile photo. Read-only. type ItemPhotoRequestBuilderGetQueryParameters struct { // Select properties to be returned @@ -50,6 +57,22 @@ func NewItemPhotoRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2633 func (m *ItemPhotoRequestBuilder) Content()(*ItemPhotoValueContentRequestBuilder) { return NewItemPhotoValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Delete delete navigation property photo for users +// 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); + 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 user's profile photo. Read-only. // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -90,6 +113,17 @@ func (m *ItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } +// ToDeleteRequestInformation delete navigation property photo for users +// returns a *RequestInformation when successful +func (m *ItemPhotoRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/users/{user%2Did}/photo", 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 user's profile photo. Read-only. // returns a *RequestInformation when successful func (m *ItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/users/item_settings_windows_item_instances_request_builder.go b/users/item_settings_windows_item_instances_request_builder.go index fde35fb1897..fc53c1485e9 100644 --- a/users/item_settings_windows_item_instances_request_builder.go +++ b/users/item_settings_windows_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSettingsWindowsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSettingsWindowsItemInstancesRequestBuilderGetQueryParameters get instances from users +// ItemSettingsWindowsItemInstancesRequestBuilderGetQueryParameters get a list of windowsSettingInstance objects and their properties for the signed-in user. type ItemSettingsWindowsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,9 +76,12 @@ func NewItemSettingsWindowsItemInstancesRequestBuilder(rawUrl string, requestAda func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Count()(*ItemSettingsWindowsItemInstancesCountRequestBuilder) { return NewItemSettingsWindowsItemInstancesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get instances from users +// Get get a list of windowsSettingInstance objects and their properties for the signed-in user. // returns a WindowsSettingInstanceCollectionResponseable 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/windowssetting-list-instances?view=graph-rest-1.0 func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +119,7 @@ func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable), nil } -// ToGetRequestInformation get instances from users +// ToGetRequestInformation get a list of windowsSettingInstance objects and their properties for the signed-in user. // 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) 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 a648386b69f..d66a4846a06 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 @@ -18,7 +18,7 @@ type ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderGetQueryParameters get instances from users +// ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderGetQueryParameters read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. type ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,9 +70,12 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde } return nil } -// Get get instances from users +// Get read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. // returns a WindowsSettingInstanceable 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/windowssettinginstance-get?view=graph-rest-1.0 func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -121,7 +124,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get instances from users +// ToGetRequestInformation read the properties and relationships of a windowsSettingInstance object by passing the Windows setting ID and Windows setting instance ID in the URL. This method gets a windowsSettingInstance for the signed-in user. // 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) diff --git a/users/item_settings_windows_request_builder.go b/users/item_settings_windows_request_builder.go index d354a262d2c..5010fb2d39a 100644 --- a/users/item_settings_windows_request_builder.go +++ b/users/item_settings_windows_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSettingsWindowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSettingsWindowsRequestBuilderGetQueryParameters get windows from users +// ItemSettingsWindowsRequestBuilderGetQueryParameters get a list of windowsSetting objects and their properties for the signed in user. type ItemSettingsWindowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,9 +76,12 @@ func NewItemSettingsWindowsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *ItemSettingsWindowsRequestBuilder) Count()(*ItemSettingsWindowsCountRequestBuilder) { return NewItemSettingsWindowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get windows from users +// Get get a list of windowsSetting objects and their properties for the signed in user. // returns a WindowsSettingCollectionResponseable 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/usersettings-list-windows?view=graph-rest-1.0 func (m *ItemSettingsWindowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +119,7 @@ func (m *ItemSettingsWindowsRequestBuilder) Post(ctx context.Context, body ie233 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable), nil } -// ToGetRequestInformation get windows from users +// ToGetRequestInformation get a list of windowsSetting objects and their properties for the signed in user. // 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) 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 4ef34744c32..b1e99dacb35 100644 --- a/users/item_settings_windows_windows_setting_item_request_builder.go +++ b/users/item_settings_windows_windows_setting_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSettingsWindowsWindowsSettingItemRequestBuilderDeleteRequestConfigurati // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSettingsWindowsWindowsSettingItemRequestBuilderGetQueryParameters get windows from users +// ItemSettingsWindowsWindowsSettingItemRequestBuilderGetQueryParameters read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. type ItemSettingsWindowsWindowsSettingItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,9 +70,12 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Delete(ctx context } return nil } -// Get get windows from users +// Get read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. // returns a WindowsSettingable 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/windowssetting-get?view=graph-rest-1.0 func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +129,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToDeleteRequestInf requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get windows from users +// ToGetRequestInformation read the properties and relationships of a windowsSetting object by passing the ID of the setting in the URL. This method gets the setting for the signed-in user. // 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) 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 8c2cfc43cf9..090a9693053 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 @@ -54,7 +54,7 @@ func NewItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilde urlParams["request-raw-url"] = rawUrl return NewItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a linkedResource object. +// Delete delete a linkedResource object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -119,7 +119,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable), nil } -// ToDeleteRequestInformation deletes a linkedResource object. +// ToDeleteRequestInformation delete a linkedResource object. // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/linkedResources/{linkedResource%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/users/user_item_request_builder.go b/users/user_item_request_builder.go index 908fda801a8..06839955bf0 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -164,6 +164,11 @@ func (m *UserItemRequestBuilder) ContactFolders()(*ItemContactFoldersRequestBuil func (m *UserItemRequestBuilder) Contacts()(*ItemContactsRequestBuilder) { return NewItemContactsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ConvertExternalToInternalMemberUser provides operations to call the convertExternalToInternalMemberUser method. +// returns a *ItemConvertExternalToInternalMemberUserRequestBuilder when successful +func (m *UserItemRequestBuilder) ConvertExternalToInternalMemberUser()(*ItemConvertExternalToInternalMemberUserRequestBuilder) { + return NewItemConvertExternalToInternalMemberUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CreatedObjects provides operations to manage the createdObjects property of the microsoft.graph.user entity. // returns a *ItemCreatedObjectsRequestBuilder when successful func (m *UserItemRequestBuilder) CreatedObjects()(*ItemCreatedObjectsRequestBuilder) { diff --git a/workplace/sensor_devices_count_request_builder.go b/workplace/sensor_devices_count_request_builder.go new file mode 100644 index 00000000000..d33efc9f85e --- /dev/null +++ b/workplace/sensor_devices_count_request_builder.go @@ -0,0 +1,80 @@ +package workplace + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// SensorDevicesCountRequestBuilder provides operations to count the resources in the collection. +type SensorDevicesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SensorDevicesCountRequestBuilderGetQueryParameters get the number of the resource +type SensorDevicesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// SensorDevicesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SensorDevicesCountRequestBuilderGetQueryParameters +} +// NewSensorDevicesCountRequestBuilderInternal instantiates a new SensorDevicesCountRequestBuilder and sets the default values. +func NewSensorDevicesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesCountRequestBuilder) { + m := &SensorDevicesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/workplace/sensorDevices/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewSensorDevicesCountRequestBuilder instantiates a new SensorDevicesCountRequestBuilder and sets the default values. +func NewSensorDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSensorDevicesCountRequestBuilderInternal(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 *SensorDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SensorDevicesCountRequestBuilderGetRequestConfiguration)(*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 *SensorDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SensorDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *SensorDevicesCountRequestBuilder when successful +func (m *SensorDevicesCountRequestBuilder) WithUrl(rawUrl string)(*SensorDevicesCountRequestBuilder) { + return NewSensorDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_sites_add_post_request_body.go b/workplace/sensor_devices_ingest_telemetry_post_request_body.go similarity index 52% rename from sites/item_sites_add_post_request_body.go rename to workplace/sensor_devices_ingest_telemetry_post_request_body.go index 9829cd9bb30..29045a7df18 100644 --- a/sites/item_sites_add_post_request_body.go +++ b/workplace/sensor_devices_ingest_telemetry_post_request_body.go @@ -1,4 +1,4 @@ -package sites +package workplace import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" @@ -6,26 +6,26 @@ import ( ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -type ItemSitesAddPostRequestBody struct { +type SensorDevicesIngestTelemetryPostRequestBody struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewItemSitesAddPostRequestBody instantiates a new ItemSitesAddPostRequestBody and sets the default values. -func NewItemSitesAddPostRequestBody()(*ItemSitesAddPostRequestBody) { - m := &ItemSitesAddPostRequestBody{ +// NewSensorDevicesIngestTelemetryPostRequestBody instantiates a new SensorDevicesIngestTelemetryPostRequestBody and sets the default values. +func NewSensorDevicesIngestTelemetryPostRequestBody()(*SensorDevicesIngestTelemetryPostRequestBody) { + m := &SensorDevicesIngestTelemetryPostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) return m } -// CreateItemSitesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateSensorDevicesIngestTelemetryPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateItemSitesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewItemSitesAddPostRequestBody(), nil +func CreateSensorDevicesIngestTelemetryPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSensorDevicesIngestTelemetryPostRequestBody(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. // returns a map[string]any when successful -func (m *ItemSitesAddPostRequestBody) GetAdditionalData()(map[string]any) { +func (m *SensorDevicesIngestTelemetryPostRequestBody) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") if err != nil { panic(err) @@ -38,53 +38,53 @@ func (m *ItemSitesAddPostRequestBody) GetAdditionalData()(map[string]any) { } // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful -func (m *ItemSitesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { +func (m *SensorDevicesIngestTelemetryPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *SensorDevicesIngestTelemetryPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + res["telemetry"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkplaceSensorDeviceTelemetryFromDiscriminatorValue) if err != nil { return err } if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable, len(val)) for i, v := range val { if v != nil { - res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable) } } - m.SetValue(res) + m.SetTelemetry(res) } return nil } return res } -// GetValue gets the value property value. The value property -// returns a []Siteable when successful -func (m *ItemSitesAddPostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { - val, err := m.GetBackingStore().Get("value") +// GetTelemetry gets the telemetry property value. The telemetry property +// returns a []WorkplaceSensorDeviceTelemetryable when successful +func (m *SensorDevicesIngestTelemetryPostRequestBody) GetTelemetry()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable) { + val, err := m.GetBackingStore().Get("telemetry") if err != nil { panic(err) } if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable) } return nil } // Serialize serializes information the current object -func (m *ItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { +func (m *SensorDevicesIngestTelemetryPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetTelemetry() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTelemetry())) + for i, v := range m.GetTelemetry() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } - err := writer.WriteCollectionOfObjectValues("value", cast) + err := writer.WriteCollectionOfObjectValues("telemetry", cast) if err != nil { return err } @@ -98,29 +98,29 @@ func (m *ItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a return nil } // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *ItemSitesAddPostRequestBody) SetAdditionalData(value map[string]any)() { +func (m *SensorDevicesIngestTelemetryPostRequestBody) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) if err != nil { panic(err) } } // SetBackingStore sets the BackingStore property value. Stores model information. -func (m *ItemSitesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { +func (m *SensorDevicesIngestTelemetryPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetValue sets the value property value. The value property -func (m *ItemSitesAddPostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { - err := m.GetBackingStore().Set("value", value) +// SetTelemetry sets the telemetry property value. The telemetry property +func (m *SensorDevicesIngestTelemetryPostRequestBody) SetTelemetry(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable)() { + err := m.GetBackingStore().Set("telemetry", value) if err != nil { panic(err) } } -type ItemSitesAddPostRequestBodyable interface { +type SensorDevicesIngestTelemetryPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + GetTelemetry()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() + SetTelemetry(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceTelemetryable)() } diff --git a/workplace/sensor_devices_ingest_telemetry_request_builder.go b/workplace/sensor_devices_ingest_telemetry_request_builder.go new file mode 100644 index 00000000000..0802792630c --- /dev/null +++ b/workplace/sensor_devices_ingest_telemetry_request_builder.go @@ -0,0 +1,68 @@ +package workplace + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// SensorDevicesIngestTelemetryRequestBuilder provides operations to call the ingestTelemetry method. +type SensorDevicesIngestTelemetryRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SensorDevicesIngestTelemetryRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesIngestTelemetryRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSensorDevicesIngestTelemetryRequestBuilderInternal instantiates a new SensorDevicesIngestTelemetryRequestBuilder and sets the default values. +func NewSensorDevicesIngestTelemetryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesIngestTelemetryRequestBuilder) { + m := &SensorDevicesIngestTelemetryRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/workplace/sensorDevices/ingestTelemetry", pathParameters), + } + return m +} +// NewSensorDevicesIngestTelemetryRequestBuilder instantiates a new SensorDevicesIngestTelemetryRequestBuilder and sets the default values. +func NewSensorDevicesIngestTelemetryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesIngestTelemetryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSensorDevicesIngestTelemetryRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action ingestTelemetry +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesIngestTelemetryRequestBuilder) Post(ctx context.Context, body SensorDevicesIngestTelemetryPostRequestBodyable, requestConfiguration *SensorDevicesIngestTelemetryRequestBuilderPostRequestConfiguration)(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 ingestTelemetry +// returns a *RequestInformation when successful +func (m *SensorDevicesIngestTelemetryRequestBuilder) ToPostRequestInformation(ctx context.Context, body SensorDevicesIngestTelemetryPostRequestBodyable, requestConfiguration *SensorDevicesIngestTelemetryRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SensorDevicesIngestTelemetryRequestBuilder when successful +func (m *SensorDevicesIngestTelemetryRequestBuilder) WithUrl(rawUrl string)(*SensorDevicesIngestTelemetryRequestBuilder) { + return NewSensorDevicesIngestTelemetryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/workplace/sensor_devices_request_builder.go b/workplace/sensor_devices_request_builder.go new file mode 100644 index 00000000000..523b1dc42ec --- /dev/null +++ b/workplace/sensor_devices_request_builder.go @@ -0,0 +1,157 @@ +package workplace + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// SensorDevicesRequestBuilder provides operations to manage the sensorDevices property of the microsoft.graph.workplace entity. +type SensorDevicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SensorDevicesRequestBuilderGetQueryParameters get sensorDevices from workplace +type SensorDevicesRequestBuilderGetQueryParameters 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"` +} +// SensorDevicesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SensorDevicesRequestBuilderGetQueryParameters +} +// SensorDevicesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByWorkplaceSensorDeviceId provides operations to manage the sensorDevices property of the microsoft.graph.workplace entity. +// returns a *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder when successful +func (m *SensorDevicesRequestBuilder) ByWorkplaceSensorDeviceId(workplaceSensorDeviceId string)(*SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if workplaceSensorDeviceId != "" { + urlTplParams["workplaceSensorDevice%2Did"] = workplaceSensorDeviceId + } + return NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewSensorDevicesRequestBuilderInternal instantiates a new SensorDevicesRequestBuilder and sets the default values. +func NewSensorDevicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesRequestBuilder) { + m := &SensorDevicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/workplace/sensorDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewSensorDevicesRequestBuilder instantiates a new SensorDevicesRequestBuilder and sets the default values. +func NewSensorDevicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSensorDevicesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *SensorDevicesCountRequestBuilder when successful +func (m *SensorDevicesRequestBuilder) Count()(*SensorDevicesCountRequestBuilder) { + return NewSensorDevicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get sensorDevices from workplace +// returns a WorkplaceSensorDeviceCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *SensorDevicesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkplaceSensorDeviceCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceCollectionResponseable), nil +} +// IngestTelemetry provides operations to call the ingestTelemetry method. +// returns a *SensorDevicesIngestTelemetryRequestBuilder when successful +func (m *SensorDevicesRequestBuilder) IngestTelemetry()(*SensorDevicesIngestTelemetryRequestBuilder) { + return NewSensorDevicesIngestTelemetryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Post create new navigation property to sensorDevices for workplace +// returns a WorkplaceSensorDeviceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, requestConfiguration *SensorDevicesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, 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.CreateWorkplaceSensorDeviceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable), nil +} +// ToGetRequestInformation get sensorDevices from workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SensorDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 sensorDevices for workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, requestConfiguration *SensorDevicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/workplace/sensorDevices", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SensorDevicesRequestBuilder when successful +func (m *SensorDevicesRequestBuilder) WithUrl(rawUrl string)(*SensorDevicesRequestBuilder) { + return NewSensorDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/workplace/sensor_devices_with_device_id_request_builder.go b/workplace/sensor_devices_with_device_id_request_builder.go new file mode 100644 index 00000000000..93d0ce45102 --- /dev/null +++ b/workplace/sensor_devices_with_device_id_request_builder.go @@ -0,0 +1,160 @@ +package workplace + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// SensorDevicesWithDeviceIdRequestBuilder provides operations to manage the sensorDevices property of the microsoft.graph.workplace entity. +type SensorDevicesWithDeviceIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SensorDevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SensorDevicesWithDeviceIdRequestBuilderGetQueryParameters get sensorDevices from workplace +type SensorDevicesWithDeviceIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SensorDevicesWithDeviceIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesWithDeviceIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SensorDevicesWithDeviceIdRequestBuilderGetQueryParameters +} +// SensorDevicesWithDeviceIdRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesWithDeviceIdRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSensorDevicesWithDeviceIdRequestBuilderInternal instantiates a new SensorDevicesWithDeviceIdRequestBuilder and sets the default values. +func NewSensorDevicesWithDeviceIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deviceId *string)(*SensorDevicesWithDeviceIdRequestBuilder) { + m := &SensorDevicesWithDeviceIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/workplace/sensorDevices(deviceId='{deviceId}'){?%24expand,%24select}", pathParameters), + } + if deviceId != nil { + m.BaseRequestBuilder.PathParameters["deviceId"] = *deviceId + } + return m +} +// NewSensorDevicesWithDeviceIdRequestBuilder instantiates a new SensorDevicesWithDeviceIdRequestBuilder and sets the default values. +func NewSensorDevicesWithDeviceIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesWithDeviceIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSensorDevicesWithDeviceIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property sensorDevices for workplace +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesWithDeviceIdRequestBuilder) Delete(ctx context.Context, requestConfiguration *SensorDevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration)(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 sensorDevices from workplace +// returns a WorkplaceSensorDeviceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesWithDeviceIdRequestBuilder) Get(ctx context.Context, requestConfiguration *SensorDevicesWithDeviceIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkplaceSensorDeviceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable), nil +} +// Patch update the navigation property sensorDevices in workplace +// returns a WorkplaceSensorDeviceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesWithDeviceIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, requestConfiguration *SensorDevicesWithDeviceIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, 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.CreateWorkplaceSensorDeviceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable), nil +} +// ToDeleteRequestInformation delete navigation property sensorDevices for workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesWithDeviceIdRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SensorDevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/workplace/sensorDevices(deviceId='{deviceId}')", 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 sensorDevices from workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesWithDeviceIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SensorDevicesWithDeviceIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 sensorDevices in workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesWithDeviceIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, requestConfiguration *SensorDevicesWithDeviceIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/workplace/sensorDevices(deviceId='{deviceId}')", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SensorDevicesWithDeviceIdRequestBuilder when successful +func (m *SensorDevicesWithDeviceIdRequestBuilder) WithUrl(rawUrl string)(*SensorDevicesWithDeviceIdRequestBuilder) { + return NewSensorDevicesWithDeviceIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/workplace/sensor_devices_workplace_sensor_device_item_request_builder.go b/workplace/sensor_devices_workplace_sensor_device_item_request_builder.go new file mode 100644 index 00000000000..d93ef60464d --- /dev/null +++ b/workplace/sensor_devices_workplace_sensor_device_item_request_builder.go @@ -0,0 +1,157 @@ +package workplace + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// SensorDevicesWorkplaceSensorDeviceItemRequestBuilder provides operations to manage the sensorDevices property of the microsoft.graph.workplace entity. +type SensorDevicesWorkplaceSensorDeviceItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SensorDevicesWorkplaceSensorDeviceItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesWorkplaceSensorDeviceItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetQueryParameters get sensorDevices from workplace +type SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetQueryParameters +} +// SensorDevicesWorkplaceSensorDeviceItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SensorDevicesWorkplaceSensorDeviceItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilderInternal instantiates a new SensorDevicesWorkplaceSensorDeviceItemRequestBuilder and sets the default values. +func NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) { + m := &SensorDevicesWorkplaceSensorDeviceItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/workplace/sensorDevices/{workplaceSensorDevice%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilder instantiates a new SensorDevicesWorkplaceSensorDeviceItemRequestBuilder and sets the default values. +func NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sensorDevices for workplace +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderDeleteRequestConfiguration)(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 sensorDevices from workplace +// returns a WorkplaceSensorDeviceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkplaceSensorDeviceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable), nil +} +// Patch update the navigation property sensorDevices in workplace +// returns a WorkplaceSensorDeviceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, requestConfiguration *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, 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.CreateWorkplaceSensorDeviceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable), nil +} +// ToDeleteRequestInformation delete navigation property sensorDevices for workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/workplace/sensorDevices/{workplaceSensorDevice%2Did}", 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 sensorDevices from workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 sensorDevices in workplace +// returns a *RequestInformation when successful +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkplaceSensorDeviceable, requestConfiguration *SensorDevicesWorkplaceSensorDeviceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/workplace/sensorDevices/{workplaceSensorDevice%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder when successful +func (m *SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) WithUrl(rawUrl string)(*SensorDevicesWorkplaceSensorDeviceItemRequestBuilder) { + return NewSensorDevicesWorkplaceSensorDeviceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/workplace/workplace_request_builder.go b/workplace/workplace_request_builder.go new file mode 100644 index 00000000000..0749586de5a --- /dev/null +++ b/workplace/workplace_request_builder.go @@ -0,0 +1,133 @@ +package workplace + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WorkplaceRequestBuilder provides operations to manage the workplace singleton. +type WorkplaceRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WorkplaceRequestBuilderGetQueryParameters get workplace +type WorkplaceRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WorkplaceRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WorkplaceRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WorkplaceRequestBuilderGetQueryParameters +} +// WorkplaceRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WorkplaceRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWorkplaceRequestBuilderInternal instantiates a new WorkplaceRequestBuilder and sets the default values. +func NewWorkplaceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WorkplaceRequestBuilder) { + m := &WorkplaceRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/workplace{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWorkplaceRequestBuilder instantiates a new WorkplaceRequestBuilder and sets the default values. +func NewWorkplaceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WorkplaceRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWorkplaceRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get workplace +// returns a Workplaceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WorkplaceRequestBuilder) Get(ctx context.Context, requestConfiguration *WorkplaceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Workplaceable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkplaceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Workplaceable), nil +} +// Patch update workplace +// returns a Workplaceable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WorkplaceRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Workplaceable, requestConfiguration *WorkplaceRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Workplaceable, 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.CreateWorkplaceFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Workplaceable), nil +} +// SensorDevices provides operations to manage the sensorDevices property of the microsoft.graph.workplace entity. +// returns a *SensorDevicesRequestBuilder when successful +func (m *WorkplaceRequestBuilder) SensorDevices()(*SensorDevicesRequestBuilder) { + return NewSensorDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SensorDevicesWithDeviceId provides operations to manage the sensorDevices property of the microsoft.graph.workplace entity. +// returns a *SensorDevicesWithDeviceIdRequestBuilder when successful +func (m *WorkplaceRequestBuilder) SensorDevicesWithDeviceId(deviceId *string)(*SensorDevicesWithDeviceIdRequestBuilder) { + return NewSensorDevicesWithDeviceIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deviceId) +} +// ToGetRequestInformation get workplace +// returns a *RequestInformation when successful +func (m *WorkplaceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WorkplaceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 workplace +// returns a *RequestInformation when successful +func (m *WorkplaceRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Workplaceable, requestConfiguration *WorkplaceRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/workplace", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WorkplaceRequestBuilder when successful +func (m *WorkplaceRequestBuilder) WithUrl(rawUrl string)(*WorkplaceRequestBuilder) { + return NewWorkplaceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +}