diff --git a/admin/admin_request_builder.go b/admin/admin_request_builder.go index 43ea2cf9123..606efe50162 100644 --- a/admin/admin_request_builder.go +++ b/admin/admin_request_builder.go @@ -82,6 +82,10 @@ func (m *AdminRequestBuilder) Get(ctx context.Context, requestConfiguration *Adm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable), nil } +// Microsoft365Apps provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. +func (m *AdminRequestBuilder) Microsoft365Apps()(*Microsoft365AppsRequestBuilder) { + return NewMicrosoft365AppsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update admin func (m *AdminRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable, requestConfiguration *AdminRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); diff --git a/admin/microsoft365_apps_installation_options_request_builder.go b/admin/microsoft365_apps_installation_options_request_builder.go new file mode 100644 index 00000000000..77298f7c68e --- /dev/null +++ b/admin/microsoft365_apps_installation_options_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// Microsoft365AppsInstallationOptionsRequestBuilder provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. +type Microsoft365AppsInstallationOptionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Microsoft365AppsInstallationOptionsRequestBuilderGetQueryParameters read the properties and relationships of an m365AppsInstallationOptions object. +type Microsoft365AppsInstallationOptionsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *Microsoft365AppsInstallationOptionsRequestBuilderGetQueryParameters +} +// Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal instantiates a new InstallationOptionsRequestBuilder and sets the default values. +func NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsInstallationOptionsRequestBuilder) { + m := &Microsoft365AppsInstallationOptionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/microsoft365Apps/installationOptions{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMicrosoft365AppsInstallationOptionsRequestBuilder instantiates a new InstallationOptionsRequestBuilder and sets the default values. +func NewMicrosoft365AppsInstallationOptionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsInstallationOptionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property installationOptions for admin +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) Delete(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of an m365AppsInstallationOptions object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/m365appsinstallationoptions-get?view=graph-rest-1.0 +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) Get(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateM365AppsInstallationOptionsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable), nil +} +// Patch update the properties of an m365AppsInstallationOptions object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/m365appsinstallationoptions-update?view=graph-rest-1.0 +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateM365AppsInstallationOptionsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable), nil +} +// ToDeleteRequestInformation delete navigation property installationOptions for admin +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation read the properties and relationships of an m365AppsInstallationOptions object. +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 properties of an m365AppsInstallationOptions object. +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) WithUrl(rawUrl string)(*Microsoft365AppsInstallationOptionsRequestBuilder) { + return NewMicrosoft365AppsInstallationOptionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/microsoft365_apps_request_builder.go b/admin/microsoft365_apps_request_builder.go new file mode 100644 index 00000000000..ed0f6e171f7 --- /dev/null +++ b/admin/microsoft365_apps_request_builder.go @@ -0,0 +1,155 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// Microsoft365AppsRequestBuilder provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. +type Microsoft365AppsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// Microsoft365AppsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Microsoft365AppsRequestBuilderGetQueryParameters a container for the Microsoft 365 apps admin functionality. +type Microsoft365AppsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// Microsoft365AppsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *Microsoft365AppsRequestBuilderGetQueryParameters +} +// Microsoft365AppsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMicrosoft365AppsRequestBuilderInternal instantiates a new Microsoft365AppsRequestBuilder and sets the default values. +func NewMicrosoft365AppsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsRequestBuilder) { + m := &Microsoft365AppsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/microsoft365Apps{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMicrosoft365AppsRequestBuilder instantiates a new Microsoft365AppsRequestBuilder and sets the default values. +func NewMicrosoft365AppsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMicrosoft365AppsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property microsoft365Apps for admin +func (m *Microsoft365AppsRequestBuilder) Delete(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get a container for the Microsoft 365 apps admin functionality. +func (m *Microsoft365AppsRequestBuilder) Get(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdminMicrosoft365AppsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable), nil +} +// InstallationOptions provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. +func (m *Microsoft365AppsRequestBuilder) InstallationOptions()(*Microsoft365AppsInstallationOptionsRequestBuilder) { + return NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property microsoft365Apps in admin +func (m *Microsoft365AppsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, requestConfiguration *Microsoft365AppsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdminMicrosoft365AppsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable), nil +} +// ToDeleteRequestInformation delete navigation property microsoft365Apps for admin +func (m *Microsoft365AppsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation a container for the Microsoft 365 apps admin functionality. +func (m *Microsoft365AppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 microsoft365Apps in admin +func (m *Microsoft365AppsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, requestConfiguration *Microsoft365AppsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *Microsoft365AppsRequestBuilder) WithUrl(rawUrl string)(*Microsoft365AppsRequestBuilder) { + return NewMicrosoft365AppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go index 95e32161c37..a8ccaca880b 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 an operationalInsightsConnection object. +// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of a resourceConnection object. type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,10 +54,10 @@ func NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an operationalInsightsConnection object. +// Delete delete a resourceConnection object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-1.0 func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,10 +73,10 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return nil } -// Get read the properties and relationships of an operationalInsightsConnection object. +// Get read the properties and relationships of a resourceConnection object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-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 { @@ -114,7 +114,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable), nil } -// ToDeleteRequestInformation delete an operationalInsightsConnection object. +// ToDeleteRequestInformation delete a resourceConnection object. func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -124,7 +124,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an operationalInsightsConnection object. +// ToGetRequestInformation read the properties and relationships of a resourceConnection object. func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 5dd534f2ba4..3835e7f0041 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 updatableAsset object. +// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties of an azureADDevice object. type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,10 +54,10 @@ func NewWindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. +// Delete delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered from the deployment service and automatically unenrolled from management by the service for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,10 +73,10 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(c } return nil } -// Get read the properties and relationships of an updatableAsset object. +// Get read the properties of an azureADDevice object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-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 { @@ -130,7 +130,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Patch(ct } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.UpdatableAssetable), nil } -// ToDeleteRequestInformation delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. +// ToDeleteRequestInformation delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered from the deployment service and automatically unenrolled from management by the service for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup. func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -140,7 +140,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDelete requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an updatableAsset object. +// ToGetRequestInformation read the properties of an azureADDevice object. func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 6cdc212c749..8c98c70a2e6 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 @@ -95,10 +95,10 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// Patch update the properties of a complianceChange object. +// Patch update the properties of a contentApproval object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-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 { @@ -140,7 +140,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a complianceChange object. +// ToPatchRequestInformation update the properties of a contentApproval object. func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/chats/item_messages_request_builder.go b/chats/item_messages_request_builder.go index 92f469f5f1a..424d6a60eb4 100644 --- a/chats/item_messages_request_builder.go +++ b/chats/item_messages_request_builder.go @@ -100,10 +100,10 @@ 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. // [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 { @@ -135,7 +135,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. func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go new file mode 100644 index 00000000000..8b9ee25aef1 --- /dev/null +++ b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go @@ -0,0 +1,382 @@ +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" +) + +// VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody +type VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody instantiates a new VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody and sets the default values. +func NewVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody()(*VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) { + m := &VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilter(val) + } + return nil + } + res["groupBy"] = 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.SetGroupBy(res) + } + return nil + } + res["orderBy"] = 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.SetOrderBy(res) + } + return nil + } + res["reportName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPCPerformanceReportName) + if err != nil { + return err + } + if val != nil { + m.SetReportName(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCPerformanceReportName)) + } + return nil + } + res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSearch(val) + } + return nil + } + res["select"] = 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.SetSelectEscaped(res) + } + return nil + } + res["skip"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSkip(val) + } + return nil + } + res["top"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTop(val) + } + return nil + } + return res +} +// GetFilter gets the filter property value. The filter property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetFilter()(*string) { + val, err := m.GetBackingStore().Get("filter") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetGroupBy gets the groupBy property value. The groupBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetGroupBy()([]string) { + val, err := m.GetBackingStore().Get("groupBy") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetOrderBy gets the orderBy property value. The orderBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetOrderBy()([]string) { + val, err := m.GetBackingStore().Get("orderBy") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetReportName gets the reportName property value. The reportName property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCPerformanceReportName) { + val, err := m.GetBackingStore().Get("reportName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCPerformanceReportName) + } + return nil +} +// GetSearch gets the search property value. The search property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetSearch()(*string) { + val, err := m.GetBackingStore().Get("search") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSelectEscaped gets the select property value. The select property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetSelectEscaped()([]string) { + val, err := m.GetBackingStore().Get("selectEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSkip gets the skip property value. The skip property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetSkip()(*int32) { + val, err := m.GetBackingStore().Get("skip") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetTop gets the top property value. The top property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetTop()(*int32) { + val, err := m.GetBackingStore().Get("top") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filter", m.GetFilter()) + if err != nil { + return err + } + } + if m.GetGroupBy() != nil { + err := writer.WriteCollectionOfStringValues("groupBy", m.GetGroupBy()) + if err != nil { + return err + } + } + if m.GetOrderBy() != nil { + err := writer.WriteCollectionOfStringValues("orderBy", m.GetOrderBy()) + if err != nil { + return err + } + } + if m.GetReportName() != nil { + cast := (*m.GetReportName()).String() + err := writer.WriteStringValue("reportName", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("search", m.GetSearch()) + if err != nil { + return err + } + } + if m.GetSelectEscaped() != nil { + err := writer.WriteCollectionOfStringValues("select", m.GetSelectEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("skip", m.GetSkip()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("top", m.GetTop()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetFilter sets the filter property value. The filter property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetFilter(value *string)() { + err := m.GetBackingStore().Set("filter", value) + if err != nil { + panic(err) + } +} +// SetGroupBy sets the groupBy property value. The groupBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetGroupBy(value []string)() { + err := m.GetBackingStore().Set("groupBy", value) + if err != nil { + panic(err) + } +} +// SetOrderBy sets the orderBy property value. The orderBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetOrderBy(value []string)() { + err := m.GetBackingStore().Set("orderBy", value) + if err != nil { + panic(err) + } +} +// SetReportName sets the reportName property value. The reportName property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCPerformanceReportName)() { + err := m.GetBackingStore().Set("reportName", value) + if err != nil { + panic(err) + } +} +// SetSearch sets the search property value. The search property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetSearch(value *string)() { + err := m.GetBackingStore().Set("search", value) + if err != nil { + panic(err) + } +} +// SetSelectEscaped sets the select property value. The select property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetSelectEscaped(value []string)() { + err := m.GetBackingStore().Set("selectEscaped", value) + if err != nil { + panic(err) + } +} +// SetSkip sets the skip property value. The skip property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetSkip(value *int32)() { + err := m.GetBackingStore().Set("skip", value) + if err != nil { + panic(err) + } +} +// SetTop sets the top property value. The top property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetTop(value *int32)() { + err := m.GetBackingStore().Set("top", value) + if err != nil { + panic(err) + } +} +// VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable +type VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFilter()(*string) + GetGroupBy()([]string) + GetOrderBy()([]string) + GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCPerformanceReportName) + GetSearch()(*string) + GetSelectEscaped()([]string) + GetSkip()(*int32) + GetTop()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFilter(value *string)() + SetGroupBy(value []string)() + SetOrderBy(value []string)() + SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCPerformanceReportName)() + SetSearch(value *string)() + SetSelectEscaped(value []string)() + SetSkip(value *int32)() + SetTop(value *int32)() +} diff --git a/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go new file mode 100644 index 00000000000..07eced1e2a9 --- /dev/null +++ b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go @@ -0,0 +1,69 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder provides operations to call the getCloudPcPerformanceReport method. +type VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal instantiates a new GetCloudPcPerformanceReportRequestBuilder and sets the default values. +func NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + m := &VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/reports/getCloudPcPerformanceReport", pathParameters), + } + return m +} +// NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder instantiates a new GetCloudPcPerformanceReportRequestBuilder and sets the default values. +func NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action getCloudPcPerformanceReport +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) Post(ctx context.Context, body VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +} +// ToPostRequestInformation invoke action getCloudPcPerformanceReport +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, 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") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + return NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/virtual_endpoint_reports_get_inaccessible_cloud_pc_reports_post_request_body.go b/devicemanagement/virtual_endpoint_reports_get_inaccessible_cloud_pc_reports_post_request_body.go index 3a4a1d8abea..b23e53f13c1 100644 --- a/devicemanagement/virtual_endpoint_reports_get_inaccessible_cloud_pc_reports_post_request_body.go +++ b/devicemanagement/virtual_endpoint_reports_get_inaccessible_cloud_pc_reports_post_request_body.go @@ -2,6 +2,7 @@ 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" ) @@ -83,6 +84,16 @@ func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) Get } return nil } + res["reportName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPCInaccessibleReportName) + if err != nil { + return err + } + if val != nil { + m.SetReportName(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCInaccessibleReportName)) + } + return nil + } res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -164,6 +175,17 @@ func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) Get } return nil } +// GetReportName gets the reportName property value. The reportName property +func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCInaccessibleReportName) { + val, err := m.GetBackingStore().Get("reportName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCInaccessibleReportName) + } + return nil +} // GetSearch gets the search property value. The search property func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) GetSearch()(*string) { val, err := m.GetBackingStore().Get("search") @@ -228,6 +250,13 @@ func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) Ser return err } } + if m.GetReportName() != nil { + cast := (*m.GetReportName()).String() + err := writer.WriteStringValue("reportName", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("search", m.GetSearch()) if err != nil { @@ -292,6 +321,13 @@ func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) Set panic(err) } } +// SetReportName sets the reportName property value. The reportName property +func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCInaccessibleReportName)() { + err := m.GetBackingStore().Set("reportName", value) + if err != nil { + panic(err) + } +} // SetSearch sets the search property value. The search property func (m *VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBody) SetSearch(value *string)() { err := m.GetBackingStore().Set("search", value) @@ -329,6 +365,7 @@ type VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBodyable inte GetFilter()(*string) GetGroupBy()([]string) GetOrderBy()([]string) + GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCInaccessibleReportName) GetSearch()(*string) GetSelectEscaped()([]string) GetSkip()(*int32) @@ -337,6 +374,7 @@ type VirtualEndpointReportsGetInaccessibleCloudPcReportsPostRequestBodyable inte SetFilter(value *string)() SetGroupBy(value []string)() SetOrderBy(value []string)() + SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCInaccessibleReportName)() SetSearch(value *string)() SetSelectEscaped(value []string)() SetSkip(value *int32)() diff --git a/devicemanagement/virtual_endpoint_reports_request_builder.go b/devicemanagement/virtual_endpoint_reports_request_builder.go index d0113f267d2..dc850fccc9d 100644 --- a/devicemanagement/virtual_endpoint_reports_request_builder.go +++ b/devicemanagement/virtual_endpoint_reports_request_builder.go @@ -97,6 +97,10 @@ func (m *VirtualEndpointReportsRequestBuilder) Get(ctx context.Context, requestC func (m *VirtualEndpointReportsRequestBuilder) GetActionStatusReports()(*VirtualEndpointReportsGetActionStatusReportsRequestBuilder) { return NewVirtualEndpointReportsGetActionStatusReportsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetCloudPcPerformanceReport provides operations to call the getCloudPcPerformanceReport method. +func (m *VirtualEndpointReportsRequestBuilder) GetCloudPcPerformanceReport()(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + return NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GetCloudPcRecommendationReports provides operations to call the getCloudPcRecommendationReports method. func (m *VirtualEndpointReportsRequestBuilder) GetCloudPcRecommendationReports()(*VirtualEndpointReportsGetCloudPcRecommendationReportsRequestBuilder) { return NewVirtualEndpointReportsGetCloudPcRecommendationReportsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/drives/item_items_drive_item_item_request_builder.go b/drives/item_items_drive_item_item_request_builder.go index 25be1a9f622..a33430b8c58 100644 --- a/drives/item_items_drive_item_item_request_builder.go +++ b/drives/item_items_drive_item_item_request_builder.go @@ -168,10 +168,10 @@ func (m *ItemItemsDriveItemItemRequestBuilder) LastModifiedByUser()(*ItemItemsIt func (m *ItemItemsDriveItemItemRequestBuilder) ListItem()(*ItemItemsItemListItemRequestBuilder) { return NewItemItemsItemListItemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. +// Patch to move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-move?view=graph-rest-1.0 func (m *ItemItemsDriveItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -245,7 +245,7 @@ func (m *ItemItemsDriveItemItemRequestBuilder) ToGetRequestInformation(ctx conte requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. +// ToPatchRequestInformation to move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. func (m *ItemItemsDriveItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/drives/item_items_item_retention_label_request_builder.go b/drives/item_items_item_retention_label_request_builder.go index 467cc55b39c..9637a5c4f16 100644 --- a/drives/item_items_item_retention_label_request_builder.go +++ b/drives/item_items_item_retention_label_request_builder.go @@ -92,10 +92,10 @@ 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. // [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 { @@ -137,7 +137,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. func (m *ItemItemsItemRetentionLabelRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 3146452c2ff..0a5035f492a 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,10 +31,10 @@ 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. // [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 { @@ -53,7 +53,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. func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != 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 69ad2ae0c96..00b83821a9d 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 @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Count()(*ItemItemsIt // Get retrieve a list of tablerow objects. // [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_worksheets_item_names_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go index f43a70b7cd7..bb13271ef2a 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,10 +31,10 @@ 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. // [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 { @@ -53,7 +53,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. func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != 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 2c7d6b12a10..c5ac9e13bee 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 @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Count( // Get retrieve a list of tablerow objects. // [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_items_item_workbook_worksheets_request_builder.go b/drives/item_items_item_workbook_worksheets_request_builder.go index 073d8c603f2..75500ddef93 100644 --- a/drives/item_items_item_workbook_worksheets_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsRequestBuilder) Count()(*ItemItemsItemWo // Get retrieve a list of worksheet objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-list-worksheets?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_list_items_item_create_link_post_request_body.go b/drives/item_list_items_item_create_link_post_request_body.go index ed608025189..46f141c656c 100644 --- a/drives/item_list_items_item_create_link_post_request_body.go +++ b/drives/item_list_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return res } +// GetMessage gets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d23 return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/employeeexperience/communities_community_item_request_builder.go b/employeeexperience/communities_community_item_request_builder.go new file mode 100644 index 00000000000..2067856c877 --- /dev/null +++ b/employeeexperience/communities_community_item_request_builder.go @@ -0,0 +1,162 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesCommunityItemRequestBuilder provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +type CommunitiesCommunityItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CommunitiesCommunityItemRequestBuilderGetQueryParameters read the properties and relationships of a community object. +type CommunitiesCommunityItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesCommunityItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCommunityItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesCommunityItemRequestBuilderGetQueryParameters +} +// CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCommunitiesCommunityItemRequestBuilderInternal instantiates a new CommunityItemRequestBuilder and sets the default values. +func NewCommunitiesCommunityItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCommunityItemRequestBuilder) { + m := &CommunitiesCommunityItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesCommunityItemRequestBuilder instantiates a new CommunityItemRequestBuilder and sets the default values. +func NewCommunitiesCommunityItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCommunityItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesCommunityItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property communities for employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of a community object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/community-get?view=graph-rest-1.0 +func (m *CommunitiesCommunityItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable), nil +} +// Group provides operations to manage the group property of the microsoft.graph.community entity. +func (m *CommunitiesCommunityItemRequestBuilder) Group()(*CommunitiesItemGroupRequestBuilder) { + return NewCommunitiesItemGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Owners provides operations to manage the owners property of the microsoft.graph.community entity. +func (m *CommunitiesCommunityItemRequestBuilder) Owners()(*CommunitiesItemOwnersRequestBuilder) { + return NewCommunitiesItemOwnersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property communities in employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable), nil +} +// ToDeleteRequestInformation delete navigation property communities for employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation read the properties and relationships of a community object. +func (m *CommunitiesCommunityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 communities in employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesCommunityItemRequestBuilder) WithUrl(rawUrl string)(*CommunitiesCommunityItemRequestBuilder) { + return NewCommunitiesCommunityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_count_request_builder.go b/employeeexperience/communities_count_request_builder.go new file mode 100644 index 00000000000..012680acec5 --- /dev/null +++ b/employeeexperience/communities_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesCountRequestBuilderGetQueryParameters +} +// NewCommunitiesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCountRequestBuilder) { + m := &CommunitiesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +func (m *CommunitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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. +func (m *CommunitiesCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesCountRequestBuilder) { + return NewCommunitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_group_request_builder.go b/employeeexperience/communities_item_group_request_builder.go new file mode 100644 index 00000000000..c14225897a9 --- /dev/null +++ b/employeeexperience/communities_item_group_request_builder.go @@ -0,0 +1,82 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemGroupRequestBuilder provides operations to manage the group property of the microsoft.graph.community entity. +type CommunitiesItemGroupRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemGroupRequestBuilderGetQueryParameters the Microsoft 365 group that manages the membership of this community. +type CommunitiesItemGroupRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesItemGroupRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemGroupRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemGroupRequestBuilderGetQueryParameters +} +// NewCommunitiesItemGroupRequestBuilderInternal instantiates a new GroupRequestBuilder and sets the default values. +func NewCommunitiesItemGroupRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupRequestBuilder) { + m := &CommunitiesItemGroupRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemGroupRequestBuilder instantiates a new GroupRequestBuilder and sets the default values. +func NewCommunitiesItemGroupRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemGroupRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the Microsoft 365 group that manages the membership of this community. +func (m *CommunitiesItemGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +func (m *CommunitiesItemGroupRequestBuilder) ServiceProvisioningErrors()(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the Microsoft 365 group that manages the membership of this community. +func (m *CommunitiesItemGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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. +func (m *CommunitiesItemGroupRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemGroupRequestBuilder) { + return NewCommunitiesItemGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go b/employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go new file mode 100644 index 00000000000..8015d1006b0 --- /dev/null +++ b/employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + m := &CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +func (m *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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. +func (m *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go b/employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go new file mode 100644 index 00000000000..ab3a8ea9d06 --- /dev/null +++ b/employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go @@ -0,0 +1,94 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \employeeExperience\communities\{community-id}\group\serviceProvisioningErrors +type CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +type CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetQueryParameters 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"` +} +// CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + m := &CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilder instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) Count()(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_count_request_builder.go b/employeeexperience/communities_item_owners_count_request_builder.go new file mode 100644 index 00000000000..ff27e9652bc --- /dev/null +++ b/employeeexperience/communities_item_owners_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesItemOwnersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesItemOwnersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersCountRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersCountRequestBuilder) { + m := &CommunitiesItemOwnersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesItemOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +func (m *CommunitiesItemOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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. +func (m *CommunitiesItemOwnersCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersCountRequestBuilder) { + return NewCommunitiesItemOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go b/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go new file mode 100644 index 00000000000..39dcb573c04 --- /dev/null +++ b/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go @@ -0,0 +1,118 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilder builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\mailboxSettings +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select. +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetQueryParameters +} +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal instantiates a new MailboxSettingsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + m := &CommunitiesItemOwnersItemMailboxSettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder instantiates a new MailboxSettingsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// Patch update property mailboxSettings value. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update property mailboxSettings value. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go b/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go new file mode 100644 index 00000000000..8245578f731 --- /dev/null +++ b/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + m := &CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go b/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go new file mode 100644 index 00000000000..270b1dbe18d --- /dev/null +++ b/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go @@ -0,0 +1,94 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\serviceProvisioningErrors +type CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +type CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetQueryParameters 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"` +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + m := &CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Count()(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_request_builder.go b/employeeexperience/communities_item_owners_request_builder.go new file mode 100644 index 00000000000..ef81db9c374 --- /dev/null +++ b/employeeexperience/communities_item_owners_request_builder.go @@ -0,0 +1,105 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersRequestBuilder provides operations to manage the owners property of the microsoft.graph.community entity. +type CommunitiesItemOwnersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersRequestBuilderGetQueryParameters the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +type CommunitiesItemOwnersRequestBuilderGetQueryParameters 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"` +} +// CommunitiesItemOwnersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersRequestBuilderGetQueryParameters +} +// ByUserId provides operations to manage the owners property of the microsoft.graph.community entity. +func (m *CommunitiesItemOwnersRequestBuilder) ByUserId(userId string)(*CommunitiesItemOwnersUserItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if userId != "" { + urlTplParams["user%2Did"] = userId + } + return NewCommunitiesItemOwnersUserItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewCommunitiesItemOwnersRequestBuilderInternal instantiates a new OwnersRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersRequestBuilder) { + m := &CommunitiesItemOwnersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersRequestBuilder instantiates a new OwnersRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesItemOwnersRequestBuilder) Count()(*CommunitiesItemOwnersCountRequestBuilder) { + return NewCommunitiesItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil +} +// ToGetRequestInformation the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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. +func (m *CommunitiesItemOwnersRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersRequestBuilder) { + return NewCommunitiesItemOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_user_item_request_builder.go b/employeeexperience/communities_item_owners_user_item_request_builder.go new file mode 100644 index 00000000000..fd2170c8b93 --- /dev/null +++ b/employeeexperience/communities_item_owners_user_item_request_builder.go @@ -0,0 +1,86 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersUserItemRequestBuilder provides operations to manage the owners property of the microsoft.graph.community entity. +type CommunitiesItemOwnersUserItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersUserItemRequestBuilderGetQueryParameters the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +type CommunitiesItemOwnersUserItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersUserItemRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersUserItemRequestBuilderInternal instantiates a new UserItemRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersUserItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersUserItemRequestBuilder) { + m := &CommunitiesItemOwnersUserItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersUserItemRequestBuilder instantiates a new UserItemRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersUserItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersUserItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil +} +// MailboxSettings the mailboxSettings property +func (m *CommunitiesItemOwnersUserItemRequestBuilder) MailboxSettings()(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +func (m *CommunitiesItemOwnersUserItemRequestBuilder) ServiceProvisioningErrors()(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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. +func (m *CommunitiesItemOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersUserItemRequestBuilder) { + return NewCommunitiesItemOwnersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_request_builder.go b/employeeexperience/communities_request_builder.go new file mode 100644 index 00000000000..d33de8d0338 --- /dev/null +++ b/employeeexperience/communities_request_builder.go @@ -0,0 +1,148 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesRequestBuilder provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +type CommunitiesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesRequestBuilderGetQueryParameters read the properties and relationships of a community object. +type CommunitiesRequestBuilderGetQueryParameters 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"` +} +// CommunitiesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesRequestBuilderGetQueryParameters +} +// CommunitiesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByCommunityId provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +func (m *CommunitiesRequestBuilder) ByCommunityId(communityId string)(*CommunitiesCommunityItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if communityId != "" { + urlTplParams["community%2Did"] = communityId + } + return NewCommunitiesCommunityItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewCommunitiesRequestBuilderInternal instantiates a new CommunitiesRequestBuilder and sets the default values. +func NewCommunitiesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesRequestBuilder) { + m := &CommunitiesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesRequestBuilder instantiates a new CommunitiesRequestBuilder and sets the default values. +func NewCommunitiesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesRequestBuilder) Count()(*CommunitiesCountRequestBuilder) { + return NewCommunitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get read the properties and relationships of a community object. +func (m *CommunitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunityCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunityCollectionResponseable), nil +} +// Post create a new community in Viva Engage. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/employeeexperience-post-communities?view=graph-rest-1.0 +func (m *CommunitiesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable), nil +} +// ToGetRequestInformation read the properties and relationships of a community object. +func (m *CommunitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create a new community in Viva Engage. +func (m *CommunitiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesRequestBuilder) WithUrl(rawUrl string)(*CommunitiesRequestBuilder) { + return NewCommunitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/employee_experience_request_builder.go b/employeeexperience/employee_experience_request_builder.go index 838146e36eb..3578871ce54 100644 --- a/employeeexperience/employee_experience_request_builder.go +++ b/employeeexperience/employee_experience_request_builder.go @@ -32,6 +32,10 @@ type EmployeeExperienceRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Communities provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +func (m *EmployeeExperienceRequestBuilder) Communities()(*CommunitiesRequestBuilder) { + return NewCommunitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewEmployeeExperienceRequestBuilderInternal instantiates a new EmployeeExperienceRequestBuilder and sets the default values. func NewEmployeeExperienceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EmployeeExperienceRequestBuilder) { m := &EmployeeExperienceRequestBuilder{ @@ -45,6 +49,10 @@ func NewEmployeeExperienceRequestBuilder(rawUrl string, requestAdapter i2ae4187f urlParams["request-raw-url"] = rawUrl return NewEmployeeExperienceRequestBuilderInternal(urlParams, requestAdapter) } +// EngagementAsyncOperations provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +func (m *EmployeeExperienceRequestBuilder) EngagementAsyncOperations()(*EngagementAsyncOperationsRequestBuilder) { + return NewEngagementAsyncOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get employeeExperience func (m *EmployeeExperienceRequestBuilder) Get(ctx context.Context, requestConfiguration *EmployeeExperienceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); diff --git a/employeeexperience/engagement_async_operations_count_request_builder.go b/employeeexperience/engagement_async_operations_count_request_builder.go new file mode 100644 index 00000000000..a19d84f570d --- /dev/null +++ b/employeeexperience/engagement_async_operations_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EngagementAsyncOperationsCountRequestBuilder provides operations to count the resources in the collection. +type EngagementAsyncOperationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EngagementAsyncOperationsCountRequestBuilderGetQueryParameters get the number of the resource +type EngagementAsyncOperationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EngagementAsyncOperationsCountRequestBuilderGetQueryParameters +} +// NewEngagementAsyncOperationsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsCountRequestBuilder) { + m := &EngagementAsyncOperationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/engagementAsyncOperations/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewEngagementAsyncOperationsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEngagementAsyncOperationsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *EngagementAsyncOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +func (m *EngagementAsyncOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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. +func (m *EngagementAsyncOperationsCountRequestBuilder) WithUrl(rawUrl string)(*EngagementAsyncOperationsCountRequestBuilder) { + return NewEngagementAsyncOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go b/employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go new file mode 100644 index 00000000000..59c32eb4b5c --- /dev/null +++ b/employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go @@ -0,0 +1,154 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetQueryParameters get an engagementAsyncOperation to track a long-running operation request. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetQueryParameters +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal instantiates a new EngagementAsyncOperationItemRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + m := &EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/engagementAsyncOperations/{engagementAsyncOperation%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder instantiates a new EngagementAsyncOperationItemRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get an engagementAsyncOperation to track a long-running operation request. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/engagementasyncoperation-get?view=graph-rest-1.0 +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable), nil +} +// Patch update the navigation property engagementAsyncOperations in employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable), nil +} +// ToDeleteRequestInformation delete navigation property engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get an engagementAsyncOperation to track a long-running operation request. +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 engagementAsyncOperations in employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) WithUrl(rawUrl string)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + return NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/engagement_async_operations_request_builder.go b/employeeexperience/engagement_async_operations_request_builder.go new file mode 100644 index 00000000000..44cc1f0e399 --- /dev/null +++ b/employeeexperience/engagement_async_operations_request_builder.go @@ -0,0 +1,145 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EngagementAsyncOperationsRequestBuilder provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +type EngagementAsyncOperationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EngagementAsyncOperationsRequestBuilderGetQueryParameters get an engagementAsyncOperation to track a long-running operation request. +type EngagementAsyncOperationsRequestBuilderGetQueryParameters 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"` +} +// EngagementAsyncOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EngagementAsyncOperationsRequestBuilderGetQueryParameters +} +// EngagementAsyncOperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByEngagementAsyncOperationId provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +func (m *EngagementAsyncOperationsRequestBuilder) ByEngagementAsyncOperationId(engagementAsyncOperationId string)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if engagementAsyncOperationId != "" { + urlTplParams["engagementAsyncOperation%2Did"] = engagementAsyncOperationId + } + return NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewEngagementAsyncOperationsRequestBuilderInternal instantiates a new EngagementAsyncOperationsRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsRequestBuilder) { + m := &EngagementAsyncOperationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/engagementAsyncOperations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewEngagementAsyncOperationsRequestBuilder instantiates a new EngagementAsyncOperationsRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEngagementAsyncOperationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *EngagementAsyncOperationsRequestBuilder) Count()(*EngagementAsyncOperationsCountRequestBuilder) { + return NewEngagementAsyncOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get an engagementAsyncOperation to track a long-running operation request. +func (m *EngagementAsyncOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *EngagementAsyncOperationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationCollectionResponseable), nil +} +// Post create new navigation property to engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable), nil +} +// ToGetRequestInformation get an engagementAsyncOperation to track a long-running operation request. +func (m *EngagementAsyncOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *EngagementAsyncOperationsRequestBuilder) WithUrl(rawUrl string)(*EngagementAsyncOperationsRequestBuilder) { + return NewEngagementAsyncOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 127b622ad7b..882a71d684b 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 @@ -18,7 +18,7 @@ type IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters read the properties and relationships of an industryDataConnector object. +// IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters read the properties and relationships of an azureDataLakeConnector object. type IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,10 +54,10 @@ func NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an industryDataConnector object. +// Delete delete an azureDataLakeConnector object. // [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 { @@ -73,10 +73,10 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Dele } return nil } -// Get read the properties and relationships of an industryDataConnector object. +// Get read the properties and relationships of an azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-get?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,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. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -135,7 +135,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an industryDataConnector object. +// ToGetRequestInformation read the properties and relationships of an azureDataLakeConnector object. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/external/industry_data_data_connectors_request_builder.go b/external/industry_data_data_connectors_request_builder.go index 86089bccffe..5f3b4b3a794 100644 --- a/external/industry_data_data_connectors_request_builder.go +++ b/external/industry_data_data_connectors_request_builder.go @@ -96,10 +96,10 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Get(ctx context.Context, requ } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorCollectionResponseable), nil } -// Post create a new industryDataConnector object. +// Post create a new azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -131,7 +131,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) ToGetRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new industryDataConnector object. +// ToPostRequestInformation create a new azureDataLakeConnector object. func (m *IndustryDataDataConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 8e8944013f8..17d207206d4 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 inboundFlow object. +// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFileFlow object. type IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -58,10 +58,10 @@ 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. // [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 { @@ -77,10 +77,10 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx conte } return nil } -// Get read the properties and relationships of an inboundFlow object. +// Get read the properties and relationships of an inboundFileFlow object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-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 { @@ -121,7 +121,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx contex } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToDeleteRequestInformation delete an inboundFlow object. +// ToDeleteRequestInformation delete an inboundFileFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -131,7 +131,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFlow object. +// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/external/industry_data_inbound_flows_request_builder.go b/external/industry_data_inbound_flows_request_builder.go index 393eaa08723..0115d635908 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 inboundFileFlow objects and their properties. +// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFlow objects and their properties. type IndustryDataInboundFlowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ 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 inboundFileFlow objects and their properties. +// Get get a list of the inboundFlow objects and their properties. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-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 { @@ -118,7 +118,7 @@ func (m *IndustryDataInboundFlowsRequestBuilder) Post(ctx context.Context, body } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToGetRequestInformation get a list of the inboundFileFlow objects and their properties. +// ToGetRequestInformation get a list of the inboundFlow objects and their properties. func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/graph_request_adapter.go b/graph_request_adapter.go index bc79f8fbdd4..97400273594 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.88.0", + GraphServiceLibraryVersion: "0.89.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -76,3 +76,4 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/item_calendar_calendar_view_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_attachments_request_builder.go index ba453de6a3f..815ed56ef12 100644 --- a/groups/item_calendar_calendar_view_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index d94c5609458..b297a856df7 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 2639c69f2a4..b0cbc023d19 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go index 643e733e981..afe00d29f7e 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 0743b5abe4f..0f934637379 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_attachments_request_builder.go b/groups/item_calendar_events_item_attachments_request_builder.go index 2ed33c50383..d8f9acd4c48 100644 --- a/groups/item_calendar_events_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Get(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go index 6a8032baea5..a8bbc686755 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index a79ba3b651e..0495aa9919c 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_instances_item_attachments_request_builder.go b/groups/item_calendar_events_item_instances_item_attachments_request_builder.go index 7729553a92f..8c40e3efafa 100644 --- a/groups/item_calendar_events_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index b5d7180a582..281f2a71cf6 100644 --- a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_attachments_request_builder.go b/groups/item_calendar_view_item_attachments_request_builder.go index ba51c365376..c9434122f47 100644 --- a/groups/item_calendar_view_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index e18a0c3d7fd..a3f56ed4ea5 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 21426a46f68..35b39de05a3 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_instances_item_attachments_request_builder.go b/groups/item_calendar_view_item_instances_item_attachments_request_builder.go index 143f854fc1e..a78a46fd551 100644 --- a/groups/item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index b233a206a57..921adc99cfc 100644 --- a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index 1fe42a4ef57..c7a6684b6a4 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -18,7 +18,7 @@ type ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemConversationsConversationItemRequestBuilderGetQueryParameters get a conversation object. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of conversation object. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -45,10 +45,10 @@ func NewItemConversationsConversationItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemConversationsConversationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a conversation object. +// Delete delete conversation. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -64,10 +64,10 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a conversation object. +// Get retrieve the properties and relationships of conversation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -90,7 +90,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Contex func (m *ItemConversationsConversationItemRequestBuilder) Threads()(*ItemConversationsItemThreadsRequestBuilder) { return NewItemConversationsItemThreadsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a conversation object. +// ToDeleteRequestInformation delete conversation. func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -100,7 +100,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a conversation object. +// ToGetRequestInformation retrieve the properties and relationships of conversation object. func (m *ItemConversationsConversationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 fabd02a4deb..dcc6bc26c96 100644 --- a/groups/item_conversations_item_threads_item_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemConversationsItemThreadsItemReplyRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// 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. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?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 *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 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. +// 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. 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) if requestConfiguration != nil { diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index b0032ede677..e043e40451e 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -94,10 +94,10 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationCollectionResponseable), nil } -// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. +// Post create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. // [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/group-post-conversations?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 { @@ -129,7 +129,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. +// ToPostRequestInformation create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_attachments_request_builder.go b/groups/item_events_item_attachments_request_builder.go index d0f9cbd0c3d..27cabfded8f 100644 --- a/groups/item_events_item_attachments_request_builder.go +++ b/groups/item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, reque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go index a0a4d333025..3a3fbb45f52 100644 --- a/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 0236da9f5be..9e2c8e30065 100644 --- a/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_instances_item_attachments_request_builder.go b/groups/item_events_item_instances_item_attachments_request_builder.go index db5898e46d1..b04d075d90c 100644 --- a/groups/item_events_item_instances_item_attachments_request_builder.go +++ b/groups/item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 82eb65d8f23..4b845a1faab 100644 --- a/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_planner_plans_item_archive_post_request_body.go b/groups/item_planner_plans_item_archive_post_request_body.go new file mode 100644 index 00000000000..fda56dd08f7 --- /dev/null +++ b/groups/item_planner_plans_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemArchivePostRequestBody +type ItemPlannerPlansItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemArchivePostRequestBody instantiates a new ItemPlannerPlansItemArchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemArchivePostRequestBody()(*ItemPlannerPlansItemArchivePostRequestBody) { + m := &ItemPlannerPlansItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemArchivePostRequestBodyable +type ItemPlannerPlansItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/groups/item_planner_plans_item_archive_request_builder.go b/groups/item_planner_plans_item_archive_request_builder.go new file mode 100644 index 00000000000..950b97391c1 --- /dev/null +++ b/groups/item_planner_plans_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemArchiveRequestBuilder provides operations to call the archive method. +type ItemPlannerPlansItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + m := &ItemPlannerPlansItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/archive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_item_unarchive_post_request_body.go b/groups/item_planner_plans_item_unarchive_post_request_body.go new file mode 100644 index 00000000000..675880fa5e2 --- /dev/null +++ b/groups/item_planner_plans_item_unarchive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemUnarchivePostRequestBody +type ItemPlannerPlansItemUnarchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemUnarchivePostRequestBody instantiates a new ItemPlannerPlansItemUnarchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemUnarchivePostRequestBody()(*ItemPlannerPlansItemUnarchivePostRequestBody) { + m := &ItemPlannerPlansItemUnarchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemUnarchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemUnarchivePostRequestBodyable +type ItemPlannerPlansItemUnarchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/groups/item_planner_plans_item_unarchive_request_builder.go b/groups/item_planner_plans_item_unarchive_request_builder.go new file mode 100644 index 00000000000..f2638d3d608 --- /dev/null +++ b/groups/item_planner_plans_item_unarchive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPlannerPlansItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + m := &ItemPlannerPlansItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_planner_plan_item_request_builder.go b/groups/item_planner_plans_planner_plan_item_request_builder.go index e31fcd87c00..8862222672c 100644 --- a/groups/item_planner_plans_planner_plan_item_request_builder.go +++ b/groups/item_planner_plans_planner_plan_item_request_builder.go @@ -41,6 +41,10 @@ type ItemPlannerPlansPlannerPlanItemRequestBuilderPatchRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Archive()(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Buckets provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Buckets()(*ItemPlannerPlansItemBucketsRequestBuilder) { return NewItemPlannerPlansItemBucketsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -161,6 +165,10 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToPatchRequestInformatio } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Unarchive()(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go b/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go index c47fad4354a..9c8d6a62e52 100644 --- a/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go +++ b/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeser } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeser } return res } +// GetMessage gets the message property value. The message property +func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(wri return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetExpiration panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/groups/item_team_channels_channel_item_request_builder.go b/groups/item_team_channels_channel_item_request_builder.go index 74aad6f824d..3dc23334635 100644 --- a/groups/item_team_channels_channel_item_request_builder.go +++ b/groups/item_team_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamChannelsChannelItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamChannelsChannelItemRequestBuilder) Archive()(*ItemTeamChannelsItemArchiveRequestBuilder) { + return NewItemTeamChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemTeamChannelsItemCompleteMigrationRequestBuilder) { return NewItemTeamChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *ItemTeamChannelsChannelItemRequestBuilder) ToPatchRequestInformation(ct } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamChannelsChannelItemRequestBuilder) Unarchive()(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsChannelItemRequestBuilder) { return NewItemTeamChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_channels_item_archive_post_request_body.go b/groups/item_team_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..5fe907dc8fd --- /dev/null +++ b/groups/item_team_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamChannelsItemArchivePostRequestBody +type ItemTeamChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamChannelsItemArchivePostRequestBody instantiates a new ItemTeamChannelsItemArchivePostRequestBody and sets the default values. +func NewItemTeamChannelsItemArchivePostRequestBody()(*ItemTeamChannelsItemArchivePostRequestBody) { + m := &ItemTeamChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamChannelsItemArchivePostRequestBodyable +type ItemTeamChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/groups/item_team_channels_item_archive_request_builder.go b/groups/item_team_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..934ede2a82a --- /dev/null +++ b/groups/item_team_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemArchiveRequestBuilder) { + m := &ItemTeamChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemTeamChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemArchiveRequestBuilder) { + return NewItemTeamChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_messages_request_builder.go b/groups/item_team_channels_item_messages_request_builder.go index 90888e061f0..eb3f7b9a8d1 100644 --- a/groups/item_team_channels_item_messages_request_builder.go +++ b/groups/item_team_channels_item_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemTeamChannelsItemMessagesRequestBuilder) Get(ctx context.Context, re } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *ItemTeamChannelsItemMessagesRequestBuilder) ToGetRequestInformation(ctx 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 channel. func (m *ItemTeamChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_team_channels_item_unarchive_request_builder.go b/groups/item_team_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..cc4db02b782 --- /dev/null +++ b/groups/item_team_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + m := &ItemTeamChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemTeamChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_archive_post_request_body.go b/groups/item_team_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..86da6552af9 --- /dev/null +++ b/groups/item_team_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamPrimaryChannelArchivePostRequestBody +type ItemTeamPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamPrimaryChannelArchivePostRequestBody instantiates a new ItemTeamPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemTeamPrimaryChannelArchivePostRequestBody()(*ItemTeamPrimaryChannelArchivePostRequestBody) { + m := &ItemTeamPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamPrimaryChannelArchivePostRequestBodyable +type ItemTeamPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/groups/item_team_primary_channel_archive_request_builder.go b/groups/item_team_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..44a1037602d --- /dev/null +++ b/groups/item_team_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + m := &ItemTeamPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_messages_request_builder.go b/groups/item_team_primary_channel_messages_request_builder.go index 6abe177e9a1..67da42f75f1 100644 --- a/groups/item_team_primary_channel_messages_request_builder.go +++ b/groups/item_team_primary_channel_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) Get(ctx context.Context, } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) ToGetRequestInformation(c 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 channel. func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_team_primary_channel_request_builder.go b/groups/item_team_primary_channel_request_builder.go index 07961124222..35be7054ab4 100644 --- a/groups/item_team_primary_channel_request_builder.go +++ b/groups/item_team_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamPrimaryChannelRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamPrimaryChannelRequestBuilder) Archive()(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamPrimaryChannelRequestBuilder) CompleteMigration()(*ItemTeamPrimaryChannelCompleteMigrationRequestBuilder) { return NewItemTeamPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *ItemTeamPrimaryChannelRequestBuilder) ToPatchRequestInformation(ctx con } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamPrimaryChannelRequestBuilder) Unarchive()(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelRequestBuilder) { return NewItemTeamPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_primary_channel_unarchive_request_builder.go b/groups/item_team_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..2320d9e87b1 --- /dev/null +++ b/groups/item_team_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemTeamPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_threads_conversation_thread_item_request_builder.go b/groups/item_threads_conversation_thread_item_request_builder.go index 843a2dd4930..b9cf93e4496 100644 --- a/groups/item_threads_conversation_thread_item_request_builder.go +++ b/groups/item_threads_conversation_thread_item_request_builder.go @@ -18,7 +18,7 @@ type ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a thread object. type ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -71,10 +71,10 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// Get get a thread object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// ToGetRequestInformation get a thread object. func (m *ItemThreadsConversationThreadItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_threads_item_reply_request_builder.go b/groups/item_threads_item_reply_request_builder.go index 660964b012c..00087f66373 100644 --- a/groups/item_threads_item_reply_request_builder.go +++ b/groups/item_threads_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemThreadsItemReplyRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// 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. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?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 *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 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. +// 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. 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) if requestConfiguration != nil { 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 fe02be9c018..4c3a9e94f11 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,10 +54,10 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a countryNamedLocation object. +// Delete delete a namedLocation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-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 { @@ -95,10 +95,10 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// Patch update the properties of an ipNamedLocation object. +// Patch update the properties of a countryNamedLocation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-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 { @@ -117,7 +117,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// ToDeleteRequestInformation delete a countryNamedLocation object. +// ToDeleteRequestInformation delete a namedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -140,7 +140,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an ipNamedLocation object. +// ToPatchRequestInformation update the properties of a countryNamedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go index d7096f62801..8c284963230 100644 --- a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go +++ b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go @@ -18,7 +18,7 @@ type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. +// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of a customAuthenticationExtension object. type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return nil } -// Get read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. +// Get read the properties and relationships of a customAuthenticationExtension object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/customauthenticationextension-get?view=graph-rest-1.0 func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAuthenticationExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. +// ToGetRequestInformation read the properties and relationships of a customAuthenticationExtension object. func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 e693f682bac..d92a50eb7e6 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 accessPackageAssignmentRequestWorkflowExtension object. +// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -71,11 +71,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return nil } -// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-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 { @@ -94,11 +94,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable), nil } -// Patch update the properties of an accessPackageAssignmentRequestWorkflowExtension object. +// Patch update the properties of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -128,7 +128,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,7 +142,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an accessPackageAssignmentRequestWorkflowExtension object. +// ToPatchRequestInformation update the properties of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) 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 5369dc4b1b3..cf748aa2d43 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,11 +54,11 @@ func NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflo urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. +// Delete delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-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 { @@ -120,7 +120,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAccessPackageWorkflowExtensionable), nil } -// ToDeleteRequestInformation delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. +// ToDeleteRequestInformation delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go index 4676d07ef42..437d11461a8 100644 --- a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go +++ b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go @@ -18,7 +18,7 @@ type TermsOfUseAgreementsAgreementItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an agreement object. +// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve all files related to an agreement. This includes the default file and all localized files. type TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -85,10 +85,10 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) File()(*TermsOfUseAgre func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Files()(*TermsOfUseAgreementsItemFilesRequestBuilder) { return NewTermsOfUseAgreementsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of an agreement object. +// Get retrieve all files related to an agreement. This includes the default file and all localized files. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Agreementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -139,7 +139,7 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an agreement object. +// ToGetRequestInformation retrieve all files related to an agreement. This includes the default file and all localized files. func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/identityprotection/risk_detections_risk_detection_item_request_builder.go b/identityprotection/risk_detections_risk_detection_item_request_builder.go index 9a6c7437a7a..3c55d3e4077 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,10 +70,10 @@ 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. // [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 { @@ -121,7 +121,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. func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/kiota-lock.json b/kiota-lock.json index 03a8fe0b255..71d247a19fa 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "DC57A2D50E23FE2A10E02407633A69934DF56EF9CB84F56E4EB061BEF532C865C8A09534F8C367D43F50BB8E2F04F442BEE05C339EAFAAF98BCEB25CAE4C6BF3", + "descriptionHash": "16191D3BD2C02717F56F431CFC515B97524823B60770FDDB3FA4192303A914FED84C21755DE87075EA546F09ECD719E7E2F5D916580247464AC6962EE81D1FE6", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.10.0", diff --git a/models/admin.go b/models/admin.go index eca4f906914..192a5e3238d 100644 --- a/models/admin.go +++ b/models/admin.go @@ -114,6 +114,16 @@ func (m *Admin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["microsoft365Apps"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminMicrosoft365AppsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMicrosoft365Apps(val.(AdminMicrosoft365Appsable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -197,6 +207,17 @@ func (m *Admin) GetForms()(AdminFormsable) { } return nil } +// GetMicrosoft365Apps gets the microsoft365Apps property value. A container for the Microsoft 365 apps admin functionality. +func (m *Admin) GetMicrosoft365Apps()(AdminMicrosoft365Appsable) { + val, err := m.GetBackingStore().Get("microsoft365Apps") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminMicrosoft365Appsable) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *Admin) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -300,6 +321,12 @@ func (m *Admin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err := writer.WriteObjectValue("microsoft365Apps", m.GetMicrosoft365Apps()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -389,6 +416,13 @@ func (m *Admin) SetForms(value AdminFormsable)() { panic(err) } } +// SetMicrosoft365Apps sets the microsoft365Apps property value. A container for the Microsoft 365 apps admin functionality. +func (m *Admin) SetMicrosoft365Apps(value AdminMicrosoft365Appsable)() { + err := m.GetBackingStore().Set("microsoft365Apps", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *Admin) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -448,6 +482,7 @@ type Adminable interface { GetDynamics()(AdminDynamicsable) GetEdge()(Edgeable) GetForms()(AdminFormsable) + GetMicrosoft365Apps()(AdminMicrosoft365Appsable) GetOdataType()(*string) GetPeople()(PeopleAdminSettingsable) GetReportSettings()(AdminReportSettingsable) @@ -460,6 +495,7 @@ type Adminable interface { SetDynamics(value AdminDynamicsable)() SetEdge(value Edgeable)() SetForms(value AdminFormsable)() + SetMicrosoft365Apps(value AdminMicrosoft365Appsable)() SetOdataType(value *string)() SetPeople(value PeopleAdminSettingsable)() SetReportSettings(value AdminReportSettingsable)() @@ -468,73 +504,3 @@ type Adminable interface { SetTodo(value AdminTodoable)() SetWindows(value AdminWindowsable)() } - -// AdminWindows -type AdminWindows struct { - Entity -} -// NewAdminWindows instantiates a new adminWindows and sets the default values. -func NewAdminWindows()(*AdminWindows) { - m := &AdminWindows{ - Entity: *NewEntity(), - } - return m -} -// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAdminWindows(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetUpdates(val.(AdminWindowsUpdatesable)) - } - return nil - } - return res -} -// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. -func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) { - val, err := m.GetBackingStore().Get("updates") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminWindowsUpdatesable) - } - return nil -} -// Serialize serializes information the current object -func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteObjectValue("updates", m.GetUpdates()) - if err != nil { - return err - } - } - return nil -} -// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. -func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() { - err := m.GetBackingStore().Set("updates", value) - if err != nil { - panic(err) - } -} -// AdminWindowsable -type AdminWindowsable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUpdates()(AdminWindowsUpdatesable) - SetUpdates(value AdminWindowsUpdatesable)() -} diff --git a/models/admin_microsoft365_apps.go b/models/admin_microsoft365_apps.go new file mode 100644 index 00000000000..469c64c2f9d --- /dev/null +++ b/models/admin_microsoft365_apps.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AdminMicrosoft365Apps +type AdminMicrosoft365Apps struct { + Entity +} +// NewAdminMicrosoft365Apps instantiates a new adminMicrosoft365Apps and sets the default values. +func NewAdminMicrosoft365Apps()(*AdminMicrosoft365Apps) { + m := &AdminMicrosoft365Apps{ + Entity: *NewEntity(), + } + return m +} +// CreateAdminMicrosoft365AppsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdminMicrosoft365AppsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminMicrosoft365Apps(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdminMicrosoft365Apps) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["installationOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateM365AppsInstallationOptionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInstallationOptions(val.(M365AppsInstallationOptionsable)) + } + return nil + } + return res +} +// GetInstallationOptions gets the installationOptions property value. A container for tenant-level settings for Microsoft 365 applications. +func (m *AdminMicrosoft365Apps) GetInstallationOptions()(M365AppsInstallationOptionsable) { + val, err := m.GetBackingStore().Get("installationOptions") + if err != nil { + panic(err) + } + if val != nil { + return val.(M365AppsInstallationOptionsable) + } + return nil +} +// Serialize serializes information the current object +func (m *AdminMicrosoft365Apps) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("installationOptions", m.GetInstallationOptions()) + if err != nil { + return err + } + } + return nil +} +// SetInstallationOptions sets the installationOptions property value. A container for tenant-level settings for Microsoft 365 applications. +func (m *AdminMicrosoft365Apps) SetInstallationOptions(value M365AppsInstallationOptionsable)() { + err := m.GetBackingStore().Set("installationOptions", value) + if err != nil { + panic(err) + } +} +// AdminMicrosoft365Appsable +type AdminMicrosoft365Appsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetInstallationOptions()(M365AppsInstallationOptionsable) + SetInstallationOptions(value M365AppsInstallationOptionsable)() +} diff --git a/models/admin_windows.go b/models/admin_windows.go new file mode 100644 index 00000000000..cdd938a9b06 --- /dev/null +++ b/models/admin_windows.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AdminWindows +type AdminWindows struct { + Entity +} +// NewAdminWindows instantiates a new adminWindows and sets the default values. +func NewAdminWindows()(*AdminWindows) { + m := &AdminWindows{ + Entity: *NewEntity(), + } + return m +} +// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminWindows(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUpdates(val.(AdminWindowsUpdatesable)) + } + return nil + } + return res +} +// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. +func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) { + val, err := m.GetBackingStore().Get("updates") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminWindowsUpdatesable) + } + return nil +} +// Serialize serializes information the current object +func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("updates", m.GetUpdates()) + if err != nil { + return err + } + } + return nil +} +// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. +func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() { + err := m.GetBackingStore().Set("updates", value) + if err != nil { + panic(err) + } +} +// AdminWindowsable +type AdminWindowsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUpdates()(AdminWindowsUpdatesable) + SetUpdates(value AdminWindowsUpdatesable)() +} diff --git a/models/apps_installation_options_for_mac.go b/models/apps_installation_options_for_mac.go new file mode 100644 index 00000000000..65a8fb2c39f --- /dev/null +++ b/models/apps_installation_options_for_mac.go @@ -0,0 +1,182 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// AppsInstallationOptionsForMac +type AppsInstallationOptionsForMac struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAppsInstallationOptionsForMac instantiates a new appsInstallationOptionsForMac and sets the default values. +func NewAppsInstallationOptionsForMac()(*AppsInstallationOptionsForMac) { + m := &AppsInstallationOptionsForMac{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAppsInstallationOptionsForMacFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAppsInstallationOptionsForMacFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAppsInstallationOptionsForMac(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AppsInstallationOptionsForMac) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForMac) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AppsInstallationOptionsForMac) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isMicrosoft365AppsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMicrosoft365AppsEnabled(val) + } + return nil + } + res["isSkypeForBusinessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSkypeForBusinessEnabled(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 +} +// GetIsMicrosoft365AppsEnabled gets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps on their MAC devices. The default value is true. +func (m *AppsInstallationOptionsForMac) GetIsMicrosoft365AppsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isMicrosoft365AppsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsSkypeForBusinessEnabled gets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business on their MAC devices running OS X El Capitan 10.11 or later. The default value is true. +func (m *AppsInstallationOptionsForMac) GetIsSkypeForBusinessEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isSkypeForBusinessEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForMac) 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 *AppsInstallationOptionsForMac) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isMicrosoft365AppsEnabled", m.GetIsMicrosoft365AppsEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isSkypeForBusinessEnabled", m.GetIsSkypeForBusinessEnabled()) + 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 *AppsInstallationOptionsForMac) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForMac) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsMicrosoft365AppsEnabled sets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps on their MAC devices. The default value is true. +func (m *AppsInstallationOptionsForMac) SetIsMicrosoft365AppsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isMicrosoft365AppsEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsSkypeForBusinessEnabled sets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business on their MAC devices running OS X El Capitan 10.11 or later. The default value is true. +func (m *AppsInstallationOptionsForMac) SetIsSkypeForBusinessEnabled(value *bool)() { + err := m.GetBackingStore().Set("isSkypeForBusinessEnabled", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForMac) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// AppsInstallationOptionsForMacable +type AppsInstallationOptionsForMacable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsMicrosoft365AppsEnabled()(*bool) + GetIsSkypeForBusinessEnabled()(*bool) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsMicrosoft365AppsEnabled(value *bool)() + SetIsSkypeForBusinessEnabled(value *bool)() + SetOdataType(value *string)() +} diff --git a/models/apps_installation_options_for_windows.go b/models/apps_installation_options_for_windows.go new file mode 100644 index 00000000000..914471a6d7c --- /dev/null +++ b/models/apps_installation_options_for_windows.go @@ -0,0 +1,254 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// AppsInstallationOptionsForWindows +type AppsInstallationOptionsForWindows struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAppsInstallationOptionsForWindows instantiates a new appsInstallationOptionsForWindows and sets the default values. +func NewAppsInstallationOptionsForWindows()(*AppsInstallationOptionsForWindows) { + m := &AppsInstallationOptionsForWindows{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAppsInstallationOptionsForWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAppsInstallationOptionsForWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAppsInstallationOptionsForWindows(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AppsInstallationOptionsForWindows) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForWindows) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AppsInstallationOptionsForWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isMicrosoft365AppsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMicrosoft365AppsEnabled(val) + } + return nil + } + res["isProjectEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsProjectEnabled(val) + } + return nil + } + res["isSkypeForBusinessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSkypeForBusinessEnabled(val) + } + return nil + } + res["isVisioEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsVisioEnabled(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 +} +// GetIsMicrosoft365AppsEnabled gets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps, including Skype for Business, on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsMicrosoft365AppsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isMicrosoft365AppsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsProjectEnabled gets the isProjectEnabled property value. Specifies whether users can install Microsoft Project on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsProjectEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isProjectEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsSkypeForBusinessEnabled gets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business (standalone) on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsSkypeForBusinessEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isSkypeForBusinessEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsVisioEnabled gets the isVisioEnabled property value. Specifies whether users can install Visio on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsVisioEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isVisioEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForWindows) 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 *AppsInstallationOptionsForWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isMicrosoft365AppsEnabled", m.GetIsMicrosoft365AppsEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isProjectEnabled", m.GetIsProjectEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isSkypeForBusinessEnabled", m.GetIsSkypeForBusinessEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isVisioEnabled", m.GetIsVisioEnabled()) + 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 *AppsInstallationOptionsForWindows) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForWindows) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsMicrosoft365AppsEnabled sets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps, including Skype for Business, on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsMicrosoft365AppsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isMicrosoft365AppsEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsProjectEnabled sets the isProjectEnabled property value. Specifies whether users can install Microsoft Project on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsProjectEnabled(value *bool)() { + err := m.GetBackingStore().Set("isProjectEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsSkypeForBusinessEnabled sets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business (standalone) on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsSkypeForBusinessEnabled(value *bool)() { + err := m.GetBackingStore().Set("isSkypeForBusinessEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsVisioEnabled sets the isVisioEnabled property value. Specifies whether users can install Visio on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsVisioEnabled(value *bool)() { + err := m.GetBackingStore().Set("isVisioEnabled", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForWindows) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// AppsInstallationOptionsForWindowsable +type AppsInstallationOptionsForWindowsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsMicrosoft365AppsEnabled()(*bool) + GetIsProjectEnabled()(*bool) + GetIsSkypeForBusinessEnabled()(*bool) + GetIsVisioEnabled()(*bool) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsMicrosoft365AppsEnabled(value *bool)() + SetIsProjectEnabled(value *bool)() + SetIsSkypeForBusinessEnabled(value *bool)() + SetIsVisioEnabled(value *bool)() + SetOdataType(value *string)() +} diff --git a/models/apps_update_channel_type.go b/models/apps_update_channel_type.go new file mode 100644 index 00000000000..495c9088536 --- /dev/null +++ b/models/apps_update_channel_type.go @@ -0,0 +1,43 @@ +package models +import ( + "errors" +) +// +type AppsUpdateChannelType int + +const ( + CURRENT_APPSUPDATECHANNELTYPE AppsUpdateChannelType = iota + MONTHLYENTERPRISE_APPSUPDATECHANNELTYPE + SEMIANNUAL_APPSUPDATECHANNELTYPE + UNKNOWNFUTUREVALUE_APPSUPDATECHANNELTYPE +) + +func (i AppsUpdateChannelType) String() string { + return []string{"current", "monthlyEnterprise", "semiAnnual", "unknownFutureValue"}[i] +} +func ParseAppsUpdateChannelType(v string) (any, error) { + result := CURRENT_APPSUPDATECHANNELTYPE + switch v { + case "current": + result = CURRENT_APPSUPDATECHANNELTYPE + case "monthlyEnterprise": + result = MONTHLYENTERPRISE_APPSUPDATECHANNELTYPE + case "semiAnnual": + result = SEMIANNUAL_APPSUPDATECHANNELTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_APPSUPDATECHANNELTYPE + default: + return 0, errors.New("Unknown AppsUpdateChannelType value: " + v) + } + return &result, nil +} +func SerializeAppsUpdateChannelType(values []AppsUpdateChannelType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i AppsUpdateChannelType) isMultiValue() bool { + return false +} diff --git a/models/authentication_event_listener.go b/models/authentication_event_listener.go index 4bf684ff7db..96788030737 100644 --- a/models/authentication_event_listener.go +++ b/models/authentication_event_listener.go @@ -31,6 +31,10 @@ func CreateAuthenticationEventListenerFromDiscriminatorValue(parseNode i878a80d2 switch *mappingValue { case "#microsoft.graph.onAttributeCollectionListener": return NewOnAttributeCollectionListener(), nil + case "#microsoft.graph.onAttributeCollectionStartListener": + return NewOnAttributeCollectionStartListener(), nil + case "#microsoft.graph.onAttributeCollectionSubmitListener": + return NewOnAttributeCollectionSubmitListener(), nil case "#microsoft.graph.onAuthenticationMethodLoadStartListener": return NewOnAuthenticationMethodLoadStartListener(), nil case "#microsoft.graph.onInteractiveAuthFlowStartListener": diff --git a/models/azure_a_d_join_policy.go b/models/azure_a_d_join_policy.go index f2e6ac51b29..c8d644860a3 100644 --- a/models/azure_a_d_join_policy.go +++ b/models/azure_a_d_join_policy.go @@ -34,7 +34,7 @@ func (m *AzureADJoinPolicy) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowedToJoin gets the allowedToJoin property value. The allowedToJoin property +// GetAllowedToJoin gets the allowedToJoin property value. Determines if Microsoft Entra join is allowed. func (m *AzureADJoinPolicy) GetAllowedToJoin()(DeviceRegistrationMembershipable) { val, err := m.GetBackingStore().Get("allowedToJoin") if err != nil { @@ -84,7 +84,7 @@ func (m *AzureADJoinPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetIsAdminConfigurable gets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// GetIsAdminConfigurable gets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADJoinPolicy) GetIsAdminConfigurable()(*bool) { val, err := m.GetBackingStore().Get("isAdminConfigurable") if err != nil { @@ -141,7 +141,7 @@ func (m *AzureADJoinPolicy) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAllowedToJoin sets the allowedToJoin property value. The allowedToJoin property +// SetAllowedToJoin sets the allowedToJoin property value. Determines if Microsoft Entra join is allowed. func (m *AzureADJoinPolicy) SetAllowedToJoin(value DeviceRegistrationMembershipable)() { err := m.GetBackingStore().Set("allowedToJoin", value) if err != nil { @@ -152,7 +152,7 @@ func (m *AzureADJoinPolicy) SetAllowedToJoin(value DeviceRegistrationMembershipa func (m *AzureADJoinPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsAdminConfigurable sets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// SetIsAdminConfigurable sets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADJoinPolicy) SetIsAdminConfigurable(value *bool)() { err := m.GetBackingStore().Set("isAdminConfigurable", value) if err != nil { diff --git a/models/azure_a_d_registration_policy.go b/models/azure_a_d_registration_policy.go index e2c6b67e3eb..a08c63b2185 100644 --- a/models/azure_a_d_registration_policy.go +++ b/models/azure_a_d_registration_policy.go @@ -34,7 +34,7 @@ func (m *AzureADRegistrationPolicy) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowedToRegister gets the allowedToRegister property value. The allowedToRegister property +// GetAllowedToRegister gets the allowedToRegister property value. Determines if Microsoft Entra registered is allowed. func (m *AzureADRegistrationPolicy) GetAllowedToRegister()(DeviceRegistrationMembershipable) { val, err := m.GetBackingStore().Get("allowedToRegister") if err != nil { @@ -84,7 +84,7 @@ func (m *AzureADRegistrationPolicy) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetIsAdminConfigurable gets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// GetIsAdminConfigurable gets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADRegistrationPolicy) GetIsAdminConfigurable()(*bool) { val, err := m.GetBackingStore().Get("isAdminConfigurable") if err != nil { @@ -141,7 +141,7 @@ func (m *AzureADRegistrationPolicy) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAllowedToRegister sets the allowedToRegister property value. The allowedToRegister property +// SetAllowedToRegister sets the allowedToRegister property value. Determines if Microsoft Entra registered is allowed. func (m *AzureADRegistrationPolicy) SetAllowedToRegister(value DeviceRegistrationMembershipable)() { err := m.GetBackingStore().Set("allowedToRegister", value) if err != nil { @@ -152,7 +152,7 @@ func (m *AzureADRegistrationPolicy) SetAllowedToRegister(value DeviceRegistratio func (m *AzureADRegistrationPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsAdminConfigurable sets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// SetIsAdminConfigurable sets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADRegistrationPolicy) SetIsAdminConfigurable(value *bool)() { err := m.GetBackingStore().Set("isAdminConfigurable", value) if err != nil { diff --git a/models/channel.go b/models/channel.go index a3ddf5780d1..e41844c91ab 100644 --- a/models/channel.go +++ b/models/channel.go @@ -117,6 +117,16 @@ func (m *Channel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["isFavoriteByDefault"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -254,6 +264,17 @@ func (m *Channel) GetFilesFolder()(DriveItemable) { } return nil } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *Channel) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIsFavoriteByDefault gets the isFavoriteByDefault property value. Indicates whether the channel should automatically be marked 'favorite' for all members of the team. Can only be set programmatically with Create team. Default: false. func (m *Channel) GetIsFavoriteByDefault()(*bool) { val, err := m.GetBackingStore().Get("isFavoriteByDefault") @@ -400,6 +421,12 @@ func (m *Channel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isFavoriteByDefault", m.GetIsFavoriteByDefault()) if err != nil { @@ -522,6 +549,13 @@ func (m *Channel) SetFilesFolder(value DriveItemable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *Channel) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetIsFavoriteByDefault sets the isFavoriteByDefault property value. Indicates whether the channel should automatically be marked 'favorite' for all members of the team. Can only be set programmatically with Create team. Default: false. func (m *Channel) SetIsFavoriteByDefault(value *bool)() { err := m.GetBackingStore().Set("isFavoriteByDefault", value) @@ -601,6 +635,7 @@ type Channelable interface { GetDisplayName()(*string) GetEmail()(*string) GetFilesFolder()(DriveItemable) + GetIsArchived()(*bool) GetIsFavoriteByDefault()(*bool) GetMembers()([]ConversationMemberable) GetMembershipType()(*ChannelMembershipType) @@ -616,6 +651,7 @@ type Channelable interface { SetDisplayName(value *string)() SetEmail(value *string)() SetFilesFolder(value DriveItemable)() + SetIsArchived(value *bool)() SetIsFavoriteByDefault(value *bool)() SetMembers(value []ConversationMemberable)() SetMembershipType(value *ChannelMembershipType)() diff --git a/models/cloud_p_c_inaccessible_report_name.go b/models/cloud_p_c_inaccessible_report_name.go new file mode 100644 index 00000000000..33345c4280a --- /dev/null +++ b/models/cloud_p_c_inaccessible_report_name.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type CloudPCInaccessibleReportName int + +const ( + INACCESSIBLECLOUDPCREPORTS_CLOUDPCINACCESSIBLEREPORTNAME CloudPCInaccessibleReportName = iota + INACCESSIBLECLOUDPCTRENDREPORT_CLOUDPCINACCESSIBLEREPORTNAME + UNKNOWNFUTUREVALUE_CLOUDPCINACCESSIBLEREPORTNAME +) + +func (i CloudPCInaccessibleReportName) String() string { + return []string{"inaccessibleCloudPcReports", "inaccessibleCloudPcTrendReport", "unknownFutureValue"}[i] +} +func ParseCloudPCInaccessibleReportName(v string) (any, error) { + result := INACCESSIBLECLOUDPCREPORTS_CLOUDPCINACCESSIBLEREPORTNAME + switch v { + case "inaccessibleCloudPcReports": + result = INACCESSIBLECLOUDPCREPORTS_CLOUDPCINACCESSIBLEREPORTNAME + case "inaccessibleCloudPcTrendReport": + result = INACCESSIBLECLOUDPCTRENDREPORT_CLOUDPCINACCESSIBLEREPORTNAME + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCINACCESSIBLEREPORTNAME + default: + return 0, errors.New("Unknown CloudPCInaccessibleReportName value: " + v) + } + return &result, nil +} +func SerializeCloudPCInaccessibleReportName(values []CloudPCInaccessibleReportName) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CloudPCInaccessibleReportName) isMultiValue() bool { + return false +} diff --git a/models/cloud_p_c_performance_report_name.go b/models/cloud_p_c_performance_report_name.go new file mode 100644 index 00000000000..5fcbced6422 --- /dev/null +++ b/models/cloud_p_c_performance_report_name.go @@ -0,0 +1,37 @@ +package models +import ( + "errors" +) +// +type CloudPCPerformanceReportName int + +const ( + PERFORMANCETRENDREPORT_CLOUDPCPERFORMANCEREPORTNAME CloudPCPerformanceReportName = iota + UNKNOWNFUTUREVALUE_CLOUDPCPERFORMANCEREPORTNAME +) + +func (i CloudPCPerformanceReportName) String() string { + return []string{"performanceTrendReport", "unknownFutureValue"}[i] +} +func ParseCloudPCPerformanceReportName(v string) (any, error) { + result := PERFORMANCETRENDREPORT_CLOUDPCPERFORMANCEREPORTNAME + switch v { + case "performanceTrendReport": + result = PERFORMANCETRENDREPORT_CLOUDPCPERFORMANCEREPORTNAME + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCPERFORMANCEREPORTNAME + default: + return 0, errors.New("Unknown CloudPCPerformanceReportName value: " + v) + } + return &result, nil +} +func SerializeCloudPCPerformanceReportName(values []CloudPCPerformanceReportName) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CloudPCPerformanceReportName) isMultiValue() bool { + return false +} diff --git a/models/cloud_pc_audit_activity_operation_type.go b/models/cloud_pc_audit_activity_operation_type.go index 5519e2563ea..fabddba81e7 100644 --- a/models/cloud_pc_audit_activity_operation_type.go +++ b/models/cloud_pc_audit_activity_operation_type.go @@ -9,11 +9,11 @@ const ( CREATE_CLOUDPCAUDITACTIVITYOPERATIONTYPE CloudPcAuditActivityOperationType = iota DELETE_CLOUDPCAUDITACTIVITYOPERATIONTYPE PATCH_CLOUDPCAUDITACTIVITYOPERATIONTYPE - OTHER_CLOUDPCAUDITACTIVITYOPERATIONTYPE + UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYOPERATIONTYPE ) func (i CloudPcAuditActivityOperationType) String() string { - return []string{"create", "delete", "patch", "other"}[i] + return []string{"create", "delete", "patch", "unknownFutureValue"}[i] } func ParseCloudPcAuditActivityOperationType(v string) (any, error) { result := CREATE_CLOUDPCAUDITACTIVITYOPERATIONTYPE @@ -24,8 +24,8 @@ func ParseCloudPcAuditActivityOperationType(v string) (any, error) { result = DELETE_CLOUDPCAUDITACTIVITYOPERATIONTYPE case "patch": result = PATCH_CLOUDPCAUDITACTIVITYOPERATIONTYPE - case "other": - result = OTHER_CLOUDPCAUDITACTIVITYOPERATIONTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYOPERATIONTYPE default: return 0, errors.New("Unknown CloudPcAuditActivityOperationType value: " + v) } diff --git a/models/cloud_pc_audit_activity_result.go b/models/cloud_pc_audit_activity_result.go index 767d3abb742..7f29051b027 100644 --- a/models/cloud_pc_audit_activity_result.go +++ b/models/cloud_pc_audit_activity_result.go @@ -10,11 +10,11 @@ const ( CLIENTERROR_CLOUDPCAUDITACTIVITYRESULT FAILURE_CLOUDPCAUDITACTIVITYRESULT TIMEOUT_CLOUDPCAUDITACTIVITYRESULT - OTHER_CLOUDPCAUDITACTIVITYRESULT + UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYRESULT ) func (i CloudPcAuditActivityResult) String() string { - return []string{"success", "clientError", "failure", "timeout", "other"}[i] + return []string{"success", "clientError", "failure", "timeout", "unknownFutureValue"}[i] } func ParseCloudPcAuditActivityResult(v string) (any, error) { result := SUCCESS_CLOUDPCAUDITACTIVITYRESULT @@ -27,8 +27,8 @@ func ParseCloudPcAuditActivityResult(v string) (any, error) { result = FAILURE_CLOUDPCAUDITACTIVITYRESULT case "timeout": result = TIMEOUT_CLOUDPCAUDITACTIVITYRESULT - case "other": - result = OTHER_CLOUDPCAUDITACTIVITYRESULT + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYRESULT default: return 0, errors.New("Unknown CloudPcAuditActivityResult value: " + v) } diff --git a/models/cloud_pc_audit_actor_type.go b/models/cloud_pc_audit_actor_type.go index aef922c2fb9..135b226fecc 100644 --- a/models/cloud_pc_audit_actor_type.go +++ b/models/cloud_pc_audit_actor_type.go @@ -9,11 +9,11 @@ const ( ITPRO_CLOUDPCAUDITACTORTYPE CloudPcAuditActorType = iota APPLICATION_CLOUDPCAUDITACTORTYPE PARTNER_CLOUDPCAUDITACTORTYPE - UNKNOWN_CLOUDPCAUDITACTORTYPE + UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTORTYPE ) func (i CloudPcAuditActorType) String() string { - return []string{"itPro", "application", "partner", "unknown"}[i] + return []string{"itPro", "application", "partner", "unknownFutureValue"}[i] } func ParseCloudPcAuditActorType(v string) (any, error) { result := ITPRO_CLOUDPCAUDITACTORTYPE @@ -24,8 +24,8 @@ func ParseCloudPcAuditActorType(v string) (any, error) { result = APPLICATION_CLOUDPCAUDITACTORTYPE case "partner": result = PARTNER_CLOUDPCAUDITACTORTYPE - case "unknown": - result = UNKNOWN_CLOUDPCAUDITACTORTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTORTYPE default: return 0, errors.New("Unknown CloudPcAuditActorType value: " + v) } diff --git a/models/cloud_pc_audit_category.go b/models/cloud_pc_audit_category.go index 818ca4b5898..a271c8c92ee 100644 --- a/models/cloud_pc_audit_category.go +++ b/models/cloud_pc_audit_category.go @@ -7,19 +7,19 @@ type CloudPcAuditCategory int const ( CLOUDPC_CLOUDPCAUDITCATEGORY CloudPcAuditCategory = iota - OTHER_CLOUDPCAUDITCATEGORY + UNKNOWNFUTUREVALUE_CLOUDPCAUDITCATEGORY ) func (i CloudPcAuditCategory) String() string { - return []string{"cloudPC", "other"}[i] + return []string{"cloudPC", "unknownFutureValue"}[i] } func ParseCloudPcAuditCategory(v string) (any, error) { result := CLOUDPC_CLOUDPCAUDITCATEGORY switch v { case "cloudPC": result = CLOUDPC_CLOUDPCAUDITCATEGORY - case "other": - result = OTHER_CLOUDPCAUDITCATEGORY + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITCATEGORY default: return 0, errors.New("Unknown CloudPcAuditCategory value: " + v) } diff --git a/models/cloud_pc_bulk_action.go b/models/cloud_pc_bulk_action.go index a9951a59370..9e5b942ce6a 100644 --- a/models/cloud_pc_bulk_action.go +++ b/models/cloud_pc_bulk_action.go @@ -30,6 +30,8 @@ func CreateCloudPcBulkActionFromDiscriminatorValue(parseNode i878a80d2330e89d268 } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.cloudPcBulkModifyDiskEncryptionType": + return NewCloudPcBulkModifyDiskEncryptionType(), nil case "#microsoft.graph.cloudPcBulkPowerOff": return NewCloudPcBulkPowerOff(), nil case "#microsoft.graph.cloudPcBulkPowerOn": diff --git a/models/cloud_pc_bulk_modify_disk_encryption_type.go b/models/cloud_pc_bulk_modify_disk_encryption_type.go new file mode 100644 index 00000000000..41d0bd27afb --- /dev/null +++ b/models/cloud_pc_bulk_modify_disk_encryption_type.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkModifyDiskEncryptionType +type CloudPcBulkModifyDiskEncryptionType struct { + CloudPcBulkAction +} +// NewCloudPcBulkModifyDiskEncryptionType instantiates a new cloudPcBulkModifyDiskEncryptionType and sets the default values. +func NewCloudPcBulkModifyDiskEncryptionType()(*CloudPcBulkModifyDiskEncryptionType) { + m := &CloudPcBulkModifyDiskEncryptionType{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkModifyDiskEncryptionType" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkModifyDiskEncryptionTypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkModifyDiskEncryptionTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkModifyDiskEncryptionType(), nil +} +// GetDiskEncryptionType gets the diskEncryptionType property value. The diskEncryptionType property +func (m *CloudPcBulkModifyDiskEncryptionType) GetDiskEncryptionType()(*CloudPcDiskEncryptionType) { + val, err := m.GetBackingStore().Get("diskEncryptionType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcDiskEncryptionType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkModifyDiskEncryptionType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + res["diskEncryptionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcDiskEncryptionType) + if err != nil { + return err + } + if val != nil { + m.SetDiskEncryptionType(val.(*CloudPcDiskEncryptionType)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CloudPcBulkModifyDiskEncryptionType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + if m.GetDiskEncryptionType() != nil { + cast := (*m.GetDiskEncryptionType()).String() + err = writer.WriteStringValue("diskEncryptionType", &cast) + if err != nil { + return err + } + } + return nil +} +// SetDiskEncryptionType sets the diskEncryptionType property value. The diskEncryptionType property +func (m *CloudPcBulkModifyDiskEncryptionType) SetDiskEncryptionType(value *CloudPcDiskEncryptionType)() { + err := m.GetBackingStore().Set("diskEncryptionType", value) + if err != nil { + panic(err) + } +} +// CloudPcBulkModifyDiskEncryptionTypeable +type CloudPcBulkModifyDiskEncryptionTypeable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDiskEncryptionType()(*CloudPcDiskEncryptionType) + SetDiskEncryptionType(value *CloudPcDiskEncryptionType)() +} diff --git a/models/cloud_pc_device_image.go b/models/cloud_pc_device_image.go index 2b86b317d9d..b287c3639f2 100644 --- a/models/cloud_pc_device_image.go +++ b/models/cloud_pc_device_image.go @@ -31,6 +31,17 @@ func (m *CloudPcDeviceImage) GetDisplayName()(*string) { } return nil } +// GetErrorCode gets the errorCode property value. The errorCode property +func (m *CloudPcDeviceImage) GetErrorCode()(*CloudPcDeviceImageErrorCode) { + val, err := m.GetBackingStore().Get("errorCode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcDeviceImageErrorCode) + } + return nil +} // GetExpirationDate gets the expirationDate property value. The date the image became unavailable. func (m *CloudPcDeviceImage) GetExpirationDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("expirationDate") @@ -55,6 +66,16 @@ func (m *CloudPcDeviceImage) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcDeviceImageErrorCode) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(*CloudPcDeviceImageErrorCode)) + } + return nil + } res["expirationDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetDateOnlyValue() if err != nil { @@ -274,6 +295,13 @@ func (m *CloudPcDeviceImage) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + if m.GetErrorCode() != nil { + cast := (*m.GetErrorCode()).String() + err = writer.WriteStringValue("errorCode", &cast) + if err != nil { + return err + } + } { err = writer.WriteDateOnlyValue("expirationDate", m.GetExpirationDate()) if err != nil { @@ -346,6 +374,13 @@ func (m *CloudPcDeviceImage) SetDisplayName(value *string)() { panic(err) } } +// SetErrorCode sets the errorCode property value. The errorCode property +func (m *CloudPcDeviceImage) SetErrorCode(value *CloudPcDeviceImageErrorCode)() { + err := m.GetBackingStore().Set("errorCode", value) + if err != nil { + panic(err) + } +} // SetExpirationDate sets the expirationDate property value. The date the image became unavailable. func (m *CloudPcDeviceImage) SetExpirationDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("expirationDate", value) @@ -421,6 +456,7 @@ type CloudPcDeviceImageable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) + GetErrorCode()(*CloudPcDeviceImageErrorCode) GetExpirationDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOperatingSystem()(*string) @@ -432,6 +468,7 @@ type CloudPcDeviceImageable interface { GetStatusDetails()(*CloudPcDeviceImageStatusDetails) GetVersion()(*string) SetDisplayName(value *string)() + SetErrorCode(value *CloudPcDeviceImageErrorCode)() SetExpirationDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOperatingSystem(value *string)() diff --git a/models/cloud_pc_device_image_error_code.go b/models/cloud_pc_device_image_error_code.go new file mode 100644 index 00000000000..07dea689c50 --- /dev/null +++ b/models/cloud_pc_device_image_error_code.go @@ -0,0 +1,61 @@ +package models +import ( + "errors" +) +// +type CloudPcDeviceImageErrorCode int + +const ( + INTERNALSERVERERROR_CLOUDPCDEVICEIMAGEERRORCODE CloudPcDeviceImageErrorCode = iota + SOURCEIMAGENOTFOUND_CLOUDPCDEVICEIMAGEERRORCODE + OSVERSIONNOTSUPPORTED_CLOUDPCDEVICEIMAGEERRORCODE + SOURCEIMAGEINVALID_CLOUDPCDEVICEIMAGEERRORCODE + SOURCEIMAGENOTGENERALIZED_CLOUDPCDEVICEIMAGEERRORCODE + UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEERRORCODE + VMALREADYAZUREADJOINED_CLOUDPCDEVICEIMAGEERRORCODE + PAIDSOURCEIMAGENOTSUPPORT_CLOUDPCDEVICEIMAGEERRORCODE + SOURCEIMAGENOTSUPPORTCUSTOMIZEVMNAME_CLOUDPCDEVICEIMAGEERRORCODE + SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGEERRORCODE +) + +func (i CloudPcDeviceImageErrorCode) String() string { + return []string{"internalServerError", "sourceImageNotFound", "osVersionNotSupported", "sourceImageInvalid", "sourceImageNotGeneralized", "unknownFutureValue", "vmAlreadyAzureAdjoined", "paidSourceImageNotSupport", "sourceImageNotSupportCustomizeVMName", "sourceImageSizeExceedsLimitation"}[i] +} +func ParseCloudPcDeviceImageErrorCode(v string) (any, error) { + result := INTERNALSERVERERROR_CLOUDPCDEVICEIMAGEERRORCODE + switch v { + case "internalServerError": + result = INTERNALSERVERERROR_CLOUDPCDEVICEIMAGEERRORCODE + case "sourceImageNotFound": + result = SOURCEIMAGENOTFOUND_CLOUDPCDEVICEIMAGEERRORCODE + case "osVersionNotSupported": + result = OSVERSIONNOTSUPPORTED_CLOUDPCDEVICEIMAGEERRORCODE + case "sourceImageInvalid": + result = SOURCEIMAGEINVALID_CLOUDPCDEVICEIMAGEERRORCODE + case "sourceImageNotGeneralized": + result = SOURCEIMAGENOTGENERALIZED_CLOUDPCDEVICEIMAGEERRORCODE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEERRORCODE + case "vmAlreadyAzureAdjoined": + result = VMALREADYAZUREADJOINED_CLOUDPCDEVICEIMAGEERRORCODE + case "paidSourceImageNotSupport": + result = PAIDSOURCEIMAGENOTSUPPORT_CLOUDPCDEVICEIMAGEERRORCODE + case "sourceImageNotSupportCustomizeVMName": + result = SOURCEIMAGENOTSUPPORTCUSTOMIZEVMNAME_CLOUDPCDEVICEIMAGEERRORCODE + case "sourceImageSizeExceedsLimitation": + result = SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGEERRORCODE + default: + return 0, errors.New("Unknown CloudPcDeviceImageErrorCode value: " + v) + } + return &result, nil +} +func SerializeCloudPcDeviceImageErrorCode(values []CloudPcDeviceImageErrorCode) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CloudPcDeviceImageErrorCode) isMultiValue() bool { + return false +} diff --git a/models/cloud_pc_device_image_os_status.go b/models/cloud_pc_device_image_os_status.go index b860d79361d..4d289e78396 100644 --- a/models/cloud_pc_device_image_os_status.go +++ b/models/cloud_pc_device_image_os_status.go @@ -8,11 +8,12 @@ type CloudPcDeviceImageOsStatus int const ( SUPPORTED_CLOUDPCDEVICEIMAGEOSSTATUS CloudPcDeviceImageOsStatus = iota SUPPORTEDWITHWARNING_CLOUDPCDEVICEIMAGEOSSTATUS + UNKNOWN_CLOUDPCDEVICEIMAGEOSSTATUS UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEOSSTATUS ) func (i CloudPcDeviceImageOsStatus) String() string { - return []string{"supported", "supportedWithWarning", "unknownFutureValue"}[i] + return []string{"supported", "supportedWithWarning", "unknown", "unknownFutureValue"}[i] } func ParseCloudPcDeviceImageOsStatus(v string) (any, error) { result := SUPPORTED_CLOUDPCDEVICEIMAGEOSSTATUS @@ -21,6 +22,8 @@ func ParseCloudPcDeviceImageOsStatus(v string) (any, error) { result = SUPPORTED_CLOUDPCDEVICEIMAGEOSSTATUS case "supportedWithWarning": result = SUPPORTEDWITHWARNING_CLOUDPCDEVICEIMAGEOSSTATUS + case "unknown": + result = UNKNOWN_CLOUDPCDEVICEIMAGEOSSTATUS case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEOSSTATUS default: diff --git a/models/cloud_pc_device_image_status.go b/models/cloud_pc_device_image_status.go index 29c2e9c4dc3..23e4f026931 100644 --- a/models/cloud_pc_device_image_status.go +++ b/models/cloud_pc_device_image_status.go @@ -9,10 +9,11 @@ const ( PENDING_CLOUDPCDEVICEIMAGESTATUS CloudPcDeviceImageStatus = iota READY_CLOUDPCDEVICEIMAGESTATUS FAILED_CLOUDPCDEVICEIMAGESTATUS + UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUS ) func (i CloudPcDeviceImageStatus) String() string { - return []string{"pending", "ready", "failed"}[i] + return []string{"pending", "ready", "failed", "unknownFutureValue"}[i] } func ParseCloudPcDeviceImageStatus(v string) (any, error) { result := PENDING_CLOUDPCDEVICEIMAGESTATUS @@ -23,6 +24,8 @@ func ParseCloudPcDeviceImageStatus(v string) (any, error) { result = READY_CLOUDPCDEVICEIMAGESTATUS case "failed": result = FAILED_CLOUDPCDEVICEIMAGESTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUS default: return 0, errors.New("Unknown CloudPcDeviceImageStatus value: " + v) } diff --git a/models/cloud_pc_domain_join_configuration.go b/models/cloud_pc_domain_join_configuration.go index 17d5e32cdf1..40ef455f8fe 100644 --- a/models/cloud_pc_domain_join_configuration.go +++ b/models/cloud_pc_domain_join_configuration.go @@ -38,9 +38,30 @@ func (m *CloudPcDomainJoinConfiguration) GetAdditionalData()(map[string]any) { func (m *CloudPcDomainJoinConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetDomainJoinType gets the domainJoinType property value. The domainJoinType property +func (m *CloudPcDomainJoinConfiguration) GetDomainJoinType()(*CloudPcDomainJoinType) { + val, err := m.GetBackingStore().Get("domainJoinType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcDomainJoinType) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *CloudPcDomainJoinConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["domainJoinType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcDomainJoinType) + if err != nil { + return err + } + if val != nil { + m.SetDomainJoinType(val.(*CloudPcDomainJoinType)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -150,6 +171,13 @@ func (m *CloudPcDomainJoinConfiguration) GetTypeEscaped()(*CloudPcDomainJoinType } // Serialize serializes information the current object func (m *CloudPcDomainJoinConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetDomainJoinType() != nil { + cast := (*m.GetDomainJoinType()).String() + err := writer.WriteStringValue("domainJoinType", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -201,6 +229,13 @@ func (m *CloudPcDomainJoinConfiguration) SetAdditionalData(value map[string]any) func (m *CloudPcDomainJoinConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetDomainJoinType sets the domainJoinType property value. The domainJoinType property +func (m *CloudPcDomainJoinConfiguration) SetDomainJoinType(value *CloudPcDomainJoinType)() { + err := m.GetBackingStore().Set("domainJoinType", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *CloudPcDomainJoinConfiguration) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -242,12 +277,14 @@ type CloudPcDomainJoinConfigurationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDomainJoinType()(*CloudPcDomainJoinType) GetOdataType()(*string) GetOnPremisesConnectionId()(*string) GetRegionGroup()(*CloudPcRegionGroup) GetRegionName()(*string) GetTypeEscaped()(*CloudPcDomainJoinType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDomainJoinType(value *CloudPcDomainJoinType)() SetOdataType(value *string)() SetOnPremisesConnectionId(value *string)() SetRegionGroup(value *CloudPcRegionGroup)() diff --git a/models/cloud_pc_gallery_image.go b/models/cloud_pc_gallery_image.go index d0e6b1564ff..c4155c045c6 100644 --- a/models/cloud_pc_gallery_image.go +++ b/models/cloud_pc_gallery_image.go @@ -105,6 +105,16 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["offerName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOfferName(val) + } + return nil + } res["publisher"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -115,6 +125,16 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["publisherName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPublisherName(val) + } + return nil + } res["recommendedSku"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -155,6 +175,16 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["skuName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSkuName(val) + } + return nil + } res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetDateOnlyValue() if err != nil { @@ -199,6 +229,17 @@ func (m *CloudPcGalleryImage) GetOfferDisplayName()(*string) { } return nil } +// GetOfferName gets the offerName property value. The offerName property +func (m *CloudPcGalleryImage) GetOfferName()(*string) { + val, err := m.GetBackingStore().Get("offerName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPublisher gets the publisher property value. The publisher name of the gallery image. This value is passed to Azure to get the image resource. Read-only. func (m *CloudPcGalleryImage) GetPublisher()(*string) { val, err := m.GetBackingStore().Get("publisher") @@ -210,6 +251,17 @@ func (m *CloudPcGalleryImage) GetPublisher()(*string) { } return nil } +// GetPublisherName gets the publisherName property value. The publisherName property +func (m *CloudPcGalleryImage) GetPublisherName()(*string) { + val, err := m.GetBackingStore().Get("publisherName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRecommendedSku gets the recommendedSku property value. Recommended Cloud PC SKU for this gallery image. Read-only. func (m *CloudPcGalleryImage) GetRecommendedSku()(*string) { val, err := m.GetBackingStore().Get("recommendedSku") @@ -254,6 +306,17 @@ func (m *CloudPcGalleryImage) GetSkuDisplayName()(*string) { } return nil } +// GetSkuName gets the skuName property value. The skuName property +func (m *CloudPcGalleryImage) GetSkuName()(*string) { + val, err := m.GetBackingStore().Get("skuName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetStartDate gets the startDate property value. The date when the image becomes available. Read-only. func (m *CloudPcGalleryImage) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("startDate") @@ -312,12 +375,24 @@ func (m *CloudPcGalleryImage) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("offerName", m.GetOfferName()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("publisher", m.GetPublisher()) if err != nil { return err } } + { + err = writer.WriteStringValue("publisherName", m.GetPublisherName()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("recommendedSku", m.GetRecommendedSku()) if err != nil { @@ -342,6 +417,12 @@ func (m *CloudPcGalleryImage) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("skuName", m.GetSkuName()) + if err != nil { + return err + } + } { err = writer.WriteDateOnlyValue("startDate", m.GetStartDate()) if err != nil { @@ -392,6 +473,13 @@ func (m *CloudPcGalleryImage) SetOfferDisplayName(value *string)() { panic(err) } } +// SetOfferName sets the offerName property value. The offerName property +func (m *CloudPcGalleryImage) SetOfferName(value *string)() { + err := m.GetBackingStore().Set("offerName", value) + if err != nil { + panic(err) + } +} // SetPublisher sets the publisher property value. The publisher name of the gallery image. This value is passed to Azure to get the image resource. Read-only. func (m *CloudPcGalleryImage) SetPublisher(value *string)() { err := m.GetBackingStore().Set("publisher", value) @@ -399,6 +487,13 @@ func (m *CloudPcGalleryImage) SetPublisher(value *string)() { panic(err) } } +// SetPublisherName sets the publisherName property value. The publisherName property +func (m *CloudPcGalleryImage) SetPublisherName(value *string)() { + err := m.GetBackingStore().Set("publisherName", value) + if err != nil { + panic(err) + } +} // SetRecommendedSku sets the recommendedSku property value. Recommended Cloud PC SKU for this gallery image. Read-only. func (m *CloudPcGalleryImage) SetRecommendedSku(value *string)() { err := m.GetBackingStore().Set("recommendedSku", value) @@ -427,6 +522,13 @@ func (m *CloudPcGalleryImage) SetSkuDisplayName(value *string)() { panic(err) } } +// SetSkuName sets the skuName property value. The skuName property +func (m *CloudPcGalleryImage) SetSkuName(value *string)() { + err := m.GetBackingStore().Set("skuName", value) + if err != nil { + panic(err) + } +} // SetStartDate sets the startDate property value. The date when the image becomes available. Read-only. func (m *CloudPcGalleryImage) SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("startDate", value) @@ -450,11 +552,14 @@ type CloudPcGalleryImageable interface { GetExpirationDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetOffer()(*string) GetOfferDisplayName()(*string) + GetOfferName()(*string) GetPublisher()(*string) + GetPublisherName()(*string) GetRecommendedSku()(*string) GetSizeInGB()(*int32) GetSku()(*string) GetSkuDisplayName()(*string) + GetSkuName()(*string) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetStatus()(*CloudPcGalleryImageStatus) SetDisplayName(value *string)() @@ -462,11 +567,14 @@ type CloudPcGalleryImageable interface { SetExpirationDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetOffer(value *string)() SetOfferDisplayName(value *string)() + SetOfferName(value *string)() SetPublisher(value *string)() + SetPublisherName(value *string)() SetRecommendedSku(value *string)() SetSizeInGB(value *int32)() SetSku(value *string)() SetSkuDisplayName(value *string)() + SetSkuName(value *string)() SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetStatus(value *CloudPcGalleryImageStatus)() } diff --git a/models/cloud_pc_on_premises_connection.go b/models/cloud_pc_on_premises_connection.go index 333f63afec7..1070adc896c 100644 --- a/models/cloud_pc_on_premises_connection.go +++ b/models/cloud_pc_on_premises_connection.go @@ -63,6 +63,17 @@ func (m *CloudPcOnPremisesConnection) GetAlternateResourceUrl()(*string) { } return nil } +// GetConnectionType gets the connectionType property value. The connectionType property +func (m *CloudPcOnPremisesConnection) GetConnectionType()(*CloudPcOnPremisesConnectionType) { + val, err := m.GetBackingStore().Get("connectionType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcOnPremisesConnectionType) + } + return nil +} // GetDisplayName gets the displayName property value. The display name for the Azure network connection. func (m *CloudPcOnPremisesConnection) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -117,6 +128,16 @@ func (m *CloudPcOnPremisesConnection) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["connectionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcOnPremisesConnectionType) + if err != nil { + return err + } + if val != nil { + m.SetConnectionType(val.(*CloudPcOnPremisesConnectionType)) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -137,6 +158,16 @@ func (m *CloudPcOnPremisesConnection) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["healthCheckStatusDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCloudPcOnPremisesConnectionStatusDetailFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHealthCheckStatusDetail(val.(CloudPcOnPremisesConnectionStatusDetailable)) + } + return nil + } res["healthCheckStatusDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateCloudPcOnPremisesConnectionStatusDetailsFromDiscriminatorValue) if err != nil { @@ -276,6 +307,17 @@ func (m *CloudPcOnPremisesConnection) GetHealthCheckStatus()(*CloudPcOnPremisesC } return nil } +// GetHealthCheckStatusDetail gets the healthCheckStatusDetail property value. The healthCheckStatusDetail property +func (m *CloudPcOnPremisesConnection) GetHealthCheckStatusDetail()(CloudPcOnPremisesConnectionStatusDetailable) { + val, err := m.GetBackingStore().Get("healthCheckStatusDetail") + if err != nil { + panic(err) + } + if val != nil { + return val.(CloudPcOnPremisesConnectionStatusDetailable) + } + return nil +} // GetHealthCheckStatusDetails gets the healthCheckStatusDetails property value. The details of the connection's health checks and the corresponding results. 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) GetHealthCheckStatusDetails()(CloudPcOnPremisesConnectionStatusDetailsable) { val, err := m.GetBackingStore().Get("healthCheckStatusDetails") @@ -438,6 +480,13 @@ func (m *CloudPcOnPremisesConnection) Serialize(writer i878a80d2330e89d26896388a return err } } + if m.GetConnectionType() != nil { + cast := (*m.GetConnectionType()).String() + err = writer.WriteStringValue("connectionType", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -451,6 +500,12 @@ func (m *CloudPcOnPremisesConnection) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteObjectValue("healthCheckStatusDetail", m.GetHealthCheckStatusDetail()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("healthCheckStatusDetails", m.GetHealthCheckStatusDetails()) if err != nil { @@ -555,6 +610,13 @@ func (m *CloudPcOnPremisesConnection) SetAlternateResourceUrl(value *string)() { panic(err) } } +// SetConnectionType sets the connectionType property value. The connectionType property +func (m *CloudPcOnPremisesConnection) SetConnectionType(value *CloudPcOnPremisesConnectionType)() { + err := m.GetBackingStore().Set("connectionType", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The display name for the Azure network connection. func (m *CloudPcOnPremisesConnection) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -569,6 +631,13 @@ func (m *CloudPcOnPremisesConnection) SetHealthCheckStatus(value *CloudPcOnPremi panic(err) } } +// SetHealthCheckStatusDetail sets the healthCheckStatusDetail property value. The healthCheckStatusDetail property +func (m *CloudPcOnPremisesConnection) SetHealthCheckStatusDetail(value CloudPcOnPremisesConnectionStatusDetailable)() { + err := m.GetBackingStore().Set("healthCheckStatusDetail", value) + if err != nil { + panic(err) + } +} // SetHealthCheckStatusDetails sets the healthCheckStatusDetails property value. The details of the connection's health checks and the corresponding results. 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) SetHealthCheckStatusDetails(value CloudPcOnPremisesConnectionStatusDetailsable)() { err := m.GetBackingStore().Set("healthCheckStatusDetails", value) @@ -661,8 +730,10 @@ type CloudPcOnPremisesConnectionable interface { GetAdDomainPassword()(*string) GetAdDomainUsername()(*string) GetAlternateResourceUrl()(*string) + GetConnectionType()(*CloudPcOnPremisesConnectionType) GetDisplayName()(*string) GetHealthCheckStatus()(*CloudPcOnPremisesConnectionStatus) + GetHealthCheckStatusDetail()(CloudPcOnPremisesConnectionStatusDetailable) GetHealthCheckStatusDetails()(CloudPcOnPremisesConnectionStatusDetailsable) GetInUse()(*bool) GetManagedBy()(*CloudPcManagementService) @@ -679,8 +750,10 @@ type CloudPcOnPremisesConnectionable interface { SetAdDomainPassword(value *string)() SetAdDomainUsername(value *string)() SetAlternateResourceUrl(value *string)() + SetConnectionType(value *CloudPcOnPremisesConnectionType)() SetDisplayName(value *string)() SetHealthCheckStatus(value *CloudPcOnPremisesConnectionStatus)() + SetHealthCheckStatusDetail(value CloudPcOnPremisesConnectionStatusDetailable)() SetHealthCheckStatusDetails(value CloudPcOnPremisesConnectionStatusDetailsable)() SetInUse(value *bool)() SetManagedBy(value *CloudPcManagementService)() diff --git a/models/cloud_pc_on_premises_connection_health_check.go b/models/cloud_pc_on_premises_connection_health_check.go index 3973eb6bee4..8dfdc999be2 100644 --- a/models/cloud_pc_on_premises_connection_health_check.go +++ b/models/cloud_pc_on_premises_connection_health_check.go @@ -35,6 +35,17 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalData()(map[string] } return val.(map[string]any) } +// GetAdditionalDetail gets the additionalDetail property value. The additionalDetail property +func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetail()(*string) { + val, err := m.GetBackingStore().Get("additionalDetail") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetAdditionalDetails gets the additionalDetails property value. More details about the health check or the recommended action. func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetails()(*string) { val, err := m.GetBackingStore().Get("additionalDetails") @@ -97,6 +108,16 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetErrorType()(*CloudPcOnPremis // GetFieldDeserializers the deserialization information for the current model func (m *CloudPcOnPremisesConnectionHealthCheck) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["additionalDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAdditionalDetail(val) + } + return nil + } res["additionalDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -235,6 +256,12 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetStatus()(*CloudPcOnPremisesC } // Serialize serializes information the current object func (m *CloudPcOnPremisesConnectionHealthCheck) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("additionalDetail", m.GetAdditionalDetail()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("additionalDetails", m.GetAdditionalDetails()) if err != nil { @@ -306,6 +333,13 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalData(value map[str panic(err) } } +// SetAdditionalDetail sets the additionalDetail property value. The additionalDetail property +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. func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalDetails(value *string)() { err := m.GetBackingStore().Set("additionalDetails", value) @@ -378,6 +412,7 @@ type CloudPcOnPremisesConnectionHealthCheckable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdditionalDetail()(*string) GetAdditionalDetails()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCorrelationId()(*string) @@ -388,6 +423,7 @@ type CloudPcOnPremisesConnectionHealthCheckable interface { GetRecommendedAction()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetStatus()(*CloudPcOnPremisesConnectionStatus) + SetAdditionalDetail(value *string)() SetAdditionalDetails(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCorrelationId(value *string)() diff --git a/models/cloud_pc_on_premises_connection_status_detail.go b/models/cloud_pc_on_premises_connection_status_detail.go new file mode 100644 index 00000000000..234f902e6cc --- /dev/null +++ b/models/cloud_pc_on_premises_connection_status_detail.go @@ -0,0 +1,231 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// CloudPcOnPremisesConnectionStatusDetail +type CloudPcOnPremisesConnectionStatusDetail struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCloudPcOnPremisesConnectionStatusDetail instantiates a new cloudPcOnPremisesConnectionStatusDetail and sets the default values. +func NewCloudPcOnPremisesConnectionStatusDetail()(*CloudPcOnPremisesConnectionStatusDetail) { + m := &CloudPcOnPremisesConnectionStatusDetail{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCloudPcOnPremisesConnectionStatusDetailFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcOnPremisesConnectionStatusDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcOnPremisesConnectionStatusDetail(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcOnPremisesConnectionStatusDetail) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *CloudPcOnPremisesConnectionStatusDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEndDateTime gets the endDateTime property value. The endDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) 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 +func (m *CloudPcOnPremisesConnectionStatusDetail) 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["healthChecks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCloudPcOnPremisesConnectionHealthCheckFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CloudPcOnPremisesConnectionHealthCheckable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CloudPcOnPremisesConnectionHealthCheckable) + } + } + m.SetHealthChecks(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + 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 +} +// GetHealthChecks gets the healthChecks property value. The healthChecks property +func (m *CloudPcOnPremisesConnectionStatusDetail) GetHealthChecks()([]CloudPcOnPremisesConnectionHealthCheckable) { + val, err := m.GetBackingStore().Get("healthChecks") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CloudPcOnPremisesConnectionHealthCheckable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcOnPremisesConnectionStatusDetail) 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 startDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) 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 *CloudPcOnPremisesConnectionStatusDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) + if err != nil { + return err + } + } + if m.GetHealthChecks() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHealthChecks())) + for i, v := range m.GetHealthChecks() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("healthChecks", cast) + 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 *CloudPcOnPremisesConnectionStatusDetail) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CloudPcOnPremisesConnectionStatusDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEndDateTime sets the endDateTime property value. The endDateTime property +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 +func (m *CloudPcOnPremisesConnectionStatusDetail) SetHealthChecks(value []CloudPcOnPremisesConnectionHealthCheckable)() { + err := m.GetBackingStore().Set("healthChecks", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcOnPremisesConnectionStatusDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The startDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +// CloudPcOnPremisesConnectionStatusDetailable +type CloudPcOnPremisesConnectionStatusDetailable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetHealthChecks()([]CloudPcOnPremisesConnectionHealthCheckable) + GetOdataType()(*string) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetHealthChecks(value []CloudPcOnPremisesConnectionHealthCheckable)() + SetOdataType(value *string)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/cloud_pc_provisioning_policy.go b/models/cloud_pc_provisioning_policy.go index 0188cb8f04f..a4d13dea08e 100644 --- a/models/cloud_pc_provisioning_policy.go +++ b/models/cloud_pc_provisioning_policy.go @@ -329,6 +329,16 @@ func (m *CloudPcProvisioningPolicy) GetFieldDeserializers()(map[string]func(i878 } return nil } + res["windowsSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCloudPcWindowsSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetWindowsSetting(val.(CloudPcWindowsSettingable)) + } + return nil + } res["windowsSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateCloudPcWindowsSettingsFromDiscriminatorValue) if err != nil { @@ -451,6 +461,17 @@ func (m *CloudPcProvisioningPolicy) GetScopeIds()([]string) { } return nil } +// GetWindowsSetting gets the windowsSetting property value. The windowsSetting property +func (m *CloudPcProvisioningPolicy) GetWindowsSetting()(CloudPcWindowsSettingable) { + val, err := m.GetBackingStore().Get("windowsSetting") + if err != nil { + panic(err) + } + if val != nil { + return val.(CloudPcWindowsSettingable) + } + return nil +} // GetWindowsSettings gets the windowsSettings property value. Specific Windows settings to configure while creating Cloud PCs for this provisioning policy. func (m *CloudPcProvisioningPolicy) GetWindowsSettings()(CloudPcWindowsSettingsable) { val, err := m.GetBackingStore().Get("windowsSettings") @@ -597,6 +618,12 @@ func (m *CloudPcProvisioningPolicy) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteObjectValue("windowsSetting", m.GetWindowsSetting()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("windowsSettings", m.GetWindowsSettings()) if err != nil { @@ -738,6 +765,13 @@ func (m *CloudPcProvisioningPolicy) SetScopeIds(value []string)() { panic(err) } } +// SetWindowsSetting sets the windowsSetting property value. The windowsSetting property +func (m *CloudPcProvisioningPolicy) SetWindowsSetting(value CloudPcWindowsSettingable)() { + err := m.GetBackingStore().Set("windowsSetting", value) + if err != nil { + panic(err) + } +} // SetWindowsSettings sets the windowsSettings property value. Specific Windows settings to configure while creating Cloud PCs for this provisioning policy. func (m *CloudPcProvisioningPolicy) SetWindowsSettings(value CloudPcWindowsSettingsable)() { err := m.GetBackingStore().Set("windowsSettings", value) @@ -768,6 +802,7 @@ type CloudPcProvisioningPolicyable interface { GetOnPremisesConnectionId()(*string) GetProvisioningType()(*CloudPcProvisioningType) GetScopeIds()([]string) + GetWindowsSetting()(CloudPcWindowsSettingable) GetWindowsSettings()(CloudPcWindowsSettingsable) SetAlternateResourceUrl(value *string)() SetAssignments(value []CloudPcProvisioningPolicyAssignmentable)() @@ -788,5 +823,6 @@ type CloudPcProvisioningPolicyable interface { SetOnPremisesConnectionId(value *string)() SetProvisioningType(value *CloudPcProvisioningType)() SetScopeIds(value []string)() + SetWindowsSetting(value CloudPcWindowsSettingable)() SetWindowsSettings(value CloudPcWindowsSettingsable)() } diff --git a/models/cloud_pc_provisioning_policy_image_type.go b/models/cloud_pc_provisioning_policy_image_type.go index 3fb3438e259..011c5f0c652 100644 --- a/models/cloud_pc_provisioning_policy_image_type.go +++ b/models/cloud_pc_provisioning_policy_image_type.go @@ -8,10 +8,11 @@ type CloudPcProvisioningPolicyImageType int const ( GALLERY_CLOUDPCPROVISIONINGPOLICYIMAGETYPE CloudPcProvisioningPolicyImageType = iota CUSTOM_CLOUDPCPROVISIONINGPOLICYIMAGETYPE + UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGPOLICYIMAGETYPE ) func (i CloudPcProvisioningPolicyImageType) String() string { - return []string{"gallery", "custom"}[i] + return []string{"gallery", "custom", "unknownFutureValue"}[i] } func ParseCloudPcProvisioningPolicyImageType(v string) (any, error) { result := GALLERY_CLOUDPCPROVISIONINGPOLICYIMAGETYPE @@ -20,6 +21,8 @@ func ParseCloudPcProvisioningPolicyImageType(v string) (any, error) { result = GALLERY_CLOUDPCPROVISIONINGPOLICYIMAGETYPE case "custom": result = CUSTOM_CLOUDPCPROVISIONINGPOLICYIMAGETYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGPOLICYIMAGETYPE default: return 0, errors.New("Unknown CloudPcProvisioningPolicyImageType value: " + v) } diff --git a/models/cloud_pc_report_name.go b/models/cloud_pc_report_name.go index d5880c0b10e..a7f74c26d15 100644 --- a/models/cloud_pc_report_name.go +++ b/models/cloud_pc_report_name.go @@ -19,10 +19,12 @@ const ( INACCESSIBLECLOUDPCREPORTS_CLOUDPCREPORTNAME RAWREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME CLOUDPCUSAGECATEGORYREPORTS_CLOUDPCREPORTNAME + PERFORMANCETRENDREPORT_CLOUDPCREPORTNAME + INACCESSIBLECLOUDPCTRENDREPORT_CLOUDPCREPORTNAME ) func (i CloudPcReportName) String() string { - return []string{"remoteConnectionHistoricalReports", "dailyAggregatedRemoteConnectionReports", "totalAggregatedRemoteConnectionReports", "sharedUseLicenseUsageReport", "sharedUseLicenseUsageRealTimeReport", "unknownFutureValue", "noLicenseAvailableConnectivityFailureReport", "frontlineLicenseUsageReport", "frontlineLicenseUsageRealTimeReport", "remoteConnectionQualityReports", "inaccessibleCloudPcReports", "rawRemoteConnectionReports", "cloudPcUsageCategoryReports"}[i] + return []string{"remoteConnectionHistoricalReports", "dailyAggregatedRemoteConnectionReports", "totalAggregatedRemoteConnectionReports", "sharedUseLicenseUsageReport", "sharedUseLicenseUsageRealTimeReport", "unknownFutureValue", "noLicenseAvailableConnectivityFailureReport", "frontlineLicenseUsageReport", "frontlineLicenseUsageRealTimeReport", "remoteConnectionQualityReports", "inaccessibleCloudPcReports", "rawRemoteConnectionReports", "cloudPcUsageCategoryReports", "performanceTrendReport", "inaccessibleCloudPcTrendReport"}[i] } func ParseCloudPcReportName(v string) (any, error) { result := REMOTECONNECTIONHISTORICALREPORTS_CLOUDPCREPORTNAME @@ -53,6 +55,10 @@ func ParseCloudPcReportName(v string) (any, error) { result = RAWREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME case "cloudPcUsageCategoryReports": result = CLOUDPCUSAGECATEGORYREPORTS_CLOUDPCREPORTNAME + case "performanceTrendReport": + result = PERFORMANCETRENDREPORT_CLOUDPCREPORTNAME + case "inaccessibleCloudPcTrendReport": + result = INACCESSIBLECLOUDPCTRENDREPORT_CLOUDPCREPORTNAME default: return 0, errors.New("Unknown CloudPcReportName value: " + v) } diff --git a/models/cloud_pc_restore_point_frequency_type.go b/models/cloud_pc_restore_point_frequency_type.go new file mode 100644 index 00000000000..789eb90a893 --- /dev/null +++ b/models/cloud_pc_restore_point_frequency_type.go @@ -0,0 +1,52 @@ +package models +import ( + "errors" +) +// +type CloudPcRestorePointFrequencyType int + +const ( + DEFAULTESCAPED_CLOUDPCRESTOREPOINTFREQUENCYTYPE CloudPcRestorePointFrequencyType = iota + FOURHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + SIXHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + TWELVEHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + SIXTEENHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + TWENTYFOURHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + UNKNOWNFUTUREVALUE_CLOUDPCRESTOREPOINTFREQUENCYTYPE +) + +func (i CloudPcRestorePointFrequencyType) String() string { + return []string{"default", "fourHours", "sixHours", "twelveHours", "sixteenHours", "twentyFourHours", "unknownFutureValue"}[i] +} +func ParseCloudPcRestorePointFrequencyType(v string) (any, error) { + result := DEFAULTESCAPED_CLOUDPCRESTOREPOINTFREQUENCYTYPE + switch v { + case "default": + result = DEFAULTESCAPED_CLOUDPCRESTOREPOINTFREQUENCYTYPE + case "fourHours": + result = FOURHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + case "sixHours": + result = SIXHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + case "twelveHours": + result = TWELVEHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + case "sixteenHours": + result = SIXTEENHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + case "twentyFourHours": + result = TWENTYFOURHOURS_CLOUDPCRESTOREPOINTFREQUENCYTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCRESTOREPOINTFREQUENCYTYPE + default: + return 0, errors.New("Unknown CloudPcRestorePointFrequencyType value: " + v) + } + return &result, nil +} +func SerializeCloudPcRestorePointFrequencyType(values []CloudPcRestorePointFrequencyType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CloudPcRestorePointFrequencyType) isMultiValue() bool { + return false +} diff --git a/models/cloud_pc_restore_point_setting.go b/models/cloud_pc_restore_point_setting.go index 0becbd66710..cc22d060c8d 100644 --- a/models/cloud_pc_restore_point_setting.go +++ b/models/cloud_pc_restore_point_setting.go @@ -51,6 +51,16 @@ func (m *CloudPcRestorePointSetting) GetFieldDeserializers()(map[string]func(i87 } return nil } + res["frequencyType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcRestorePointFrequencyType) + if err != nil { + return err + } + if val != nil { + m.SetFrequencyType(val.(*CloudPcRestorePointFrequencyType)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -84,6 +94,17 @@ func (m *CloudPcRestorePointSetting) GetFrequencyInHours()(*int32) { } return nil } +// GetFrequencyType gets the frequencyType property value. The frequencyType property +func (m *CloudPcRestorePointSetting) GetFrequencyType()(*CloudPcRestorePointFrequencyType) { + val, err := m.GetBackingStore().Get("frequencyType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcRestorePointFrequencyType) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *CloudPcRestorePointSetting) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -114,6 +135,13 @@ func (m *CloudPcRestorePointSetting) Serialize(writer i878a80d2330e89d26896388a3 return err } } + if m.GetFrequencyType() != nil { + cast := (*m.GetFrequencyType()).String() + err := writer.WriteStringValue("frequencyType", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -152,6 +180,13 @@ func (m *CloudPcRestorePointSetting) SetFrequencyInHours(value *int32)() { panic(err) } } +// SetFrequencyType sets the frequencyType property value. The frequencyType property +func (m *CloudPcRestorePointSetting) SetFrequencyType(value *CloudPcRestorePointFrequencyType)() { + err := m.GetBackingStore().Set("frequencyType", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *CloudPcRestorePointSetting) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -173,10 +208,12 @@ type CloudPcRestorePointSettingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetFrequencyInHours()(*int32) + GetFrequencyType()(*CloudPcRestorePointFrequencyType) GetOdataType()(*string) GetUserRestoreEnabled()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetFrequencyInHours(value *int32)() + SetFrequencyType(value *CloudPcRestorePointFrequencyType)() SetOdataType(value *string)() SetUserRestoreEnabled(value *bool)() } diff --git a/models/cloud_pc_source_device_image.go b/models/cloud_pc_source_device_image.go index 5cf645470b1..81b10f48f67 100644 --- a/models/cloud_pc_source_device_image.go +++ b/models/cloud_pc_source_device_image.go @@ -82,6 +82,16 @@ func (m *CloudPcSourceDeviceImage) GetFieldDeserializers()(map[string]func(i878a } return nil } + res["resourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceId(val) + } + return nil + } res["subscriptionDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -126,6 +136,17 @@ func (m *CloudPcSourceDeviceImage) GetOdataType()(*string) { } return nil } +// GetResourceId gets the resourceId property value. The resourceId property +func (m *CloudPcSourceDeviceImage) GetResourceId()(*string) { + val, err := m.GetBackingStore().Get("resourceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSubscriptionDisplayName gets the subscriptionDisplayName property value. The display name of subscription that hosts the source image. func (m *CloudPcSourceDeviceImage) GetSubscriptionDisplayName()(*string) { val, err := m.GetBackingStore().Get("subscriptionDisplayName") @@ -168,6 +189,12 @@ func (m *CloudPcSourceDeviceImage) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err := writer.WriteStringValue("resourceId", m.GetResourceId()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("subscriptionDisplayName", m.GetSubscriptionDisplayName()) if err != nil { @@ -220,6 +247,13 @@ func (m *CloudPcSourceDeviceImage) SetOdataType(value *string)() { panic(err) } } +// SetResourceId sets the resourceId property value. The resourceId property +func (m *CloudPcSourceDeviceImage) SetResourceId(value *string)() { + err := m.GetBackingStore().Set("resourceId", value) + if err != nil { + panic(err) + } +} // SetSubscriptionDisplayName sets the subscriptionDisplayName property value. The display name of subscription that hosts the source image. func (m *CloudPcSourceDeviceImage) SetSubscriptionDisplayName(value *string)() { err := m.GetBackingStore().Set("subscriptionDisplayName", value) @@ -243,12 +277,14 @@ type CloudPcSourceDeviceImageable interface { GetDisplayName()(*string) GetId()(*string) GetOdataType()(*string) + GetResourceId()(*string) GetSubscriptionDisplayName()(*string) GetSubscriptionId()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetId(value *string)() SetOdataType(value *string)() + SetResourceId(value *string)() SetSubscriptionDisplayName(value *string)() SetSubscriptionId(value *string)() } diff --git a/models/cloud_pc_windows_setting.go b/models/cloud_pc_windows_setting.go new file mode 100644 index 00000000000..834d9466035 --- /dev/null +++ b/models/cloud_pc_windows_setting.go @@ -0,0 +1,146 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// CloudPcWindowsSetting +type CloudPcWindowsSetting struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCloudPcWindowsSetting instantiates a new cloudPcWindowsSetting and sets the default values. +func NewCloudPcWindowsSetting()(*CloudPcWindowsSetting) { + m := &CloudPcWindowsSetting{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCloudPcWindowsSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcWindowsSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcWindowsSetting(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcWindowsSetting) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *CloudPcWindowsSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcWindowsSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["locale"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLocale(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 +} +// GetLocale gets the locale property value. The locale property +func (m *CloudPcWindowsSetting) GetLocale()(*string) { + val, err := m.GetBackingStore().Get("locale") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcWindowsSetting) 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 *CloudPcWindowsSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("locale", m.GetLocale()) + 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 *CloudPcWindowsSetting) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CloudPcWindowsSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetLocale sets the locale property value. The locale property +func (m *CloudPcWindowsSetting) SetLocale(value *string)() { + err := m.GetBackingStore().Set("locale", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcWindowsSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// CloudPcWindowsSettingable +type CloudPcWindowsSettingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetLocale()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetLocale(value *string)() + SetOdataType(value *string)() +} diff --git a/models/community.go b/models/community.go new file mode 100644 index 00000000000..d3475e34c28 --- /dev/null +++ b/models/community.go @@ -0,0 +1,268 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Community +type Community struct { + Entity +} +// NewCommunity instantiates a new community and sets the default values. +func NewCommunity()(*Community) { + m := &Community{ + Entity: *NewEntity(), + } + return m +} +// CreateCommunityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCommunityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCommunity(), nil +} +// GetDescription gets the description property value. The description of the community. The maximum length is 1024 characters. +func (m *Community) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The name of the community. The maximum length is 255 characters. +func (m *Community) 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 +func (m *Community) 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["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["group"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateGroupFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGroup(val.(Groupable)) + } + return nil + } + res["groupId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGroupId(val) + } + return nil + } + res["owners"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUserFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Userable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Userable) + } + } + m.SetOwners(res) + } + return nil + } + res["privacy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCommunityPrivacy) + if err != nil { + return err + } + if val != nil { + m.SetPrivacy(val.(*CommunityPrivacy)) + } + return nil + } + return res +} +// GetGroup gets the group property value. The Microsoft 365 group that manages the membership of this community. +func (m *Community) GetGroup()(Groupable) { + val, err := m.GetBackingStore().Get("group") + if err != nil { + panic(err) + } + if val != nil { + return val.(Groupable) + } + return nil +} +// GetGroupId gets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community. +func (m *Community) GetGroupId()(*string) { + val, err := m.GetBackingStore().Get("groupId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOwners gets the owners property value. The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *Community) GetOwners()([]Userable) { + val, err := m.GetBackingStore().Get("owners") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Userable) + } + return nil +} +// GetPrivacy gets the privacy property value. The privacy property +func (m *Community) GetPrivacy()(*CommunityPrivacy) { + val, err := m.GetBackingStore().Get("privacy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CommunityPrivacy) + } + return nil +} +// Serialize serializes information the current object +func (m *Community) 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("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("group", m.GetGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("groupId", m.GetGroupId()) + if err != nil { + return err + } + } + if m.GetOwners() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOwners())) + for i, v := range m.GetOwners() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("owners", cast) + if err != nil { + return err + } + } + if m.GetPrivacy() != nil { + cast := (*m.GetPrivacy()).String() + err = writer.WriteStringValue("privacy", &cast) + if err != nil { + return err + } + } + return nil +} +// SetDescription sets the description property value. The description of the community. The maximum length is 1024 characters. +func (m *Community) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The name of the community. The maximum length is 255 characters. +func (m *Community) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetGroup sets the group property value. The Microsoft 365 group that manages the membership of this community. +func (m *Community) SetGroup(value Groupable)() { + err := m.GetBackingStore().Set("group", value) + if err != nil { + panic(err) + } +} +// SetGroupId sets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community. +func (m *Community) SetGroupId(value *string)() { + err := m.GetBackingStore().Set("groupId", value) + if err != nil { + panic(err) + } +} +// SetOwners sets the owners property value. The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *Community) SetOwners(value []Userable)() { + err := m.GetBackingStore().Set("owners", value) + if err != nil { + panic(err) + } +} +// SetPrivacy sets the privacy property value. The privacy property +func (m *Community) SetPrivacy(value *CommunityPrivacy)() { + err := m.GetBackingStore().Set("privacy", value) + if err != nil { + panic(err) + } +} +// Communityable +type Communityable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetDisplayName()(*string) + GetGroup()(Groupable) + GetGroupId()(*string) + GetOwners()([]Userable) + GetPrivacy()(*CommunityPrivacy) + SetDescription(value *string)() + SetDisplayName(value *string)() + SetGroup(value Groupable)() + SetGroupId(value *string)() + SetOwners(value []Userable)() + SetPrivacy(value *CommunityPrivacy)() +} diff --git a/models/community_collection_response.go b/models/community_collection_response.go new file mode 100644 index 00000000000..4b545c9dec6 --- /dev/null +++ b/models/community_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CommunityCollectionResponse +type CommunityCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewCommunityCollectionResponse instantiates a new communityCollectionResponse and sets the default values. +func NewCommunityCollectionResponse()(*CommunityCollectionResponse) { + m := &CommunityCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateCommunityCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCommunityCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCommunityCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CommunityCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCommunityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Communityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Communityable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *CommunityCollectionResponse) GetValue()([]Communityable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Communityable) + } + return nil +} +// Serialize serializes information the current object +func (m *CommunityCollectionResponse) 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 *CommunityCollectionResponse) SetValue(value []Communityable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// CommunityCollectionResponseable +type CommunityCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]Communityable) + SetValue(value []Communityable)() +} diff --git a/models/community_privacy.go b/models/community_privacy.go new file mode 100644 index 00000000000..f01fc640e14 --- /dev/null +++ b/models/community_privacy.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type CommunityPrivacy int + +const ( + PUBLIC_COMMUNITYPRIVACY CommunityPrivacy = iota + PRIVATE_COMMUNITYPRIVACY + UNKNOWNFUTUREVALUE_COMMUNITYPRIVACY +) + +func (i CommunityPrivacy) String() string { + return []string{"public", "private", "unknownFutureValue"}[i] +} +func ParseCommunityPrivacy(v string) (any, error) { + result := PUBLIC_COMMUNITYPRIVACY + switch v { + case "public": + result = PUBLIC_COMMUNITYPRIVACY + case "private": + result = PRIVATE_COMMUNITYPRIVACY + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_COMMUNITYPRIVACY + default: + return 0, errors.New("Unknown CommunityPrivacy value: " + v) + } + return &result, nil +} +func SerializeCommunityPrivacy(values []CommunityPrivacy) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CommunityPrivacy) isMultiValue() bool { + return false +} diff --git a/models/custom_authentication_extension.go b/models/custom_authentication_extension.go index eb35d076e83..f2bfa50491f 100644 --- a/models/custom_authentication_extension.go +++ b/models/custom_authentication_extension.go @@ -31,6 +31,10 @@ func CreateCustomAuthenticationExtensionFromDiscriminatorValue(parseNode i878a80 } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.onAttributeCollectionStartCustomExtension": + return NewOnAttributeCollectionStartCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtension": + return NewOnAttributeCollectionSubmitCustomExtension(), nil case "#microsoft.graph.onTokenIssuanceStartCustomExtension": return NewOnTokenIssuanceStartCustomExtension(), nil } diff --git a/models/custom_callout_extension.go b/models/custom_callout_extension.go index da09fdf1403..8345e30c4e2 100644 --- a/models/custom_callout_extension.go +++ b/models/custom_callout_extension.go @@ -37,6 +37,10 @@ func CreateCustomCalloutExtensionFromDiscriminatorValue(parseNode i878a80d2330e8 return NewCustomAccessPackageWorkflowExtension(), nil case "#microsoft.graph.customAuthenticationExtension": return NewCustomAuthenticationExtension(), nil + case "#microsoft.graph.onAttributeCollectionStartCustomExtension": + return NewOnAttributeCollectionStartCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtension": + return NewOnAttributeCollectionSubmitCustomExtension(), nil case "#microsoft.graph.onTokenIssuanceStartCustomExtension": return NewOnTokenIssuanceStartCustomExtension(), nil } diff --git a/models/device_management_configuration_choice_setting_definition.go b/models/device_management_configuration_choice_setting_definition.go index f1383c844ac..10d1fcf6fbe 100644 --- a/models/device_management_configuration_choice_setting_definition.go +++ b/models/device_management_configuration_choice_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationChoiceSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationChoiceSettingDefinition(), nil } -// GetDefaultOptionId gets the defaultOptionId property value. Default option for choice setting +// GetDefaultOptionId gets the defaultOptionId property value. Default option for the choice setting. func (m *DeviceManagementConfigurationChoiceSettingDefinition) GetDefaultOptionId()(*string) { val, err := m.GetBackingStore().Get("defaultOptionId") if err != nil { @@ -79,7 +79,7 @@ func (m *DeviceManagementConfigurationChoiceSettingDefinition) GetFieldDeseriali } return res } -// GetOptions gets the options property value. Options for the setting that can be selected +// GetOptions gets the options property value. Options for the setting that can be selected. func (m *DeviceManagementConfigurationChoiceSettingDefinition) GetOptions()([]DeviceManagementConfigurationOptionDefinitionable) { val, err := m.GetBackingStore().Get("options") if err != nil { @@ -116,14 +116,14 @@ func (m *DeviceManagementConfigurationChoiceSettingDefinition) Serialize(writer } return nil } -// SetDefaultOptionId sets the defaultOptionId property value. Default option for choice setting +// SetDefaultOptionId sets the defaultOptionId property value. Default option for the choice setting. func (m *DeviceManagementConfigurationChoiceSettingDefinition) SetDefaultOptionId(value *string)() { err := m.GetBackingStore().Set("defaultOptionId", value) if err != nil { panic(err) } } -// SetOptions sets the options property value. Options for the setting that can be selected +// SetOptions sets the options property value. Options for the setting that can be selected. func (m *DeviceManagementConfigurationChoiceSettingDefinition) SetOptions(value []DeviceManagementConfigurationOptionDefinitionable)() { err := m.GetBackingStore().Set("options", value) if err != nil { diff --git a/models/device_management_configuration_referred_setting_information.go b/models/device_management_configuration_referred_setting_information.go index 32aedc01dab..8fddbb0e965 100644 --- a/models/device_management_configuration_referred_setting_information.go +++ b/models/device_management_configuration_referred_setting_information.go @@ -74,7 +74,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) GetOdataType() } return nil } -// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) GetSettingDefinitionId()(*string) { val, err := m.GetBackingStore().Get("settingDefinitionId") if err != nil { @@ -125,7 +125,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) SetOdataType(v panic(err) } } -// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) SetSettingDefinitionId(value *string)() { err := m.GetBackingStore().Set("settingDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_simple_setting_collection_definition.go b/models/device_management_configuration_simple_setting_collection_definition.go index 492062bd79a..85c8cbd8299 100644 --- a/models/device_management_configuration_simple_setting_collection_definition.go +++ b/models/device_management_configuration_simple_setting_collection_definition.go @@ -44,7 +44,7 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetFiel } return res } -// GetMaximumCount gets the maximumCount property value. Maximum number of simple settings in the collection +// GetMaximumCount gets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") if err != nil { @@ -55,7 +55,7 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMaxi } return nil } -// GetMinimumCount gets the minimumCount property value. Minimum number of simple settings in the collection +// GetMinimumCount gets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") if err != nil { @@ -86,14 +86,14 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) Seriali } return nil } -// SetMaximumCount sets the maximumCount property value. Maximum number of simple settings in the collection +// SetMaximumCount sets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) SetMaximumCount(value *int32)() { err := m.GetBackingStore().Set("maximumCount", value) if err != nil { panic(err) } } -// SetMinimumCount sets the minimumCount property value. Minimum number of simple settings in the collection +// SetMinimumCount sets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) SetMinimumCount(value *int32)() { err := m.GetBackingStore().Set("minimumCount", value) if err != nil { diff --git a/models/device_management_configuration_simple_setting_definition.go b/models/device_management_configuration_simple_setting_definition.go index 8823bd51d21..7492cbcc736 100644 --- a/models/device_management_configuration_simple_setting_definition.go +++ b/models/device_management_configuration_simple_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSimpleSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationSimpleSettingDefinition(), nil } -// GetDefaultValue gets the defaultValue property value. Default setting value for this setting. +// GetDefaultValue gets the defaultValue property value. Default setting value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue()(DeviceManagementConfigurationSettingValueable) { val, err := m.GetBackingStore().Get("defaultValue") if err != nil { @@ -48,7 +48,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue() } return nil } -// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting. +// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy()([]DeviceManagementConfigurationSettingDependedOnByable) { val, err := m.GetBackingStore().Get("dependedOnBy") if err != nil { @@ -59,7 +59,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy() } return nil } -// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on. +// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependentOn()([]DeviceManagementConfigurationDependentOnable) { val, err := m.GetBackingStore().Get("dependentOn") if err != nil { @@ -127,7 +127,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } return res } -// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting. +// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetValueDefinition()(DeviceManagementConfigurationSettingValueDefinitionable) { val, err := m.GetBackingStore().Get("valueDefinition") if err != nil { @@ -182,28 +182,28 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) Serialize(writer } return nil } -// SetDefaultValue sets the defaultValue property value. Default setting value for this setting. +// SetDefaultValue sets the defaultValue property value. Default setting value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDefaultValue(value DeviceManagementConfigurationSettingValueable)() { err := m.GetBackingStore().Set("defaultValue", value) if err != nil { panic(err) } } -// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting. +// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependedOnBy(value []DeviceManagementConfigurationSettingDependedOnByable)() { err := m.GetBackingStore().Set("dependedOnBy", value) if err != nil { panic(err) } } -// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on. +// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependentOn(value []DeviceManagementConfigurationDependentOnable)() { err := m.GetBackingStore().Set("dependentOn", value) if err != nil { panic(err) } } -// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting. +// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetValueDefinition(value DeviceManagementConfigurationSettingValueDefinitionable)() { err := m.GetBackingStore().Set("valueDefinition", value) if err != nil { diff --git a/models/devicemanagement/alert_rule.go b/models/devicemanagement/alert_rule.go index c3050a9fede..ad0b8ef3f5f 100644 --- a/models/devicemanagement/alert_rule.go +++ b/models/devicemanagement/alert_rule.go @@ -31,6 +31,17 @@ func (m *AlertRule) GetAlertRuleTemplate()(*AlertRuleTemplate) { } return nil } +// GetConditions gets the conditions property value. The conditions that determine when to send alerts. For example, you can configure a condition to send an alert when provisioning fails for six or more Cloud PCs. +func (m *AlertRule) GetConditions()([]RuleConditionable) { + val, err := m.GetBackingStore().Get("conditions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]RuleConditionable) + } + return nil +} // GetDescription gets the description property value. The rule description. func (m *AlertRule) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -77,6 +88,22 @@ func (m *AlertRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return nil } + res["conditions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateRuleConditionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]RuleConditionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(RuleConditionable) + } + } + m.SetConditions(res) + } + return nil + } res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -212,6 +239,18 @@ func (m *AlertRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + if m.GetConditions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetConditions())) + for i, v := range m.GetConditions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("conditions", cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("description", m.GetDescription()) if err != nil { @@ -270,6 +309,13 @@ func (m *AlertRule) SetAlertRuleTemplate(value *AlertRuleTemplate)() { panic(err) } } +// SetConditions sets the conditions property value. The conditions that determine when to send alerts. For example, you can configure a condition to send an alert when provisioning fails for six or more Cloud PCs. +func (m *AlertRule) SetConditions(value []RuleConditionable)() { + err := m.GetBackingStore().Set("conditions", value) + if err != nil { + panic(err) + } +} // SetDescription sets the description property value. The rule description. func (m *AlertRule) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) @@ -324,6 +370,7 @@ type AlertRuleable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAlertRuleTemplate()(*AlertRuleTemplate) + GetConditions()([]RuleConditionable) GetDescription()(*string) GetDisplayName()(*string) GetEnabled()(*bool) @@ -332,6 +379,7 @@ type AlertRuleable interface { GetSeverity()(*RuleSeverityType) GetThreshold()(RuleThresholdable) SetAlertRuleTemplate(value *AlertRuleTemplate)() + SetConditions(value []RuleConditionable)() SetDescription(value *string)() SetDisplayName(value *string)() SetEnabled(value *bool)() diff --git a/models/devicemanagement/alert_rule_template.go b/models/devicemanagement/alert_rule_template.go index 2edc4a73650..34207fc5c3b 100644 --- a/models/devicemanagement/alert_rule_template.go +++ b/models/devicemanagement/alert_rule_template.go @@ -12,10 +12,11 @@ const ( UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE CLOUDPCINGRACEPERIODSCENARIO_ALERTRULETEMPLATE CLOUDPCFRONTLINEINSUFFICIENTLICENSESSCENARIO_ALERTRULETEMPLATE + CLOUDPCINACCESSIBLESCENARIO_ALERTRULETEMPLATE ) func (i AlertRuleTemplate) String() string { - return []string{"cloudPcProvisionScenario", "cloudPcImageUploadScenario", "cloudPcOnPremiseNetworkConnectionCheckScenario", "unknownFutureValue", "cloudPcInGracePeriodScenario", "cloudPcFrontlineInsufficientLicensesScenario"}[i] + return []string{"cloudPcProvisionScenario", "cloudPcImageUploadScenario", "cloudPcOnPremiseNetworkConnectionCheckScenario", "unknownFutureValue", "cloudPcInGracePeriodScenario", "cloudPcFrontlineInsufficientLicensesScenario", "cloudPcInaccessibleScenario"}[i] } func ParseAlertRuleTemplate(v string) (any, error) { result := CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE @@ -32,6 +33,8 @@ func ParseAlertRuleTemplate(v string) (any, error) { result = CLOUDPCINGRACEPERIODSCENARIO_ALERTRULETEMPLATE case "cloudPcFrontlineInsufficientLicensesScenario": result = CLOUDPCFRONTLINEINSUFFICIENTLICENSESSCENARIO_ALERTRULETEMPLATE + case "cloudPcInaccessibleScenario": + result = CLOUDPCINACCESSIBLESCENARIO_ALERTRULETEMPLATE default: return 0, errors.New("Unknown AlertRuleTemplate value: " + v) } diff --git a/models/devicemanagement/condition_category.go b/models/devicemanagement/condition_category.go new file mode 100644 index 00000000000..ab2b3f5a914 --- /dev/null +++ b/models/devicemanagement/condition_category.go @@ -0,0 +1,58 @@ +package devicemanagement +import ( + "errors" +) +// +type ConditionCategory int + +const ( + PROVISIONFAILURES_CONDITIONCATEGORY ConditionCategory = iota + IMAGEUPLOADFAILURES_CONDITIONCATEGORY + AZURENETWORKCONNECTIONCHECKFAILURES_CONDITIONCATEGORY + CLOUDPCINGRACEPERIOD_CONDITIONCATEGORY + FRONTLINEINSUFFICIENTLICENSES_CONDITIONCATEGORY + CLOUDPCCONNECTIONERRORS_CONDITIONCATEGORY + CLOUDPCHOSTHEALTHCHECKFAILURES_CONDITIONCATEGORY + CLOUDPCZONEOUTAGE_CONDITIONCATEGORY + UNKNOWNFUTUREVALUE_CONDITIONCATEGORY +) + +func (i ConditionCategory) String() string { + return []string{"provisionFailures", "imageUploadFailures", "azureNetworkConnectionCheckFailures", "cloudPcInGracePeriod", "frontlineInsufficientLicenses", "cloudPcConnectionErrors", "cloudPcHostHealthCheckFailures", "cloudPcZoneOutage", "unknownFutureValue"}[i] +} +func ParseConditionCategory(v string) (any, error) { + result := PROVISIONFAILURES_CONDITIONCATEGORY + switch v { + case "provisionFailures": + result = PROVISIONFAILURES_CONDITIONCATEGORY + case "imageUploadFailures": + result = IMAGEUPLOADFAILURES_CONDITIONCATEGORY + case "azureNetworkConnectionCheckFailures": + result = AZURENETWORKCONNECTIONCHECKFAILURES_CONDITIONCATEGORY + case "cloudPcInGracePeriod": + result = CLOUDPCINGRACEPERIOD_CONDITIONCATEGORY + case "frontlineInsufficientLicenses": + result = FRONTLINEINSUFFICIENTLICENSES_CONDITIONCATEGORY + case "cloudPcConnectionErrors": + result = CLOUDPCCONNECTIONERRORS_CONDITIONCATEGORY + case "cloudPcHostHealthCheckFailures": + result = CLOUDPCHOSTHEALTHCHECKFAILURES_CONDITIONCATEGORY + case "cloudPcZoneOutage": + result = CLOUDPCZONEOUTAGE_CONDITIONCATEGORY + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CONDITIONCATEGORY + default: + return 0, errors.New("Unknown ConditionCategory value: " + v) + } + return &result, nil +} +func SerializeConditionCategory(values []ConditionCategory) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ConditionCategory) isMultiValue() bool { + return false +} diff --git a/models/devicemanagement/relationship_type.go b/models/devicemanagement/relationship_type.go new file mode 100644 index 00000000000..386c4da0874 --- /dev/null +++ b/models/devicemanagement/relationship_type.go @@ -0,0 +1,40 @@ +package devicemanagement +import ( + "errors" +) +// +type RelationshipType int + +const ( + AND_RELATIONSHIPTYPE RelationshipType = iota + OR_RELATIONSHIPTYPE + UNKNOWNFUTUREVALUE_RELATIONSHIPTYPE +) + +func (i RelationshipType) String() string { + return []string{"and", "or", "unknownFutureValue"}[i] +} +func ParseRelationshipType(v string) (any, error) { + result := AND_RELATIONSHIPTYPE + switch v { + case "and": + result = AND_RELATIONSHIPTYPE + case "or": + result = OR_RELATIONSHIPTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_RELATIONSHIPTYPE + default: + return 0, errors.New("Unknown RelationshipType value: " + v) + } + return &result, nil +} +func SerializeRelationshipType(values []RelationshipType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RelationshipType) isMultiValue() bool { + return false +} diff --git a/models/devicemanagement/rule_condition.go b/models/devicemanagement/rule_condition.go new file mode 100644 index 00000000000..f3636ba0ee7 --- /dev/null +++ b/models/devicemanagement/rule_condition.go @@ -0,0 +1,294 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// RuleCondition +type RuleCondition struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewRuleCondition instantiates a new ruleCondition and sets the default values. +func NewRuleCondition()(*RuleCondition) { + m := &RuleCondition{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateRuleConditionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateRuleConditionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewRuleCondition(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *RuleCondition) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAggregation gets the aggregation property value. The built-in aggregation method for the rule condition. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. +func (m *RuleCondition) GetAggregation()(*AggregationType) { + val, err := m.GetBackingStore().Get("aggregation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AggregationType) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *RuleCondition) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetConditionCategory gets the conditionCategory property value. The property that the rule condition monitors. Possible values are: provisionFailures, imageUploadFailures, azureNetworkConnectionCheckFailures, cloudPcInGracePeriod, frontlineInsufficientLicenses, cloudPcConnectionErrors, cloudPcHostHealthCheckFailures, cloudPcZoneOutage, unknownFutureValue. +func (m *RuleCondition) GetConditionCategory()(*ConditionCategory) { + val, err := m.GetBackingStore().Get("conditionCategory") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionCategory) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *RuleCondition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["aggregation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAggregationType) + if err != nil { + return err + } + if val != nil { + m.SetAggregation(val.(*AggregationType)) + } + return nil + } + res["conditionCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionCategory) + if err != nil { + return err + } + if val != nil { + m.SetConditionCategory(val.(*ConditionCategory)) + } + 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["operator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseOperatorType) + if err != nil { + return err + } + if val != nil { + m.SetOperator(val.(*OperatorType)) + } + return nil + } + res["relationshipType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRelationshipType) + if err != nil { + return err + } + if val != nil { + m.SetRelationshipType(val.(*RelationshipType)) + } + return nil + } + res["thresholdValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetThresholdValue(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RuleCondition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOperator gets the operator property value. The built-in operator for the rule condition. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue. +func (m *RuleCondition) GetOperator()(*OperatorType) { + val, err := m.GetBackingStore().Get("operator") + if err != nil { + panic(err) + } + if val != nil { + return val.(*OperatorType) + } + return nil +} +// GetRelationshipType gets the relationshipType property value. The relationship type. Possible values are: and, or. +func (m *RuleCondition) GetRelationshipType()(*RelationshipType) { + val, err := m.GetBackingStore().Get("relationshipType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RelationshipType) + } + return nil +} +// GetThresholdValue gets the thresholdValue property value. The threshold value of the alert condition. The threshold value can be a number in string form or string like 'WestUS'. +func (m *RuleCondition) GetThresholdValue()(*string) { + val, err := m.GetBackingStore().Get("thresholdValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *RuleCondition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAggregation() != nil { + cast := (*m.GetAggregation()).String() + err := writer.WriteStringValue("aggregation", &cast) + if err != nil { + return err + } + } + if m.GetConditionCategory() != nil { + cast := (*m.GetConditionCategory()).String() + err := writer.WriteStringValue("conditionCategory", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetOperator() != nil { + cast := (*m.GetOperator()).String() + err := writer.WriteStringValue("operator", &cast) + if err != nil { + return err + } + } + if m.GetRelationshipType() != nil { + cast := (*m.GetRelationshipType()).String() + err := writer.WriteStringValue("relationshipType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("thresholdValue", m.GetThresholdValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *RuleCondition) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAggregation sets the aggregation property value. The built-in aggregation method for the rule condition. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. +func (m *RuleCondition) SetAggregation(value *AggregationType)() { + err := m.GetBackingStore().Set("aggregation", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *RuleCondition) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetConditionCategory sets the conditionCategory property value. The property that the rule condition monitors. Possible values are: provisionFailures, imageUploadFailures, azureNetworkConnectionCheckFailures, cloudPcInGracePeriod, frontlineInsufficientLicenses, cloudPcConnectionErrors, cloudPcHostHealthCheckFailures, cloudPcZoneOutage, unknownFutureValue. +func (m *RuleCondition) SetConditionCategory(value *ConditionCategory)() { + err := m.GetBackingStore().Set("conditionCategory", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RuleCondition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOperator sets the operator property value. The built-in operator for the rule condition. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue. +func (m *RuleCondition) SetOperator(value *OperatorType)() { + err := m.GetBackingStore().Set("operator", value) + if err != nil { + panic(err) + } +} +// SetRelationshipType sets the relationshipType property value. The relationship type. Possible values are: and, or. +func (m *RuleCondition) SetRelationshipType(value *RelationshipType)() { + err := m.GetBackingStore().Set("relationshipType", value) + if err != nil { + panic(err) + } +} +// SetThresholdValue sets the thresholdValue property value. The threshold value of the alert condition. The threshold value can be a number in string form or string like 'WestUS'. +func (m *RuleCondition) SetThresholdValue(value *string)() { + err := m.GetBackingStore().Set("thresholdValue", value) + if err != nil { + panic(err) + } +} +// RuleConditionable +type RuleConditionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAggregation()(*AggregationType) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetConditionCategory()(*ConditionCategory) + GetOdataType()(*string) + GetOperator()(*OperatorType) + GetRelationshipType()(*RelationshipType) + GetThresholdValue()(*string) + SetAggregation(value *AggregationType)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetConditionCategory(value *ConditionCategory)() + SetOdataType(value *string)() + SetOperator(value *OperatorType)() + SetRelationshipType(value *RelationshipType)() + SetThresholdValue(value *string)() +} diff --git a/models/dictionary.go b/models/dictionary.go index 06d469f862d..f09977963f9 100644 --- a/models/dictionary.go +++ b/models/dictionary.go @@ -34,6 +34,8 @@ func CreateDictionaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3 switch *mappingValue { case "#microsoft.graph.customAppScopeAttributesDictionary": return NewCustomAppScopeAttributesDictionary(), nil + case "#microsoft.graph.plannerFormsDictionary": + return NewPlannerFormsDictionary(), nil case "#microsoft.graph.resultTemplateDictionary": return NewResultTemplateDictionary(), nil } diff --git a/models/employee_experience.go b/models/employee_experience.go index 1cd9068d788..e28d8f30afd 100644 --- a/models/employee_experience.go +++ b/models/employee_experience.go @@ -38,9 +38,63 @@ func (m *EmployeeExperience) GetAdditionalData()(map[string]any) { func (m *EmployeeExperience) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetCommunities gets the communities property value. A collection of communities in Viva Engage. +func (m *EmployeeExperience) GetCommunities()([]Communityable) { + val, err := m.GetBackingStore().Get("communities") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Communityable) + } + return nil +} +// GetEngagementAsyncOperations gets the engagementAsyncOperations property value. A collection of long-running, asynchronous operations related to Viva Engage. +func (m *EmployeeExperience) GetEngagementAsyncOperations()([]EngagementAsyncOperationable) { + val, err := m.GetBackingStore().Get("engagementAsyncOperations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EngagementAsyncOperationable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *EmployeeExperience) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["communities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCommunityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Communityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Communityable) + } + } + m.SetCommunities(res) + } + return nil + } + res["engagementAsyncOperations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEngagementAsyncOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EngagementAsyncOperationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EngagementAsyncOperationable) + } + } + m.SetEngagementAsyncOperations(res) + } + return nil + } res["goals"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateGoalsFromDiscriminatorValue) if err != nil { @@ -141,6 +195,30 @@ func (m *EmployeeExperience) GetOdataType()(*string) { } // Serialize serializes information the current object func (m *EmployeeExperience) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetCommunities() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommunities())) + for i, v := range m.GetCommunities() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("communities", cast) + if err != nil { + return err + } + } + if m.GetEngagementAsyncOperations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetEngagementAsyncOperations())) + for i, v := range m.GetEngagementAsyncOperations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("engagementAsyncOperations", cast) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("goals", m.GetGoals()) if err != nil { @@ -196,6 +274,20 @@ func (m *EmployeeExperience) SetAdditionalData(value map[string]any)() { func (m *EmployeeExperience) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetCommunities sets the communities property value. A collection of communities in Viva Engage. +func (m *EmployeeExperience) SetCommunities(value []Communityable)() { + err := m.GetBackingStore().Set("communities", value) + if err != nil { + panic(err) + } +} +// SetEngagementAsyncOperations sets the engagementAsyncOperations property value. A collection of long-running, asynchronous operations related to Viva Engage. +func (m *EmployeeExperience) SetEngagementAsyncOperations(value []EngagementAsyncOperationable)() { + err := m.GetBackingStore().Set("engagementAsyncOperations", value) + if err != nil { + panic(err) + } +} // SetGoals sets the goals property value. Represents a collection of goals in a Viva Goals organization. func (m *EmployeeExperience) SetGoals(value Goalsable)() { err := m.GetBackingStore().Set("goals", value) @@ -230,11 +322,15 @@ type EmployeeExperienceable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCommunities()([]Communityable) + GetEngagementAsyncOperations()([]EngagementAsyncOperationable) GetGoals()(Goalsable) GetLearningCourseActivities()([]LearningCourseActivityable) GetLearningProviders()([]LearningProviderable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCommunities(value []Communityable)() + SetEngagementAsyncOperations(value []EngagementAsyncOperationable)() SetGoals(value Goalsable)() SetLearningCourseActivities(value []LearningCourseActivityable)() SetLearningProviders(value []LearningProviderable)() diff --git a/models/engagement_async_operation.go b/models/engagement_async_operation.go new file mode 100644 index 00000000000..c776055d0a2 --- /dev/null +++ b/models/engagement_async_operation.go @@ -0,0 +1,112 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// EngagementAsyncOperation +type EngagementAsyncOperation struct { + LongRunningOperation +} +// NewEngagementAsyncOperation instantiates a new engagementAsyncOperation and sets the default values. +func NewEngagementAsyncOperation()(*EngagementAsyncOperation) { + m := &EngagementAsyncOperation{ + LongRunningOperation: *NewLongRunningOperation(), + } + return m +} +// CreateEngagementAsyncOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateEngagementAsyncOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEngagementAsyncOperation(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *EngagementAsyncOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.LongRunningOperation.GetFieldDeserializers() + res["operationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseEngagementAsyncOperationType) + if err != nil { + return err + } + if val != nil { + m.SetOperationType(val.(*EngagementAsyncOperationType)) + } + return nil + } + res["resourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceId(val) + } + return nil + } + return res +} +// GetOperationType gets the operationType property value. The type of the long-running operation. The possible values are: createCommunity, unknownFutureValue. +func (m *EngagementAsyncOperation) GetOperationType()(*EngagementAsyncOperationType) { + val, err := m.GetBackingStore().Get("operationType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*EngagementAsyncOperationType) + } + return nil +} +// GetResourceId gets the resourceId property value. The ID of the object created or modified as a result of this async operation. +func (m *EngagementAsyncOperation) GetResourceId()(*string) { + val, err := m.GetBackingStore().Get("resourceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *EngagementAsyncOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.LongRunningOperation.Serialize(writer) + if err != nil { + return err + } + if m.GetOperationType() != nil { + cast := (*m.GetOperationType()).String() + err = writer.WriteStringValue("operationType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("resourceId", m.GetResourceId()) + if err != nil { + return err + } + } + return nil +} +// SetOperationType sets the operationType property value. The type of the long-running operation. The possible values are: createCommunity, unknownFutureValue. +func (m *EngagementAsyncOperation) SetOperationType(value *EngagementAsyncOperationType)() { + err := m.GetBackingStore().Set("operationType", value) + if err != nil { + panic(err) + } +} +// SetResourceId sets the resourceId property value. The ID of the object created or modified as a result of this async operation. +func (m *EngagementAsyncOperation) SetResourceId(value *string)() { + err := m.GetBackingStore().Set("resourceId", value) + if err != nil { + panic(err) + } +} +// EngagementAsyncOperationable +type EngagementAsyncOperationable interface { + LongRunningOperationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOperationType()(*EngagementAsyncOperationType) + GetResourceId()(*string) + SetOperationType(value *EngagementAsyncOperationType)() + SetResourceId(value *string)() +} diff --git a/models/engagement_async_operation_collection_response.go b/models/engagement_async_operation_collection_response.go new file mode 100644 index 00000000000..12446b4b6f4 --- /dev/null +++ b/models/engagement_async_operation_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// EngagementAsyncOperationCollectionResponse +type EngagementAsyncOperationCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewEngagementAsyncOperationCollectionResponse instantiates a new engagementAsyncOperationCollectionResponse and sets the default values. +func NewEngagementAsyncOperationCollectionResponse()(*EngagementAsyncOperationCollectionResponse) { + m := &EngagementAsyncOperationCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateEngagementAsyncOperationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateEngagementAsyncOperationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEngagementAsyncOperationCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *EngagementAsyncOperationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEngagementAsyncOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EngagementAsyncOperationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EngagementAsyncOperationable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *EngagementAsyncOperationCollectionResponse) GetValue()([]EngagementAsyncOperationable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EngagementAsyncOperationable) + } + return nil +} +// Serialize serializes information the current object +func (m *EngagementAsyncOperationCollectionResponse) 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 *EngagementAsyncOperationCollectionResponse) SetValue(value []EngagementAsyncOperationable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// EngagementAsyncOperationCollectionResponseable +type EngagementAsyncOperationCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]EngagementAsyncOperationable) + SetValue(value []EngagementAsyncOperationable)() +} diff --git a/models/engagement_async_operation_type.go b/models/engagement_async_operation_type.go new file mode 100644 index 00000000000..19064e68215 --- /dev/null +++ b/models/engagement_async_operation_type.go @@ -0,0 +1,37 @@ +package models +import ( + "errors" +) +// +type EngagementAsyncOperationType int + +const ( + CREATECOMMUNITY_ENGAGEMENTASYNCOPERATIONTYPE EngagementAsyncOperationType = iota + UNKNOWNFUTUREVALUE_ENGAGEMENTASYNCOPERATIONTYPE +) + +func (i EngagementAsyncOperationType) String() string { + return []string{"createCommunity", "unknownFutureValue"}[i] +} +func ParseEngagementAsyncOperationType(v string) (any, error) { + result := CREATECOMMUNITY_ENGAGEMENTASYNCOPERATIONTYPE + switch v { + case "createCommunity": + result = CREATECOMMUNITY_ENGAGEMENTASYNCOPERATIONTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ENGAGEMENTASYNCOPERATIONTYPE + default: + return 0, errors.New("Unknown EngagementAsyncOperationType value: " + v) + } + return &result, nil +} +func SerializeEngagementAsyncOperationType(values []EngagementAsyncOperationType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i EngagementAsyncOperationType) isMultiValue() bool { + return false +} diff --git a/models/entity.go b/models/entity.go index df2fc5ae377..89918123a38 100644 --- a/models/entity.go +++ b/models/entity.go @@ -110,6 +110,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewAdminForms(), nil case "#microsoft.graph.administrativeUnit": return NewAdministrativeUnit(), nil + case "#microsoft.graph.adminMicrosoft365Apps": + return NewAdminMicrosoft365Apps(), nil case "#microsoft.graph.adminReportSettings": return NewAdminReportSettings(), nil case "#microsoft.graph.adminTodo": @@ -602,6 +604,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCloudPcAuditEvent(), nil case "#microsoft.graph.cloudPcBulkAction": return NewCloudPcBulkAction(), nil + case "#microsoft.graph.cloudPcBulkModifyDiskEncryptionType": + return NewCloudPcBulkModifyDiskEncryptionType(), nil case "#microsoft.graph.cloudPcBulkPowerOff": return NewCloudPcBulkPowerOff(), nil case "#microsoft.graph.cloudPcBulkPowerOn": @@ -662,6 +666,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCommand(), nil case "#microsoft.graph.commsOperation": return NewCommsOperation(), nil + case "#microsoft.graph.community": + return NewCommunity(), nil case "#microsoft.graph.companySubscription": return NewCompanySubscription(), nil case "#microsoft.graph.complianceManagementPartner": @@ -1160,6 +1166,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewEndUserNotification(), nil case "#microsoft.graph.endUserNotificationDetail": return NewEndUserNotificationDetail(), nil + case "#microsoft.graph.engagementAsyncOperation": + return NewEngagementAsyncOperation(), nil case "#microsoft.graph.enrollmentConfigurationAssignment": return NewEnrollmentConfigurationAssignment(), nil case "#microsoft.graph.enrollmentProfile": @@ -1588,6 +1596,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewLongRunningOperation(), nil case "#microsoft.graph.lookupResultRow": return NewLookupResultRow(), nil + case "#microsoft.graph.m365AppsInstallationOptions": + return NewM365AppsInstallationOptions(), nil case "#microsoft.graph.macOSCertificateProfileBase": return NewMacOSCertificateProfileBase(), nil case "#microsoft.graph.macOSCompliancePolicy": @@ -1876,6 +1886,14 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewOfficeSuiteApp(), nil case "#microsoft.graph.onAttributeCollectionListener": return NewOnAttributeCollectionListener(), nil + case "#microsoft.graph.onAttributeCollectionStartCustomExtension": + return NewOnAttributeCollectionStartCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionStartListener": + return NewOnAttributeCollectionStartListener(), nil + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtension": + return NewOnAttributeCollectionSubmitCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionSubmitListener": + return NewOnAttributeCollectionSubmitListener(), nil case "#microsoft.graph.onAuthenticationMethodLoadStartListener": return NewOnAuthenticationMethodLoadStartListener(), nil case "#microsoft.graph.onenote": @@ -2832,12 +2850,12 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewVirtualEvent(), nil case "#microsoft.graph.virtualEventPresenter": return NewVirtualEventPresenter(), nil - case "#microsoft.graph.virtualEventRegistratioCustomQuestion": - return NewVirtualEventRegistratioCustomQuestion(), nil case "#microsoft.graph.virtualEventRegistration": return NewVirtualEventRegistration(), nil case "#microsoft.graph.virtualEventRegistrationConfiguration": return NewVirtualEventRegistrationConfiguration(), nil + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return NewVirtualEventRegistrationCustomQuestion(), nil case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": return NewVirtualEventRegistrationPredefinedQuestion(), nil case "#microsoft.graph.virtualEventRegistrationQuestionBase": diff --git a/models/enumerated_device_registration_membership.go b/models/enumerated_device_registration_membership.go index fb278796d4e..35ea61584f1 100644 --- a/models/enumerated_device_registration_membership.go +++ b/models/enumerated_device_registration_membership.go @@ -58,7 +58,7 @@ func (m *EnumeratedDeviceRegistrationMembership) GetFieldDeserializers()(map[str } return res } -// GetGroups gets the groups property value. The groups property +// GetGroups gets the groups property value. List of groups that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) GetGroups()([]string) { val, err := m.GetBackingStore().Get("groups") if err != nil { @@ -69,7 +69,7 @@ func (m *EnumeratedDeviceRegistrationMembership) GetGroups()([]string) { } return nil } -// GetUsers gets the users property value. The users property +// GetUsers gets the users property value. List of users that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) GetUsers()([]string) { val, err := m.GetBackingStore().Get("users") if err != nil { @@ -100,14 +100,14 @@ func (m *EnumeratedDeviceRegistrationMembership) Serialize(writer i878a80d2330e8 } return nil } -// SetGroups sets the groups property value. The groups property +// SetGroups sets the groups property value. List of groups that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) SetGroups(value []string)() { err := m.GetBackingStore().Set("groups", value) if err != nil { panic(err) } } -// SetUsers sets the users property value. The users property +// SetUsers sets the users property value. List of users that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) SetUsers(value []string)() { err := m.GetBackingStore().Set("users", value) if err != nil { diff --git a/models/external_users_self_service_sign_up_events_flow.go b/models/external_users_self_service_sign_up_events_flow.go index 29c82b9af29..96d125316ab 100644 --- a/models/external_users_self_service_sign_up_events_flow.go +++ b/models/external_users_self_service_sign_up_events_flow.go @@ -34,6 +34,26 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetFieldDeserializers()(map[s } return nil } + res["onAttributeCollectionStart"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOnAttributeCollectionStart(val.(OnAttributeCollectionStartHandlerable)) + } + return nil + } + res["onAttributeCollectionSubmit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOnAttributeCollectionSubmit(val.(OnAttributeCollectionSubmitHandlerable)) + } + return nil + } res["onAuthenticationMethodLoadStart"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateOnAuthenticationMethodLoadStartHandlerFromDiscriminatorValue) if err != nil { @@ -77,6 +97,28 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollection()(On } return nil } +// GetOnAttributeCollectionStart gets the onAttributeCollectionStart property value. The onAttributeCollectionStart property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollectionStart()(OnAttributeCollectionStartHandlerable) { + val, err := m.GetBackingStore().Get("onAttributeCollectionStart") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionStartHandlerable) + } + return nil +} +// GetOnAttributeCollectionSubmit gets the onAttributeCollectionSubmit property value. The onAttributeCollectionSubmit property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollectionSubmit()(OnAttributeCollectionSubmitHandlerable) { + val, err := m.GetBackingStore().Get("onAttributeCollectionSubmit") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionSubmitHandlerable) + } + return nil +} // GetOnAuthenticationMethodLoadStart gets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAuthenticationMethodLoadStart()(OnAuthenticationMethodLoadStartHandlerable) { val, err := m.GetBackingStore().Get("onAuthenticationMethodLoadStart") @@ -122,6 +164,18 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteObjectValue("onAttributeCollectionStart", m.GetOnAttributeCollectionStart()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("onAttributeCollectionSubmit", m.GetOnAttributeCollectionSubmit()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("onAuthenticationMethodLoadStart", m.GetOnAuthenticationMethodLoadStart()) if err != nil { @@ -149,6 +203,20 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollection(valu panic(err) } } +// SetOnAttributeCollectionStart sets the onAttributeCollectionStart property value. The onAttributeCollectionStart property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollectionStart(value OnAttributeCollectionStartHandlerable)() { + err := m.GetBackingStore().Set("onAttributeCollectionStart", value) + if err != nil { + panic(err) + } +} +// SetOnAttributeCollectionSubmit sets the onAttributeCollectionSubmit property value. The onAttributeCollectionSubmit property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollectionSubmit(value OnAttributeCollectionSubmitHandlerable)() { + err := m.GetBackingStore().Set("onAttributeCollectionSubmit", value) + if err != nil { + panic(err) + } +} // SetOnAuthenticationMethodLoadStart sets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAuthenticationMethodLoadStart(value OnAuthenticationMethodLoadStartHandlerable)() { err := m.GetBackingStore().Set("onAuthenticationMethodLoadStart", value) @@ -175,10 +243,14 @@ type ExternalUsersSelfServiceSignUpEventsFlowable interface { AuthenticationEventsFlowable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetOnAttributeCollection()(OnAttributeCollectionHandlerable) + GetOnAttributeCollectionStart()(OnAttributeCollectionStartHandlerable) + GetOnAttributeCollectionSubmit()(OnAttributeCollectionSubmitHandlerable) GetOnAuthenticationMethodLoadStart()(OnAuthenticationMethodLoadStartHandlerable) GetOnInteractiveAuthFlowStart()(OnInteractiveAuthFlowStartHandlerable) GetOnUserCreateStart()(OnUserCreateStartHandlerable) SetOnAttributeCollection(value OnAttributeCollectionHandlerable)() + SetOnAttributeCollectionStart(value OnAttributeCollectionStartHandlerable)() + SetOnAttributeCollectionSubmit(value OnAttributeCollectionSubmitHandlerable)() SetOnAuthenticationMethodLoadStart(value OnAuthenticationMethodLoadStartHandlerable)() SetOnInteractiveAuthFlowStart(value OnInteractiveAuthFlowStartHandlerable)() SetOnUserCreateStart(value OnUserCreateStartHandlerable)() diff --git a/models/identity.go b/models/identity.go index 1faf1a22b02..9d1e28cdf53 100644 --- a/models/identity.go +++ b/models/identity.go @@ -96,7 +96,7 @@ func (m *Identity) GetAdditionalData()(map[string]any) { func (m *Identity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDisplayName gets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. +// GetDisplayName gets the displayName property value. The display name of the identity. This property is read-only. func (m *Identity) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -142,7 +142,7 @@ func (m *Identity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetId gets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. +// GetId gets the id property value. The identifier of the identity. This property is read-only. func (m *Identity) GetId()(*string) { val, err := m.GetBackingStore().Get("id") if err != nil { @@ -203,14 +203,14 @@ func (m *Identity) SetAdditionalData(value map[string]any)() { func (m *Identity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDisplayName sets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. +// SetDisplayName sets the displayName property value. The display name of the identity. This property is read-only. func (m *Identity) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetId sets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. +// SetId sets the id property value. The identifier of the identity. This property is read-only. func (m *Identity) SetId(value *string)() { err := m.GetBackingStore().Set("id", value) if err != nil { diff --git a/models/key_value.go b/models/key_value.go index f457b180f2f..bc582aa0d2e 100644 --- a/models/key_value.go +++ b/models/key_value.go @@ -73,7 +73,7 @@ func (m *KeyValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetKey gets the key property value. Key. +// GetKey gets the key property value. Contains the name of the field that a value is associated with. func (m *KeyValue) GetKey()(*string) { val, err := m.GetBackingStore().Get("key") if err != nil { @@ -95,7 +95,7 @@ func (m *KeyValue) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. Value. +// GetValue gets the value property value. Contains the corresponding value for the specified key. func (m *KeyValue) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -145,7 +145,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. Key. +// SetKey sets the key property value. Contains the name of the field that a value is associated with. func (m *KeyValue) SetKey(value *string)() { err := m.GetBackingStore().Set("key", value) if err != nil { @@ -159,7 +159,7 @@ func (m *KeyValue) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. Value. +// SetValue sets the value property value. Contains the corresponding value for the specified key. func (m *KeyValue) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/long_running_operation.go b/models/long_running_operation.go index 9faf07d84e4..c2a99586a60 100644 --- a/models/long_running_operation.go +++ b/models/long_running_operation.go @@ -32,6 +32,8 @@ func CreateLongRunningOperationFromDiscriminatorValue(parseNode i878a80d2330e89d switch *mappingValue { case "#microsoft.graph.attackSimulationOperation": return NewAttackSimulationOperation(), nil + case "#microsoft.graph.engagementAsyncOperation": + return NewEngagementAsyncOperation(), nil case "#microsoft.graph.goalsExportJob": return NewGoalsExportJob(), nil case "#microsoft.graph.richLongRunningOperation": diff --git a/models/m365_apps_installation_options.go b/models/m365_apps_installation_options.go new file mode 100644 index 00000000000..4771ea6954f --- /dev/null +++ b/models/m365_apps_installation_options.go @@ -0,0 +1,148 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// M365AppsInstallationOptions +type M365AppsInstallationOptions struct { + Entity +} +// NewM365AppsInstallationOptions instantiates a new m365AppsInstallationOptions and sets the default values. +func NewM365AppsInstallationOptions()(*M365AppsInstallationOptions) { + m := &M365AppsInstallationOptions{ + Entity: *NewEntity(), + } + return m +} +// CreateM365AppsInstallationOptionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateM365AppsInstallationOptionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewM365AppsInstallationOptions(), nil +} +// GetAppsForMac gets the appsForMac property value. The appsForMac property +func (m *M365AppsInstallationOptions) GetAppsForMac()(AppsInstallationOptionsForMacable) { + val, err := m.GetBackingStore().Get("appsForMac") + if err != nil { + panic(err) + } + if val != nil { + return val.(AppsInstallationOptionsForMacable) + } + return nil +} +// GetAppsForWindows gets the appsForWindows property value. The appsForWindows property +func (m *M365AppsInstallationOptions) GetAppsForWindows()(AppsInstallationOptionsForWindowsable) { + val, err := m.GetBackingStore().Get("appsForWindows") + if err != nil { + panic(err) + } + if val != nil { + return val.(AppsInstallationOptionsForWindowsable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *M365AppsInstallationOptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["appsForMac"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAppsInstallationOptionsForMacFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppsForMac(val.(AppsInstallationOptionsForMacable)) + } + return nil + } + res["appsForWindows"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAppsInstallationOptionsForWindowsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppsForWindows(val.(AppsInstallationOptionsForWindowsable)) + } + return nil + } + res["updateChannel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAppsUpdateChannelType) + if err != nil { + return err + } + if val != nil { + m.SetUpdateChannel(val.(*AppsUpdateChannelType)) + } + return nil + } + return res +} +// GetUpdateChannel gets the updateChannel property value. The updateChannel property +func (m *M365AppsInstallationOptions) GetUpdateChannel()(*AppsUpdateChannelType) { + val, err := m.GetBackingStore().Get("updateChannel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AppsUpdateChannelType) + } + return nil +} +// Serialize serializes information the current object +func (m *M365AppsInstallationOptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("appsForMac", m.GetAppsForMac()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("appsForWindows", m.GetAppsForWindows()) + if err != nil { + return err + } + } + if m.GetUpdateChannel() != nil { + cast := (*m.GetUpdateChannel()).String() + err = writer.WriteStringValue("updateChannel", &cast) + if err != nil { + return err + } + } + return nil +} +// SetAppsForMac sets the appsForMac property value. The appsForMac property +func (m *M365AppsInstallationOptions) SetAppsForMac(value AppsInstallationOptionsForMacable)() { + err := m.GetBackingStore().Set("appsForMac", value) + if err != nil { + panic(err) + } +} +// SetAppsForWindows sets the appsForWindows property value. The appsForWindows property +func (m *M365AppsInstallationOptions) SetAppsForWindows(value AppsInstallationOptionsForWindowsable)() { + err := m.GetBackingStore().Set("appsForWindows", value) + if err != nil { + panic(err) + } +} +// SetUpdateChannel sets the updateChannel property value. The updateChannel property +func (m *M365AppsInstallationOptions) SetUpdateChannel(value *AppsUpdateChannelType)() { + err := m.GetBackingStore().Set("updateChannel", value) + if err != nil { + panic(err) + } +} +// M365AppsInstallationOptionsable +type M365AppsInstallationOptionsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppsForMac()(AppsInstallationOptionsForMacable) + GetAppsForWindows()(AppsInstallationOptionsForWindowsable) + GetUpdateChannel()(*AppsUpdateChannelType) + SetAppsForMac(value AppsInstallationOptionsForMacable)() + SetAppsForWindows(value AppsInstallationOptionsForWindowsable)() + SetUpdateChannel(value *AppsUpdateChannelType)() +} diff --git a/models/mac_os_lob_app_assignment_settings.go b/models/mac_os_lob_app_assignment_settings.go index 3f00c04ddb3..1ef77798b5e 100644 --- a/models/mac_os_lob_app_assignment_settings.go +++ b/models/mac_os_lob_app_assignment_settings.go @@ -36,7 +36,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. func (m *MacOsLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") if err != nil { @@ -61,7 +61,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/microsoft_managed_desktop.go b/models/microsoft_managed_desktop.go index 4066815c311..987aae7288e 100644 --- a/models/microsoft_managed_desktop.go +++ b/models/microsoft_managed_desktop.go @@ -41,6 +41,16 @@ func (m *MicrosoftManagedDesktop) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd // GetFieldDeserializers the deserialization information for the current model func (m *MicrosoftManagedDesktop) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["managedType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMicrosoftManagedDesktopType) + if err != nil { + return err + } + if val != nil { + m.SetManagedType(val.(*MicrosoftManagedDesktopType)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -73,6 +83,17 @@ func (m *MicrosoftManagedDesktop) GetFieldDeserializers()(map[string]func(i878a8 } return res } +// GetManagedType gets the managedType property value. The managedType property +func (m *MicrosoftManagedDesktop) GetManagedType()(*MicrosoftManagedDesktopType) { + val, err := m.GetBackingStore().Get("managedType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MicrosoftManagedDesktopType) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *MicrosoftManagedDesktop) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -108,6 +129,13 @@ func (m *MicrosoftManagedDesktop) GetTypeEscaped()(*MicrosoftManagedDesktopType) } // Serialize serializes information the current object func (m *MicrosoftManagedDesktop) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetManagedType() != nil { + cast := (*m.GetManagedType()).String() + err := writer.WriteStringValue("managedType", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -146,6 +174,13 @@ func (m *MicrosoftManagedDesktop) SetAdditionalData(value map[string]any)() { func (m *MicrosoftManagedDesktop) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetManagedType sets the managedType property value. The managedType property +func (m *MicrosoftManagedDesktop) SetManagedType(value *MicrosoftManagedDesktopType)() { + err := m.GetBackingStore().Set("managedType", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *MicrosoftManagedDesktop) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -173,10 +208,12 @@ type MicrosoftManagedDesktopable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetManagedType()(*MicrosoftManagedDesktopType) GetOdataType()(*string) GetProfile()(*string) GetTypeEscaped()(*MicrosoftManagedDesktopType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetManagedType(value *MicrosoftManagedDesktopType)() SetOdataType(value *string)() SetProfile(value *string)() SetTypeEscaped(value *MicrosoftManagedDesktopType)() diff --git a/models/on_attribute_collection_start_custom_extension.go b/models/on_attribute_collection_start_custom_extension.go new file mode 100644 index 00000000000..877882d9f06 --- /dev/null +++ b/models/on_attribute_collection_start_custom_extension.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionStartCustomExtension +type OnAttributeCollectionStartCustomExtension struct { + CustomAuthenticationExtension +} +// NewOnAttributeCollectionStartCustomExtension instantiates a new onAttributeCollectionStartCustomExtension and sets the default values. +func NewOnAttributeCollectionStartCustomExtension()(*OnAttributeCollectionStartCustomExtension) { + m := &OnAttributeCollectionStartCustomExtension{ + CustomAuthenticationExtension: *NewCustomAuthenticationExtension(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionStartCustomExtension" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionStartCustomExtensionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartCustomExtensionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionStartCustomExtension(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartCustomExtension) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CustomAuthenticationExtension.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartCustomExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CustomAuthenticationExtension.Serialize(writer) + if err != nil { + return err + } + return nil +} +// OnAttributeCollectionStartCustomExtensionable +type OnAttributeCollectionStartCustomExtensionable interface { + CustomAuthenticationExtensionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/on_attribute_collection_start_custom_extension_handler.go b/models/on_attribute_collection_start_custom_extension_handler.go new file mode 100644 index 00000000000..9000335fe31 --- /dev/null +++ b/models/on_attribute_collection_start_custom_extension_handler.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionStartCustomExtensionHandler +type OnAttributeCollectionStartCustomExtensionHandler struct { + OnAttributeCollectionStartHandler +} +// NewOnAttributeCollectionStartCustomExtensionHandler instantiates a new onAttributeCollectionStartCustomExtensionHandler and sets the default values. +func NewOnAttributeCollectionStartCustomExtensionHandler()(*OnAttributeCollectionStartCustomExtensionHandler) { + m := &OnAttributeCollectionStartCustomExtensionHandler{ + OnAttributeCollectionStartHandler: *NewOnAttributeCollectionStartHandler(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionStartCustomExtensionHandler" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionStartCustomExtensionHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartCustomExtensionHandlerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionStartCustomExtensionHandler(), nil +} +// GetConfiguration gets the configuration property value. The configuration property +func (m *OnAttributeCollectionStartCustomExtensionHandler) GetConfiguration()(CustomExtensionOverwriteConfigurationable) { + val, err := m.GetBackingStore().Get("configuration") + if err != nil { + panic(err) + } + if val != nil { + return val.(CustomExtensionOverwriteConfigurationable) + } + return nil +} +// GetCustomExtension gets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionStartCustomExtensionHandler) GetCustomExtension()(OnAttributeCollectionStartCustomExtensionable) { + val, err := m.GetBackingStore().Get("customExtension") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionStartCustomExtensionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartCustomExtensionHandler) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OnAttributeCollectionStartHandler.GetFieldDeserializers() + res["configuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCustomExtensionOverwriteConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConfiguration(val.(CustomExtensionOverwriteConfigurationable)) + } + return nil + } + res["customExtension"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionStartCustomExtensionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCustomExtension(val.(OnAttributeCollectionStartCustomExtensionable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartCustomExtensionHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OnAttributeCollectionStartHandler.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("configuration", m.GetConfiguration()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("customExtension", m.GetCustomExtension()) + if err != nil { + return err + } + } + return nil +} +// SetConfiguration sets the configuration property value. The configuration property +func (m *OnAttributeCollectionStartCustomExtensionHandler) SetConfiguration(value CustomExtensionOverwriteConfigurationable)() { + err := m.GetBackingStore().Set("configuration", value) + if err != nil { + panic(err) + } +} +// SetCustomExtension sets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionStartCustomExtensionHandler) SetCustomExtension(value OnAttributeCollectionStartCustomExtensionable)() { + err := m.GetBackingStore().Set("customExtension", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionStartCustomExtensionHandlerable +type OnAttributeCollectionStartCustomExtensionHandlerable interface { + OnAttributeCollectionStartHandlerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConfiguration()(CustomExtensionOverwriteConfigurationable) + GetCustomExtension()(OnAttributeCollectionStartCustomExtensionable) + SetConfiguration(value CustomExtensionOverwriteConfigurationable)() + SetCustomExtension(value OnAttributeCollectionStartCustomExtensionable)() +} diff --git a/models/on_attribute_collection_start_handler.go b/models/on_attribute_collection_start_handler.go new file mode 100644 index 00000000000..caf4b3ed518 --- /dev/null +++ b/models/on_attribute_collection_start_handler.go @@ -0,0 +1,128 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// OnAttributeCollectionStartHandler +type OnAttributeCollectionStartHandler struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOnAttributeCollectionStartHandler instantiates a new onAttributeCollectionStartHandler and sets the default values. +func NewOnAttributeCollectionStartHandler()(*OnAttributeCollectionStartHandler) { + m := &OnAttributeCollectionStartHandler{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue(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.onAttributeCollectionStartCustomExtensionHandler": + return NewOnAttributeCollectionStartCustomExtensionHandler(), nil + } + } + } + } + return NewOnAttributeCollectionStartHandler(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnAttributeCollectionStartHandler) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionStartHandler) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartHandler) 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 +func (m *OnAttributeCollectionStartHandler) 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 *OnAttributeCollectionStartHandler) 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 *OnAttributeCollectionStartHandler) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionStartHandler) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnAttributeCollectionStartHandler) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionStartHandlerable +type OnAttributeCollectionStartHandlerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/on_attribute_collection_start_listener.go b/models/on_attribute_collection_start_listener.go new file mode 100644 index 00000000000..d6cbc1f48b5 --- /dev/null +++ b/models/on_attribute_collection_start_listener.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionStartListener +type OnAttributeCollectionStartListener struct { + AuthenticationEventListener +} +// NewOnAttributeCollectionStartListener instantiates a new onAttributeCollectionStartListener and sets the default values. +func NewOnAttributeCollectionStartListener()(*OnAttributeCollectionStartListener) { + m := &OnAttributeCollectionStartListener{ + AuthenticationEventListener: *NewAuthenticationEventListener(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionStartListener" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionStartListenerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartListenerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionStartListener(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartListener) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuthenticationEventListener.GetFieldDeserializers() + res["handler"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHandler(val.(OnAttributeCollectionStartHandlerable)) + } + return nil + } + return res +} +// GetHandler gets the handler property value. The handler property +func (m *OnAttributeCollectionStartListener) GetHandler()(OnAttributeCollectionStartHandlerable) { + val, err := m.GetBackingStore().Get("handler") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionStartHandlerable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartListener) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuthenticationEventListener.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("handler", m.GetHandler()) + if err != nil { + return err + } + } + return nil +} +// SetHandler sets the handler property value. The handler property +func (m *OnAttributeCollectionStartListener) SetHandler(value OnAttributeCollectionStartHandlerable)() { + err := m.GetBackingStore().Set("handler", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionStartListenerable +type OnAttributeCollectionStartListenerable interface { + AuthenticationEventListenerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHandler()(OnAttributeCollectionStartHandlerable) + SetHandler(value OnAttributeCollectionStartHandlerable)() +} diff --git a/models/on_attribute_collection_submit_custom_extension.go b/models/on_attribute_collection_submit_custom_extension.go new file mode 100644 index 00000000000..39052af99d3 --- /dev/null +++ b/models/on_attribute_collection_submit_custom_extension.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionSubmitCustomExtension +type OnAttributeCollectionSubmitCustomExtension struct { + CustomAuthenticationExtension +} +// NewOnAttributeCollectionSubmitCustomExtension instantiates a new onAttributeCollectionSubmitCustomExtension and sets the default values. +func NewOnAttributeCollectionSubmitCustomExtension()(*OnAttributeCollectionSubmitCustomExtension) { + m := &OnAttributeCollectionSubmitCustomExtension{ + CustomAuthenticationExtension: *NewCustomAuthenticationExtension(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionSubmitCustomExtension" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionSubmitCustomExtensionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitCustomExtensionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionSubmitCustomExtension(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitCustomExtension) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CustomAuthenticationExtension.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitCustomExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CustomAuthenticationExtension.Serialize(writer) + if err != nil { + return err + } + return nil +} +// OnAttributeCollectionSubmitCustomExtensionable +type OnAttributeCollectionSubmitCustomExtensionable interface { + CustomAuthenticationExtensionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/on_attribute_collection_submit_custom_extension_handler.go b/models/on_attribute_collection_submit_custom_extension_handler.go new file mode 100644 index 00000000000..b42924431ef --- /dev/null +++ b/models/on_attribute_collection_submit_custom_extension_handler.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionSubmitCustomExtensionHandler +type OnAttributeCollectionSubmitCustomExtensionHandler struct { + OnAttributeCollectionSubmitHandler +} +// NewOnAttributeCollectionSubmitCustomExtensionHandler instantiates a new onAttributeCollectionSubmitCustomExtensionHandler and sets the default values. +func NewOnAttributeCollectionSubmitCustomExtensionHandler()(*OnAttributeCollectionSubmitCustomExtensionHandler) { + m := &OnAttributeCollectionSubmitCustomExtensionHandler{ + OnAttributeCollectionSubmitHandler: *NewOnAttributeCollectionSubmitHandler(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionSubmitCustomExtensionHandler" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionSubmitCustomExtensionHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitCustomExtensionHandlerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionSubmitCustomExtensionHandler(), nil +} +// GetConfiguration gets the configuration property value. The configuration property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) GetConfiguration()(CustomExtensionOverwriteConfigurationable) { + val, err := m.GetBackingStore().Get("configuration") + if err != nil { + panic(err) + } + if val != nil { + return val.(CustomExtensionOverwriteConfigurationable) + } + return nil +} +// GetCustomExtension gets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) GetCustomExtension()(OnAttributeCollectionSubmitCustomExtensionable) { + val, err := m.GetBackingStore().Get("customExtension") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionSubmitCustomExtensionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OnAttributeCollectionSubmitHandler.GetFieldDeserializers() + res["configuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCustomExtensionOverwriteConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConfiguration(val.(CustomExtensionOverwriteConfigurationable)) + } + return nil + } + res["customExtension"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionSubmitCustomExtensionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCustomExtension(val.(OnAttributeCollectionSubmitCustomExtensionable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OnAttributeCollectionSubmitHandler.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("configuration", m.GetConfiguration()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("customExtension", m.GetCustomExtension()) + if err != nil { + return err + } + } + return nil +} +// SetConfiguration sets the configuration property value. The configuration property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) SetConfiguration(value CustomExtensionOverwriteConfigurationable)() { + err := m.GetBackingStore().Set("configuration", value) + if err != nil { + panic(err) + } +} +// SetCustomExtension sets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) SetCustomExtension(value OnAttributeCollectionSubmitCustomExtensionable)() { + err := m.GetBackingStore().Set("customExtension", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionSubmitCustomExtensionHandlerable +type OnAttributeCollectionSubmitCustomExtensionHandlerable interface { + OnAttributeCollectionSubmitHandlerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConfiguration()(CustomExtensionOverwriteConfigurationable) + GetCustomExtension()(OnAttributeCollectionSubmitCustomExtensionable) + SetConfiguration(value CustomExtensionOverwriteConfigurationable)() + SetCustomExtension(value OnAttributeCollectionSubmitCustomExtensionable)() +} diff --git a/models/on_attribute_collection_submit_handler.go b/models/on_attribute_collection_submit_handler.go new file mode 100644 index 00000000000..4d40b45e0ca --- /dev/null +++ b/models/on_attribute_collection_submit_handler.go @@ -0,0 +1,128 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// OnAttributeCollectionSubmitHandler +type OnAttributeCollectionSubmitHandler struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOnAttributeCollectionSubmitHandler instantiates a new onAttributeCollectionSubmitHandler and sets the default values. +func NewOnAttributeCollectionSubmitHandler()(*OnAttributeCollectionSubmitHandler) { + m := &OnAttributeCollectionSubmitHandler{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue(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.onAttributeCollectionSubmitCustomExtensionHandler": + return NewOnAttributeCollectionSubmitCustomExtensionHandler(), nil + } + } + } + } + return NewOnAttributeCollectionSubmitHandler(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnAttributeCollectionSubmitHandler) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionSubmitHandler) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitHandler) 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 +func (m *OnAttributeCollectionSubmitHandler) 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 *OnAttributeCollectionSubmitHandler) 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 *OnAttributeCollectionSubmitHandler) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionSubmitHandler) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnAttributeCollectionSubmitHandler) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionSubmitHandlerable +type OnAttributeCollectionSubmitHandlerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/on_attribute_collection_submit_listener.go b/models/on_attribute_collection_submit_listener.go new file mode 100644 index 00000000000..97742d0326d --- /dev/null +++ b/models/on_attribute_collection_submit_listener.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionSubmitListener +type OnAttributeCollectionSubmitListener struct { + AuthenticationEventListener +} +// NewOnAttributeCollectionSubmitListener instantiates a new onAttributeCollectionSubmitListener and sets the default values. +func NewOnAttributeCollectionSubmitListener()(*OnAttributeCollectionSubmitListener) { + m := &OnAttributeCollectionSubmitListener{ + AuthenticationEventListener: *NewAuthenticationEventListener(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionSubmitListener" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionSubmitListenerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitListenerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionSubmitListener(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitListener) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuthenticationEventListener.GetFieldDeserializers() + res["handler"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHandler(val.(OnAttributeCollectionSubmitHandlerable)) + } + return nil + } + return res +} +// GetHandler gets the handler property value. The handler property +func (m *OnAttributeCollectionSubmitListener) GetHandler()(OnAttributeCollectionSubmitHandlerable) { + val, err := m.GetBackingStore().Get("handler") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionSubmitHandlerable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitListener) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuthenticationEventListener.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("handler", m.GetHandler()) + if err != nil { + return err + } + } + return nil +} +// SetHandler sets the handler property value. The handler property +func (m *OnAttributeCollectionSubmitListener) SetHandler(value OnAttributeCollectionSubmitHandlerable)() { + err := m.GetBackingStore().Set("handler", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionSubmitListenerable +type OnAttributeCollectionSubmitListenerable interface { + AuthenticationEventListenerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHandler()(OnAttributeCollectionSubmitHandlerable) + SetHandler(value OnAttributeCollectionSubmitHandlerable)() +} diff --git a/models/planner_archival_info.go b/models/planner_archival_info.go new file mode 100644 index 00000000000..0410d4e06ae --- /dev/null +++ b/models/planner_archival_info.go @@ -0,0 +1,219 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlannerArchivalInfo +type PlannerArchivalInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlannerArchivalInfo instantiates a new plannerArchivalInfo and sets the default values. +func NewPlannerArchivalInfo()(*PlannerArchivalInfo) { + m := &PlannerArchivalInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlannerArchivalInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerArchivalInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerArchivalInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerArchivalInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlannerArchivalInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerArchivalInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(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["statusChangedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStatusChangedBy(val.(IdentitySetable)) + } + return nil + } + res["statusChangedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusChangedDateTime(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *PlannerArchivalInfo) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerArchivalInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStatusChangedBy gets the statusChangedBy property value. The statusChangedBy property +func (m *PlannerArchivalInfo) GetStatusChangedBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("statusChangedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} +// GetStatusChangedDateTime gets the statusChangedDateTime property value. The statusChangedDateTime property +func (m *PlannerArchivalInfo) GetStatusChangedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("statusChangedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerArchivalInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("statusChangedBy", m.GetStatusChangedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusChangedDateTime", m.GetStatusChangedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerArchivalInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlannerArchivalInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *PlannerArchivalInfo) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerArchivalInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStatusChangedBy sets the statusChangedBy property value. The statusChangedBy property +func (m *PlannerArchivalInfo) SetStatusChangedBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("statusChangedBy", value) + if err != nil { + panic(err) + } +} +// SetStatusChangedDateTime sets the statusChangedDateTime property value. The statusChangedDateTime property +func (m *PlannerArchivalInfo) SetStatusChangedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("statusChangedDateTime", value) + if err != nil { + panic(err) + } +} +// PlannerArchivalInfoable +type PlannerArchivalInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + GetOdataType()(*string) + GetStatusChangedBy()(IdentitySetable) + GetStatusChangedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() + SetOdataType(value *string)() + SetStatusChangedBy(value IdentitySetable)() + SetStatusChangedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/planner_bucket.go b/models/planner_bucket.go index 868a8246a28..d977efb362d 100644 --- a/models/planner_bucket.go +++ b/models/planner_bucket.go @@ -19,6 +19,17 @@ func NewPlannerBucket()(*PlannerBucket) { func CreatePlannerBucketFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPlannerBucket(), nil } +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +func (m *PlannerBucket) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} // GetCreationSource gets the creationSource property value. Contains information about the origin of the bucket. func (m *PlannerBucket) GetCreationSource()(PlannerBucketCreationable) { val, err := m.GetBackingStore().Get("creationSource") @@ -33,6 +44,16 @@ func (m *PlannerBucket) GetCreationSource()(PlannerBucketCreationable) { // GetFieldDeserializers the deserialization information for the current model func (m *PlannerBucket) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PlannerDelta.GetFieldDeserializers() + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } res["creationSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePlannerBucketCreationFromDiscriminatorValue) if err != nil { @@ -43,6 +64,16 @@ func (m *PlannerBucket) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -91,6 +122,17 @@ func (m *PlannerBucket) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *PlannerBucket) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetName gets the name property value. Name of the bucket. func (m *PlannerBucket) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -141,12 +183,24 @@ func (m *PlannerBucket) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 if err != nil { return err } + { + err = writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("creationSource", m.GetCreationSource()) if err != nil { return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("name", m.GetName()) if err != nil { @@ -179,6 +233,13 @@ func (m *PlannerBucket) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerBucket) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} // SetCreationSource sets the creationSource property value. Contains information about the origin of the bucket. func (m *PlannerBucket) SetCreationSource(value PlannerBucketCreationable)() { err := m.GetBackingStore().Set("creationSource", value) @@ -186,6 +247,13 @@ func (m *PlannerBucket) SetCreationSource(value PlannerBucketCreationable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerBucket) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetName sets the name property value. Name of the bucket. func (m *PlannerBucket) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) @@ -218,12 +286,16 @@ func (m *PlannerBucket) SetTasks(value []PlannerTaskable)() { type PlannerBucketable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PlannerDeltaable + GetArchivalInfo()(PlannerArchivalInfoable) GetCreationSource()(PlannerBucketCreationable) + GetIsArchived()(*bool) GetName()(*string) GetOrderHint()(*string) GetPlanId()(*string) GetTasks()([]PlannerTaskable) + SetArchivalInfo(value PlannerArchivalInfoable)() SetCreationSource(value PlannerBucketCreationable)() + SetIsArchived(value *bool)() SetName(value *string)() SetOrderHint(value *string)() SetPlanId(value *string)() diff --git a/models/planner_forms_dictionary.go b/models/planner_forms_dictionary.go new file mode 100644 index 00000000000..ed0cc9a6336 --- /dev/null +++ b/models/planner_forms_dictionary.go @@ -0,0 +1,39 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// PlannerFormsDictionary +type PlannerFormsDictionary struct { + Dictionary +} +// NewPlannerFormsDictionary instantiates a new plannerFormsDictionary and sets the default values. +func NewPlannerFormsDictionary()(*PlannerFormsDictionary) { + m := &PlannerFormsDictionary{ + Dictionary: *NewDictionary(), + } + return m +} +// CreatePlannerFormsDictionaryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerFormsDictionaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerFormsDictionary(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerFormsDictionary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Dictionary.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *PlannerFormsDictionary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Dictionary.Serialize(writer) + if err != nil { + return err + } + return nil +} +// PlannerFormsDictionaryable +type PlannerFormsDictionaryable interface { + Dictionaryable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/planner_forms_requirement.go b/models/planner_forms_requirement.go new file mode 100644 index 00000000000..b8d2283c047 --- /dev/null +++ b/models/planner_forms_requirement.go @@ -0,0 +1,152 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlannerFormsRequirement +type PlannerFormsRequirement struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlannerFormsRequirement instantiates a new plannerFormsRequirement and sets the default values. +func NewPlannerFormsRequirement()(*PlannerFormsRequirement) { + m := &PlannerFormsRequirement{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlannerFormsRequirementFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerFormsRequirementFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerFormsRequirement(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerFormsRequirement) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlannerFormsRequirement) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerFormsRequirement) 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["requiredForms"] = 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.SetRequiredForms(res) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerFormsRequirement) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRequiredForms gets the requiredForms property value. The requiredForms property +func (m *PlannerFormsRequirement) GetRequiredForms()([]string) { + val, err := m.GetBackingStore().Get("requiredForms") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerFormsRequirement) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRequiredForms() != nil { + err := writer.WriteCollectionOfStringValues("requiredForms", m.GetRequiredForms()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerFormsRequirement) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlannerFormsRequirement) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerFormsRequirement) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRequiredForms sets the requiredForms property value. The requiredForms property +func (m *PlannerFormsRequirement) SetRequiredForms(value []string)() { + err := m.GetBackingStore().Set("requiredForms", value) + if err != nil { + panic(err) + } +} +// PlannerFormsRequirementable +type PlannerFormsRequirementable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetRequiredForms()([]string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetRequiredForms(value []string)() +} diff --git a/models/planner_plan.go b/models/planner_plan.go index e51367314e6..bbcf9efa539 100644 --- a/models/planner_plan.go +++ b/models/planner_plan.go @@ -20,6 +20,17 @@ func NewPlannerPlan()(*PlannerPlan) { func CreatePlannerPlanFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPlannerPlan(), nil } +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +func (m *PlannerPlan) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} // GetBuckets gets the buckets property value. Collection of buckets in the plan. Read-only. Nullable. func (m *PlannerPlan) GetBuckets()([]PlannerBucketable) { val, err := m.GetBackingStore().Get("buckets") @@ -100,6 +111,16 @@ func (m *PlannerPlan) GetDetails()(PlannerPlanDetailsable) { // GetFieldDeserializers the deserialization information for the current model func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PlannerDelta.GetFieldDeserializers() + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } res["buckets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreatePlannerBucketFromDiscriminatorValue) if err != nil { @@ -176,6 +197,16 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -230,6 +261,17 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *PlannerPlan) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetOwner gets the owner property value. The owner property func (m *PlannerPlan) GetOwner()(*string) { val, err := m.GetBackingStore().Get("owner") @@ -280,6 +322,12 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 if err != nil { return err } + { + err = writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } if m.GetBuckets() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBuckets())) for i, v := range m.GetBuckets() { @@ -328,6 +376,12 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("owner", m.GetOwner()) if err != nil { @@ -366,6 +420,13 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerPlan) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} // SetBuckets sets the buckets property value. Collection of buckets in the plan. Read-only. Nullable. func (m *PlannerPlan) SetBuckets(value []PlannerBucketable)() { err := m.GetBackingStore().Set("buckets", value) @@ -415,6 +476,13 @@ func (m *PlannerPlan) SetDetails(value PlannerPlanDetailsable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerPlan) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetOwner sets the owner property value. The owner property func (m *PlannerPlan) SetOwner(value *string)() { err := m.GetBackingStore().Set("owner", value) @@ -447,6 +515,7 @@ func (m *PlannerPlan) SetTitle(value *string)() { type PlannerPlanable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PlannerDeltaable + GetArchivalInfo()(PlannerArchivalInfoable) GetBuckets()([]PlannerBucketable) GetContainer()(PlannerPlanContainerable) GetContexts()(PlannerPlanContextCollectionable) @@ -454,10 +523,12 @@ type PlannerPlanable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreationSource()(PlannerPlanCreationable) GetDetails()(PlannerPlanDetailsable) + GetIsArchived()(*bool) GetOwner()(*string) GetSharedWithContainers()([]PlannerSharedWithContainerable) GetTasks()([]PlannerTaskable) GetTitle()(*string) + SetArchivalInfo(value PlannerArchivalInfoable)() SetBuckets(value []PlannerBucketable)() SetContainer(value PlannerPlanContainerable)() SetContexts(value PlannerPlanContextCollectionable)() @@ -465,6 +536,7 @@ type PlannerPlanable interface { SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreationSource(value PlannerPlanCreationable)() SetDetails(value PlannerPlanDetailsable)() + SetIsArchived(value *bool)() SetOwner(value *string)() SetSharedWithContainers(value []PlannerSharedWithContainerable)() SetTasks(value []PlannerTaskable)() diff --git a/models/planner_task.go b/models/planner_task.go index f409916827f..287b5f37064 100644 --- a/models/planner_task.go +++ b/models/planner_task.go @@ -60,6 +60,17 @@ func (m *PlannerTask) GetAppliedCategories()(PlannerAppliedCategoriesable) { } return nil } +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +func (m *PlannerTask) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} // GetAssignedToTaskBoardFormat gets the assignedToTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. func (m *PlannerTask) GetAssignedToTaskBoardFormat()(PlannerAssignedToTaskBoardTaskFormatable) { val, err := m.GetBackingStore().Get("assignedToTaskBoardFormat") @@ -237,6 +248,16 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } res["assignedToTaskBoardFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue) if err != nil { @@ -387,6 +408,36 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } + res["isOnMyDay"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnMyDay(val) + } + return nil + } + res["isOnMyDayLastModifiedDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnMyDayLastModifiedDate(val) + } + return nil + } res["orderHint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -510,6 +561,39 @@ func (m *PlannerTask) GetHasDescription()(*bool) { } return nil } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *PlannerTask) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnMyDay gets the isOnMyDay property value. The isOnMyDay property +func (m *PlannerTask) GetIsOnMyDay()(*bool) { + val, err := m.GetBackingStore().Get("isOnMyDay") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnMyDayLastModifiedDate gets the isOnMyDayLastModifiedDate property value. The isOnMyDayLastModifiedDate property +func (m *PlannerTask) GetIsOnMyDayLastModifiedDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("isOnMyDayLastModifiedDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} // GetOrderHint gets the orderHint property value. Hint used to order items of this type in a list view. The format is defined as outlined here. func (m *PlannerTask) GetOrderHint()(*string) { val, err := m.GetBackingStore().Get("orderHint") @@ -649,6 +733,12 @@ func (m *PlannerTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("assignedToTaskBoardFormat", m.GetAssignedToTaskBoardFormat()) if err != nil { @@ -739,6 +829,24 @@ func (m *PlannerTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isOnMyDay", m.GetIsOnMyDay()) + if err != nil { + return err + } + } + { + err = writer.WriteDateOnlyValue("isOnMyDayLastModifiedDate", m.GetIsOnMyDayLastModifiedDate()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("orderHint", m.GetOrderHint()) if err != nil { @@ -823,6 +931,13 @@ func (m *PlannerTask) SetAppliedCategories(value PlannerAppliedCategoriesable)() panic(err) } } +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerTask) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} // SetAssignedToTaskBoardFormat sets the assignedToTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. func (m *PlannerTask) SetAssignedToTaskBoardFormat(value PlannerAssignedToTaskBoardTaskFormatable)() { err := m.GetBackingStore().Set("assignedToTaskBoardFormat", value) @@ -928,6 +1043,27 @@ func (m *PlannerTask) SetHasDescription(value *bool)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerTask) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} +// SetIsOnMyDay sets the isOnMyDay property value. The isOnMyDay property +func (m *PlannerTask) SetIsOnMyDay(value *bool)() { + err := m.GetBackingStore().Set("isOnMyDay", value) + if err != nil { + panic(err) + } +} +// SetIsOnMyDayLastModifiedDate sets the isOnMyDayLastModifiedDate property value. The isOnMyDayLastModifiedDate property +func (m *PlannerTask) SetIsOnMyDayLastModifiedDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("isOnMyDayLastModifiedDate", value) + if err != nil { + panic(err) + } +} // SetOrderHint sets the orderHint property value. Hint used to order items of this type in a list view. The format is defined as outlined here. func (m *PlannerTask) SetOrderHint(value *string)() { err := m.GetBackingStore().Set("orderHint", value) @@ -1011,6 +1147,7 @@ type PlannerTaskable interface { PlannerDeltaable GetActiveChecklistItemCount()(*int32) GetAppliedCategories()(PlannerAppliedCategoriesable) + GetArchivalInfo()(PlannerArchivalInfoable) GetAssignedToTaskBoardFormat()(PlannerAssignedToTaskBoardTaskFormatable) GetAssigneePriority()(*string) GetAssignments()(PlannerAssignmentsable) @@ -1026,6 +1163,9 @@ type PlannerTaskable interface { GetDetails()(PlannerTaskDetailsable) GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetHasDescription()(*bool) + GetIsArchived()(*bool) + GetIsOnMyDay()(*bool) + GetIsOnMyDayLastModifiedDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetOrderHint()(*string) GetPercentComplete()(*int32) GetPlanId()(*string) @@ -1039,6 +1179,7 @@ type PlannerTaskable interface { GetTitle()(*string) SetActiveChecklistItemCount(value *int32)() SetAppliedCategories(value PlannerAppliedCategoriesable)() + SetArchivalInfo(value PlannerArchivalInfoable)() SetAssignedToTaskBoardFormat(value PlannerAssignedToTaskBoardTaskFormatable)() SetAssigneePriority(value *string)() SetAssignments(value PlannerAssignmentsable)() @@ -1054,6 +1195,9 @@ type PlannerTaskable interface { SetDetails(value PlannerTaskDetailsable)() SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetHasDescription(value *bool)() + SetIsArchived(value *bool)() + SetIsOnMyDay(value *bool)() + SetIsOnMyDayLastModifiedDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetOrderHint(value *string)() SetPercentComplete(value *int32)() SetPlanId(value *string)() diff --git a/models/planner_task_completion_requirement_details.go b/models/planner_task_completion_requirement_details.go index 964a9c282c2..6244f1bf6f1 100644 --- a/models/planner_task_completion_requirement_details.go +++ b/models/planner_task_completion_requirement_details.go @@ -62,6 +62,16 @@ func (m *PlannerTaskCompletionRequirementDetails) GetFieldDeserializers()(map[st } return nil } + res["formsRequirement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFormsRequirementFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetFormsRequirement(val.(PlannerFormsRequirementable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -74,6 +84,17 @@ func (m *PlannerTaskCompletionRequirementDetails) GetFieldDeserializers()(map[st } return res } +// GetFormsRequirement gets the formsRequirement property value. The formsRequirement property +func (m *PlannerTaskCompletionRequirementDetails) GetFormsRequirement()(PlannerFormsRequirementable) { + val, err := m.GetBackingStore().Get("formsRequirement") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFormsRequirementable) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *PlannerTaskCompletionRequirementDetails) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -93,6 +114,12 @@ func (m *PlannerTaskCompletionRequirementDetails) Serialize(writer i878a80d2330e return err } } + { + err := writer.WriteObjectValue("formsRequirement", m.GetFormsRequirement()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -125,6 +152,13 @@ func (m *PlannerTaskCompletionRequirementDetails) SetChecklistRequirement(value panic(err) } } +// SetFormsRequirement sets the formsRequirement property value. The formsRequirement property +func (m *PlannerTaskCompletionRequirementDetails) SetFormsRequirement(value PlannerFormsRequirementable)() { + err := m.GetBackingStore().Set("formsRequirement", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *PlannerTaskCompletionRequirementDetails) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -139,8 +173,10 @@ type PlannerTaskCompletionRequirementDetailsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetChecklistRequirement()(PlannerChecklistRequirementable) + GetFormsRequirement()(PlannerFormsRequirementable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetChecklistRequirement(value PlannerChecklistRequirementable)() + SetFormsRequirement(value PlannerFormsRequirementable)() SetOdataType(value *string)() } diff --git a/models/planner_task_completion_requirements.go b/models/planner_task_completion_requirements.go index 3fa4c8a953f..384d810f5ab 100644 --- a/models/planner_task_completion_requirements.go +++ b/models/planner_task_completion_requirements.go @@ -10,13 +10,14 @@ const ( NONE_PLANNERTASKCOMPLETIONREQUIREMENTS PlannerTaskCompletionRequirements = iota CHECKLISTCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS UNKNOWNFUTUREVALUE_PLANNERTASKCOMPLETIONREQUIREMENTS + FORMCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS ) func (i PlannerTaskCompletionRequirements) String() string { var values []string - for p := PlannerTaskCompletionRequirements(1); p <= UNKNOWNFUTUREVALUE_PLANNERTASKCOMPLETIONREQUIREMENTS; p <<= 1 { + for p := PlannerTaskCompletionRequirements(1); p <= FORMCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS; p <<= 1 { if i&p == p { - values = append(values, []string{"none", "checklistCompletion", "unknownFutureValue"}[p]) + values = append(values, []string{"none", "checklistCompletion", "unknownFutureValue", "formCompletion"}[p]) } } return strings.Join(values, ",") @@ -32,6 +33,8 @@ func ParsePlannerTaskCompletionRequirements(v string) (any, error) { result |= CHECKLISTCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_PLANNERTASKCOMPLETIONREQUIREMENTS + case "formCompletion": + result |= FORMCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS default: return 0, errors.New("Unknown PlannerTaskCompletionRequirements value: " + v) } diff --git a/models/planner_task_details.go b/models/planner_task_details.go index 7215a1e490d..bcb43aa8113 100644 --- a/models/planner_task_details.go +++ b/models/planner_task_details.go @@ -85,6 +85,16 @@ func (m *PlannerTaskDetails) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFormsDictionaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetForms(val.(PlannerFormsDictionaryable)) + } + return nil + } res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) if err != nil { @@ -117,6 +127,17 @@ func (m *PlannerTaskDetails) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetForms gets the forms property value. The forms property +func (m *PlannerTaskDetails) GetForms()(PlannerFormsDictionaryable) { + val, err := m.GetBackingStore().Get("forms") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFormsDictionaryable) + } + return nil +} // GetNotes gets the notes property value. Rich text description of the task. To be used by HTML-aware clients. For backwards compatibility, a plain-text version of the HTML description will be synced to the 'description' field. If this field hasn't previously been set but 'description' has been, the existing description is synchronized to 'notes' with minimal whitespace-preserving HTML markup. Setting both 'description' and 'notes' is an error and will result in an exception. func (m *PlannerTaskDetails) GetNotes()(ItemBodyable) { val, err := m.GetBackingStore().Get("notes") @@ -174,6 +195,12 @@ func (m *PlannerTaskDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteObjectValue("forms", m.GetForms()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("notes", m.GetNotes()) if err != nil { @@ -216,6 +243,13 @@ func (m *PlannerTaskDetails) SetDescription(value *string)() { panic(err) } } +// SetForms sets the forms property value. The forms property +func (m *PlannerTaskDetails) SetForms(value PlannerFormsDictionaryable)() { + err := m.GetBackingStore().Set("forms", value) + if err != nil { + panic(err) + } +} // SetNotes sets the notes property value. Rich text description of the task. To be used by HTML-aware clients. For backwards compatibility, a plain-text version of the HTML description will be synced to the 'description' field. If this field hasn't previously been set but 'description' has been, the existing description is synchronized to 'notes' with minimal whitespace-preserving HTML markup. Setting both 'description' and 'notes' is an error and will result in an exception. func (m *PlannerTaskDetails) SetNotes(value ItemBodyable)() { err := m.GetBackingStore().Set("notes", value) @@ -244,12 +278,14 @@ type PlannerTaskDetailsable interface { GetChecklist()(PlannerChecklistItemsable) GetCompletionRequirements()(PlannerTaskCompletionRequirementDetailsable) GetDescription()(*string) + GetForms()(PlannerFormsDictionaryable) GetNotes()(ItemBodyable) GetPreviewType()(*PlannerPreviewType) GetReferences()(PlannerExternalReferencesable) SetChecklist(value PlannerChecklistItemsable)() SetCompletionRequirements(value PlannerTaskCompletionRequirementDetailsable)() SetDescription(value *string)() + SetForms(value PlannerFormsDictionaryable)() SetNotes(value ItemBodyable)() SetPreviewType(value *PlannerPreviewType)() SetReferences(value PlannerExternalReferencesable)() diff --git a/models/planner_task_property_rule.go b/models/planner_task_property_rule.go index 7b608a08b72..4e935a6e001 100644 --- a/models/planner_task_property_rule.go +++ b/models/planner_task_property_rule.go @@ -168,6 +168,16 @@ func (m *PlannerTaskPropertyRule) GetFieldDeserializers()(map[string]func(i878a8 } return nil } + res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFieldRulesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetForms(val.(PlannerFieldRulesable)) + } + return nil + } res["move"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -308,6 +318,17 @@ func (m *PlannerTaskPropertyRule) GetFieldDeserializers()(map[string]func(i878a8 } return res } +// GetForms gets the forms property value. The forms property +func (m *PlannerTaskPropertyRule) GetForms()(PlannerFieldRulesable) { + val, err := m.GetBackingStore().Get("forms") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFieldRulesable) + } + return nil +} // GetMove gets the move property value. Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block. func (m *PlannerTaskPropertyRule) GetMove()([]string) { val, err := m.GetBackingStore().Get("move") @@ -449,6 +470,12 @@ func (m *PlannerTaskPropertyRule) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteObjectValue("forms", m.GetForms()) + if err != nil { + return err + } + } if m.GetMove() != nil { err = writer.WriteCollectionOfStringValues("move", m.GetMove()) if err != nil { @@ -547,6 +574,13 @@ func (m *PlannerTaskPropertyRule) SetDueDate(value []string)() { panic(err) } } +// SetForms sets the forms property value. The forms property +func (m *PlannerTaskPropertyRule) SetForms(value PlannerFieldRulesable)() { + err := m.GetBackingStore().Set("forms", value) + if err != nil { + panic(err) + } +} // SetMove sets the move property value. Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block. func (m *PlannerTaskPropertyRule) SetMove(value []string)() { err := m.GetBackingStore().Set("move", value) @@ -620,6 +654,7 @@ type PlannerTaskPropertyRuleable interface { GetCompletionRequirements()([]string) GetDelete()([]string) GetDueDate()([]string) + GetForms()(PlannerFieldRulesable) GetMove()([]string) GetNotes()([]string) GetOrder()([]string) @@ -635,6 +670,7 @@ type PlannerTaskPropertyRuleable interface { SetCompletionRequirements(value []string)() SetDelete(value []string)() SetDueDate(value []string)() + SetForms(value PlannerFieldRulesable)() SetMove(value []string)() SetNotes(value []string)() SetOrder(value []string)() diff --git a/models/publication_facet.go b/models/publication_facet.go index d349cc1485a..a69140d32a1 100644 --- a/models/publication_facet.go +++ b/models/publication_facet.go @@ -38,7 +38,7 @@ func (m *PublicationFacet) GetAdditionalData()(map[string]any) { func (m *PublicationFacet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCheckedOutBy gets the checkedOutBy property value. User who has checked out the file. +// GetCheckedOutBy gets the checkedOutBy property value. The user who checked out the file. func (m *PublicationFacet) GetCheckedOutBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("checkedOutBy") if err != nil { @@ -172,7 +172,7 @@ func (m *PublicationFacet) SetAdditionalData(value map[string]any)() { func (m *PublicationFacet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCheckedOutBy sets the checkedOutBy property value. User who has checked out the file. +// SetCheckedOutBy sets the checkedOutBy property value. The user who checked out the file. func (m *PublicationFacet) SetCheckedOutBy(value IdentitySetable)() { err := m.GetBackingStore().Set("checkedOutBy", value) if err != nil { diff --git a/models/teams_async_operation_type.go b/models/teams_async_operation_type.go index c5e80a84756..20bb1d90a6b 100644 --- a/models/teams_async_operation_type.go +++ b/models/teams_async_operation_type.go @@ -15,10 +15,12 @@ const ( TEAMIFYGROUP_TEAMSASYNCOPERATIONTYPE CREATECHANNEL_TEAMSASYNCOPERATIONTYPE CREATECHAT_TEAMSASYNCOPERATIONTYPE + ARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE + UNARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE ) func (i TeamsAsyncOperationType) String() string { - return []string{"invalid", "cloneTeam", "archiveTeam", "unarchiveTeam", "createTeam", "unknownFutureValue", "teamifyGroup", "createChannel", "createChat"}[i] + return []string{"invalid", "cloneTeam", "archiveTeam", "unarchiveTeam", "createTeam", "unknownFutureValue", "teamifyGroup", "createChannel", "createChat", "archiveChannel", "unarchiveChannel"}[i] } func ParseTeamsAsyncOperationType(v string) (any, error) { result := INVALID_TEAMSASYNCOPERATIONTYPE @@ -41,6 +43,10 @@ func ParseTeamsAsyncOperationType(v string) (any, error) { result = CREATECHANNEL_TEAMSASYNCOPERATIONTYPE case "createChat": result = CREATECHAT_TEAMSASYNCOPERATIONTYPE + case "archiveChannel": + result = ARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE + case "unarchiveChannel": + result = UNARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE default: return 0, errors.New("Unknown TeamsAsyncOperationType value: " + v) } diff --git a/models/teams_licensing_details.go b/models/teams_licensing_details.go new file mode 100644 index 00000000000..a6157839e70 --- /dev/null +++ b/models/teams_licensing_details.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// TeamsLicensingDetails +type TeamsLicensingDetails struct { + Entity +} +// NewTeamsLicensingDetails instantiates a new teamsLicensingDetails and sets the default values. +func NewTeamsLicensingDetails()(*TeamsLicensingDetails) { + m := &TeamsLicensingDetails{ + Entity: *NewEntity(), + } + return m +} +// CreateTeamsLicensingDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTeamsLicensingDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsLicensingDetails(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TeamsLicensingDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["hasTeamsLicense"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasTeamsLicense(val) + } + return nil + } + return res +} +// GetHasTeamsLicense gets the hasTeamsLicense property value. Indicates whether the user has a valid license to use Microsoft Teams. +func (m *TeamsLicensingDetails) GetHasTeamsLicense()(*bool) { + val, err := m.GetBackingStore().Get("hasTeamsLicense") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsLicensingDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("hasTeamsLicense", m.GetHasTeamsLicense()) + if err != nil { + return err + } + } + return nil +} +// SetHasTeamsLicense sets the hasTeamsLicense property value. Indicates whether the user has a valid license to use Microsoft Teams. +func (m *TeamsLicensingDetails) SetHasTeamsLicense(value *bool)() { + err := m.GetBackingStore().Set("hasTeamsLicense", value) + if err != nil { + panic(err) + } +} +// TeamsLicensingDetailsable +type TeamsLicensingDetailsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHasTeamsLicense()(*bool) + SetHasTeamsLicense(value *bool)() +} diff --git a/models/teamwork.go b/models/teamwork.go index d071fc07a12..c32109e5ce9 100644 --- a/models/teamwork.go +++ b/models/teamwork.go @@ -103,6 +103,26 @@ func (m *Teamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["isTeamsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsTeamsEnabled(val) + } + return nil + } + res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegion(val) + } + return nil + } res["teamsAppSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateTeamsAppSettingsFromDiscriminatorValue) if err != nil { @@ -147,6 +167,28 @@ func (m *Teamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } +// GetIsTeamsEnabled gets the isTeamsEnabled property value. Indicates whether Microsoft Teams is enabled for the organization. +func (m *Teamwork) GetIsTeamsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isTeamsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetRegion gets the region property value. Represents the region of the organization. +func (m *Teamwork) GetRegion()(*string) { + val, err := m.GetBackingStore().Get("region") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamsAppSettings gets the teamsAppSettings property value. Represents tenant-wide settings for all Teams apps in the tenant. func (m *Teamwork) GetTeamsAppSettings()(TeamsAppSettingsable) { val, err := m.GetBackingStore().Get("teamsAppSettings") @@ -222,6 +264,18 @@ func (m *Teamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteBoolValue("isTeamsEnabled", m.GetIsTeamsEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("region", m.GetRegion()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("teamsAppSettings", m.GetTeamsAppSettings()) if err != nil { @@ -275,6 +329,20 @@ func (m *Teamwork) SetDevices(value []TeamworkDeviceable)() { panic(err) } } +// SetIsTeamsEnabled sets the isTeamsEnabled property value. Indicates whether Microsoft Teams is enabled for the organization. +func (m *Teamwork) SetIsTeamsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isTeamsEnabled", value) + if err != nil { + panic(err) + } +} +// SetRegion sets the region property value. Represents the region of the organization. +func (m *Teamwork) SetRegion(value *string)() { + err := m.GetBackingStore().Set("region", value) + if err != nil { + panic(err) + } +} // SetTeamsAppSettings sets the teamsAppSettings property value. Represents tenant-wide settings for all Teams apps in the tenant. func (m *Teamwork) SetTeamsAppSettings(value TeamsAppSettingsable)() { err := m.GetBackingStore().Set("teamsAppSettings", value) @@ -303,12 +371,16 @@ type Teamworkable interface { GetDeletedChats()([]DeletedChatable) GetDeletedTeams()([]DeletedTeamable) GetDevices()([]TeamworkDeviceable) + GetIsTeamsEnabled()(*bool) + GetRegion()(*string) GetTeamsAppSettings()(TeamsAppSettingsable) GetTeamTemplates()([]TeamTemplateable) GetWorkforceIntegrations()([]WorkforceIntegrationable) SetDeletedChats(value []DeletedChatable)() SetDeletedTeams(value []DeletedTeamable)() SetDevices(value []TeamworkDeviceable)() + SetIsTeamsEnabled(value *bool)() + SetRegion(value *string)() SetTeamsAppSettings(value TeamsAppSettingsable)() SetTeamTemplates(value []TeamTemplateable)() SetWorkforceIntegrations(value []WorkforceIntegrationable)() diff --git a/models/user_teamwork.go b/models/user_teamwork.go index b3c5b985e42..88625ed257d 100644 --- a/models/user_teamwork.go +++ b/models/user_teamwork.go @@ -65,6 +65,26 @@ func (m *UserTeamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["locale"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLocale(val) + } + return nil + } + res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegion(val) + } + return nil + } return res } // GetInstalledApps gets the installedApps property value. The apps installed in the personal scope of this user. @@ -78,6 +98,28 @@ func (m *UserTeamwork) GetInstalledApps()([]UserScopeTeamsAppInstallationable) { } return nil } +// GetLocale gets the locale property value. Represents the chosen locale of a user in Microsoft Teams. +func (m *UserTeamwork) GetLocale()(*string) { + val, err := m.GetBackingStore().Get("locale") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegion gets the region property value. Represents the region of the user in Microsoft Teams. +func (m *UserTeamwork) GetRegion()(*string) { + val, err := m.GetBackingStore().Get("region") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *UserTeamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -108,6 +150,18 @@ func (m *UserTeamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("locale", m.GetLocale()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("region", m.GetRegion()) + if err != nil { + return err + } + } return nil } // SetAssociatedTeams sets the associatedTeams property value. The list of associatedTeamInfo objects that a user is associated with. @@ -124,12 +178,30 @@ func (m *UserTeamwork) SetInstalledApps(value []UserScopeTeamsAppInstallationabl panic(err) } } +// SetLocale sets the locale property value. Represents the chosen locale of a user in Microsoft Teams. +func (m *UserTeamwork) SetLocale(value *string)() { + err := m.GetBackingStore().Set("locale", value) + if err != nil { + panic(err) + } +} +// SetRegion sets the region property value. Represents the region of the user in Microsoft Teams. +func (m *UserTeamwork) SetRegion(value *string)() { + err := m.GetBackingStore().Set("region", value) + if err != nil { + panic(err) + } +} // UserTeamworkable type UserTeamworkable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAssociatedTeams()([]AssociatedTeamInfoable) GetInstalledApps()([]UserScopeTeamsAppInstallationable) + GetLocale()(*string) + GetRegion()(*string) SetAssociatedTeams(value []AssociatedTeamInfoable)() SetInstalledApps(value []UserScopeTeamsAppInstallationable)() + SetLocale(value *string)() + SetRegion(value *string)() } diff --git a/models/virtual_event.go b/models/virtual_event.go index 04fb28134fe..3d194af50df 100644 --- a/models/virtual_event.go +++ b/models/virtual_event.go @@ -39,7 +39,7 @@ func CreateVirtualEventFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 } return NewVirtualEvent(), nil } -// GetCreatedBy gets the createdBy property value. Identity information of who created the virtual event. Inherited from virtualEvent. +// GetCreatedBy gets the createdBy property value. Identity information for the creator of the virtual event. Inherited from virtualEvent. func (m *VirtualEvent) GetCreatedBy()(CommunicationsIdentitySetable) { val, err := m.GetBackingStore().Get("createdBy") if err != nil { @@ -61,7 +61,7 @@ func (m *VirtualEvent) GetDescription()(ItemBodyable) { } return nil } -// GetDisplayName gets the displayName property value. Display name of the virtual event +// GetDisplayName gets the displayName property value. Display name of the virtual event. func (m *VirtualEvent) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -180,7 +180,7 @@ func (m *VirtualEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetPresenters gets the presenters property value. Presenters' information of the virtual event. +// GetPresenters gets the presenters property value. The virtual event presenters. func (m *VirtualEvent) GetPresenters()([]VirtualEventPresenterable) { val, err := m.GetBackingStore().Get("presenters") if err != nil { @@ -191,7 +191,7 @@ func (m *VirtualEvent) GetPresenters()([]VirtualEventPresenterable) { } return nil } -// GetSessions gets the sessions property value. Sessions of the virtual event. +// GetSessions gets the sessions property value. Sessions for the virtual event. func (m *VirtualEvent) GetSessions()([]VirtualEventSessionable) { val, err := m.GetBackingStore().Get("sessions") if err != nil { @@ -293,7 +293,7 @@ func (m *VirtualEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetCreatedBy sets the createdBy property value. Identity information of who created the virtual event. Inherited from virtualEvent. +// SetCreatedBy sets the createdBy property value. Identity information for the creator of the virtual event. Inherited from virtualEvent. func (m *VirtualEvent) SetCreatedBy(value CommunicationsIdentitySetable)() { err := m.GetBackingStore().Set("createdBy", value) if err != nil { @@ -307,7 +307,7 @@ func (m *VirtualEvent) SetDescription(value ItemBodyable)() { panic(err) } } -// SetDisplayName sets the displayName property value. Display name of the virtual event +// SetDisplayName sets the displayName property value. Display name of the virtual event. func (m *VirtualEvent) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { @@ -321,14 +321,14 @@ func (m *VirtualEvent) SetEndDateTime(value DateTimeTimeZoneable)() { panic(err) } } -// SetPresenters sets the presenters property value. Presenters' information of the virtual event. +// SetPresenters sets the presenters property value. The virtual event presenters. func (m *VirtualEvent) SetPresenters(value []VirtualEventPresenterable)() { err := m.GetBackingStore().Set("presenters", value) if err != nil { panic(err) } } -// SetSessions sets the sessions property value. Sessions of the virtual event. +// SetSessions sets the sessions property value. Sessions for the virtual event. func (m *VirtualEvent) SetSessions(value []VirtualEventSessionable)() { err := m.GetBackingStore().Set("sessions", value) if err != nil { diff --git a/models/virtual_event_registratio_custom_question.go b/models/virtual_event_registration_custom_question.go similarity index 65% rename from models/virtual_event_registratio_custom_question.go rename to models/virtual_event_registration_custom_question.go index 1261361d45a..0028249c309 100644 --- a/models/virtual_event_registratio_custom_question.go +++ b/models/virtual_event_registration_custom_question.go @@ -4,25 +4,25 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// VirtualEventRegistratioCustomQuestion -type VirtualEventRegistratioCustomQuestion struct { +// VirtualEventRegistrationCustomQuestion +type VirtualEventRegistrationCustomQuestion struct { VirtualEventRegistrationQuestionBase } -// NewVirtualEventRegistratioCustomQuestion instantiates a new virtualEventRegistratioCustomQuestion and sets the default values. -func NewVirtualEventRegistratioCustomQuestion()(*VirtualEventRegistratioCustomQuestion) { - m := &VirtualEventRegistratioCustomQuestion{ +// NewVirtualEventRegistrationCustomQuestion instantiates a new virtualEventRegistrationCustomQuestion and sets the default values. +func NewVirtualEventRegistrationCustomQuestion()(*VirtualEventRegistrationCustomQuestion) { + m := &VirtualEventRegistrationCustomQuestion{ VirtualEventRegistrationQuestionBase: *NewVirtualEventRegistrationQuestionBase(), } - odataTypeValue := "#microsoft.graph.virtualEventRegistratioCustomQuestion" + odataTypeValue := "#microsoft.graph.virtualEventRegistrationCustomQuestion" m.SetOdataType(&odataTypeValue) return m } -// CreateVirtualEventRegistratioCustomQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateVirtualEventRegistratioCustomQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewVirtualEventRegistratioCustomQuestion(), nil +// CreateVirtualEventRegistrationCustomQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEventRegistrationCustomQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventRegistrationCustomQuestion(), nil } // GetAnswerChoices gets the answerChoices property value. The answerChoices property -func (m *VirtualEventRegistratioCustomQuestion) GetAnswerChoices()([]string) { +func (m *VirtualEventRegistrationCustomQuestion) GetAnswerChoices()([]string) { val, err := m.GetBackingStore().Get("answerChoices") if err != nil { panic(err) @@ -33,7 +33,7 @@ func (m *VirtualEventRegistratioCustomQuestion) GetAnswerChoices()([]string) { return nil } // GetAnswerInputType gets the answerInputType property value. The answerInputType property -func (m *VirtualEventRegistratioCustomQuestion) GetAnswerInputType()(*VirtualEventRegistrationQuestionAnswerInputType) { +func (m *VirtualEventRegistrationCustomQuestion) GetAnswerInputType()(*VirtualEventRegistrationQuestionAnswerInputType) { val, err := m.GetBackingStore().Get("answerInputType") if err != nil { panic(err) @@ -44,7 +44,7 @@ func (m *VirtualEventRegistratioCustomQuestion) GetAnswerInputType()(*VirtualEve return nil } // GetFieldDeserializers the deserialization information for the current model -func (m *VirtualEventRegistratioCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *VirtualEventRegistrationCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VirtualEventRegistrationQuestionBase.GetFieldDeserializers() res["answerChoices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") @@ -75,7 +75,7 @@ func (m *VirtualEventRegistratioCustomQuestion) GetFieldDeserializers()(map[stri return res } // Serialize serializes information the current object -func (m *VirtualEventRegistratioCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *VirtualEventRegistrationCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VirtualEventRegistrationQuestionBase.Serialize(writer) if err != nil { return err @@ -96,21 +96,21 @@ func (m *VirtualEventRegistratioCustomQuestion) Serialize(writer i878a80d2330e89 return nil } // SetAnswerChoices sets the answerChoices property value. The answerChoices property -func (m *VirtualEventRegistratioCustomQuestion) SetAnswerChoices(value []string)() { +func (m *VirtualEventRegistrationCustomQuestion) SetAnswerChoices(value []string)() { err := m.GetBackingStore().Set("answerChoices", value) if err != nil { panic(err) } } // SetAnswerInputType sets the answerInputType property value. The answerInputType property -func (m *VirtualEventRegistratioCustomQuestion) SetAnswerInputType(value *VirtualEventRegistrationQuestionAnswerInputType)() { +func (m *VirtualEventRegistrationCustomQuestion) SetAnswerInputType(value *VirtualEventRegistrationQuestionAnswerInputType)() { err := m.GetBackingStore().Set("answerInputType", value) if err != nil { panic(err) } } -// VirtualEventRegistratioCustomQuestionable -type VirtualEventRegistratioCustomQuestionable interface { +// VirtualEventRegistrationCustomQuestionable +type VirtualEventRegistrationCustomQuestionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventRegistrationQuestionBaseable GetAnswerChoices()([]string) diff --git a/models/virtual_event_registration_question_base.go b/models/virtual_event_registration_question_base.go index 1815743ae61..762ad9faa4e 100644 --- a/models/virtual_event_registration_question_base.go +++ b/models/virtual_event_registration_question_base.go @@ -29,8 +29,8 @@ func CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue(parseNode } if mappingValue != nil { switch *mappingValue { - case "#microsoft.graph.virtualEventRegistratioCustomQuestion": - return NewVirtualEventRegistratioCustomQuestion(), nil + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return NewVirtualEventRegistrationCustomQuestion(), nil case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": return NewVirtualEventRegistrationPredefinedQuestion(), nil } diff --git a/models/windows_app_x_app_assignment_settings.go b/models/windows_app_x_app_assignment_settings.go index fe04ee9a3f9..f38f5bee38d 100644 --- a/models/windows_app_x_app_assignment_settings.go +++ b/models/windows_app_x_app_assignment_settings.go @@ -36,7 +36,7 @@ func (m *WindowsAppXAppAssignmentSettings) GetFieldDeserializers()(map[string]fu } return res } -// GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. +// GetUseDeviceContext gets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. func (m *WindowsAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") if err != nil { @@ -61,7 +61,7 @@ func (m *WindowsAppXAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689 } return nil } -// SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. +// SetUseDeviceContext sets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. func (m *WindowsAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/models/windows_universal_app_x_app_assignment_settings.go b/models/windows_universal_app_x_app_assignment_settings.go index bab07cd3f51..0aef3130204 100644 --- a/models/windows_universal_app_x_app_assignment_settings.go +++ b/models/windows_universal_app_x_app_assignment_settings.go @@ -36,7 +36,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. func (m *WindowsUniversalAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") if err != nil { @@ -61,7 +61,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/onpremisespublishingprofiles/item_connector_groups_request_builder.go b/onpremisespublishingprofiles/item_connector_groups_request_builder.go index e0159ba44e4..e0c16180650 100644 --- a/onpremisespublishingprofiles/item_connector_groups_request_builder.go +++ b/onpremisespublishingprofiles/item_connector_groups_request_builder.go @@ -96,10 +96,10 @@ func (m *ItemConnectorGroupsRequestBuilder) Get(ctx context.Context, requestConf } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupCollectionResponseable), nil } -// Post create a new connectorGroup. +// Post create a connectorGroup object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/connectorgroup-post-connectorgroups?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/connectorgroup-post?view=graph-rest-1.0 func (m *ItemConnectorGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, requestConfiguration *ItemConnectorGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -131,7 +131,7 @@ func (m *ItemConnectorGroupsRequestBuilder) ToGetRequestInformation(ctx context. requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new connectorGroup. +// ToPostRequestInformation create a connectorGroup object. func (m *ItemConnectorGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, requestConfiguration *ItemConnectorGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/planner/plans_item_archive_post_request_body.go b/planner/plans_item_archive_post_request_body.go new file mode 100644 index 00000000000..2720f45e704 --- /dev/null +++ b/planner/plans_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package planner + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlansItemArchivePostRequestBody +type PlansItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlansItemArchivePostRequestBody instantiates a new PlansItemArchivePostRequestBody and sets the default values. +func NewPlansItemArchivePostRequestBody()(*PlansItemArchivePostRequestBody) { + m := &PlansItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlansItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlansItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlansItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlansItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlansItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *PlansItemArchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlansItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlansItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *PlansItemArchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// PlansItemArchivePostRequestBodyable +type PlansItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/planner/plans_item_archive_request_builder.go b/planner/plans_item_archive_request_builder.go new file mode 100644 index 00000000000..047231105fe --- /dev/null +++ b/planner/plans_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemArchiveRequestBuilder provides operations to call the archive method. +type PlansItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPlansItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewPlansItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemArchiveRequestBuilder) { + m := &PlansItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/archive", pathParameters), + } + return m +} +// NewPlansItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *PlansItemArchiveRequestBuilder) Post(ctx context.Context, body PlansItemArchivePostRequestBodyable, requestConfiguration *PlansItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *PlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body PlansItemArchivePostRequestBodyable, requestConfiguration *PlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *PlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*PlansItemArchiveRequestBuilder) { + return NewPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_item_unarchive_post_request_body.go b/planner/plans_item_unarchive_post_request_body.go new file mode 100644 index 00000000000..ee253c6d06b --- /dev/null +++ b/planner/plans_item_unarchive_post_request_body.go @@ -0,0 +1,110 @@ +package planner + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlansItemUnarchivePostRequestBody +type PlansItemUnarchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlansItemUnarchivePostRequestBody instantiates a new PlansItemUnarchivePostRequestBody and sets the default values. +func NewPlansItemUnarchivePostRequestBody()(*PlansItemUnarchivePostRequestBody) { + m := &PlansItemUnarchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlansItemUnarchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlansItemUnarchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlansItemUnarchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemUnarchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlansItemUnarchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlansItemUnarchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *PlansItemUnarchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlansItemUnarchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemUnarchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlansItemUnarchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *PlansItemUnarchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// PlansItemUnarchivePostRequestBodyable +type PlansItemUnarchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/planner/plans_item_unarchive_request_builder.go b/planner/plans_item_unarchive_request_builder.go new file mode 100644 index 00000000000..d9dc983a9ff --- /dev/null +++ b/planner/plans_item_unarchive_request_builder.go @@ -0,0 +1,66 @@ +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type PlansItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPlansItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewPlansItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemUnarchiveRequestBuilder) { + m := &PlansItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/unarchive", pathParameters), + } + return m +} +// NewPlansItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *PlansItemUnarchiveRequestBuilder) Post(ctx context.Context, body PlansItemUnarchivePostRequestBodyable, requestConfiguration *PlansItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *PlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body PlansItemUnarchivePostRequestBodyable, requestConfiguration *PlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *PlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*PlansItemUnarchiveRequestBuilder) { + return NewPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_planner_plan_item_request_builder.go b/planner/plans_planner_plan_item_request_builder.go index 6c2c755226e..80462bde3e3 100644 --- a/planner/plans_planner_plan_item_request_builder.go +++ b/planner/plans_planner_plan_item_request_builder.go @@ -41,6 +41,10 @@ type PlansPlannerPlanItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *PlansPlannerPlanItemRequestBuilder) Archive()(*PlansItemArchiveRequestBuilder) { + return NewPlansItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Buckets provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. func (m *PlansPlannerPlanItemRequestBuilder) Buckets()(*PlansItemBucketsRequestBuilder) { return NewPlansItemBucketsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -170,6 +174,10 @@ func (m *PlansPlannerPlanItemRequestBuilder) ToPatchRequestInformation(ctx conte } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *PlansPlannerPlanItemRequestBuilder) Unarchive()(*PlansItemUnarchiveRequestBuilder) { + return NewPlansItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *PlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*PlansPlannerPlanItemRequestBuilder) { return NewPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/riskdetections/risk_detections_request_builder.go b/riskdetections/risk_detections_request_builder.go index 5b41cb43a65..6394147f5c8 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"` @@ -66,10 +66,10 @@ 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. // [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 { @@ -107,7 +107,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. func (m *RiskDetectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go b/serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go new file mode 100644 index 00000000000..06fd528d057 --- /dev/null +++ b/serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go @@ -0,0 +1,66 @@ +package serviceprincipals + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder provides operations to call the getTeamsLicensingDetails method. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + m := &ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/licenseDetails/getTeamsLicensingDetails()", pathParameters), + } + return m +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamsLicensingDetailsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable), nil +} +// ToGetRequestInformation invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/serviceprincipals/item_license_details_request_builder.go b/serviceprincipals/item_license_details_request_builder.go index 9e82f40f96f..12aaaa77b55 100644 --- a/serviceprincipals/item_license_details_request_builder.go +++ b/serviceprincipals/item_license_details_request_builder.go @@ -93,6 +93,10 @@ func (m *ItemLicenseDetailsRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsCollectionResponseable), nil } +// GetTeamsLicensingDetails provides operations to call the getTeamsLicensingDetails method. +func (m *ItemLicenseDetailsRequestBuilder) GetTeamsLicensingDetails()(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to licenseDetails for servicePrincipals func (m *ItemLicenseDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); diff --git a/shares/item_list_items_item_create_link_post_request_body.go b/shares/item_list_items_item_create_link_post_request_body.go index 7420931aadc..5a200934ac4 100644 --- a/shares/item_list_items_item_create_link_post_request_body.go +++ b/shares/item_list_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return res } +// GetMessage gets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d23 return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/sites/item_lists_item_items_item_create_link_post_request_body.go b/sites/item_lists_item_items_item_create_link_post_request_body.go index e40791d373a..eac6345ceb8 100644 --- a/sites/item_lists_item_items_item_create_link_post_request_body.go +++ b/sites/item_lists_item_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeserializers( } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeserializers( } return res } +// GetMessage gets the message property value. The message property +func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(writer i878a return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) SetExpirationDateTime( panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemListsItemItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemListsItemItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 21a3e7d5163..f4834983344 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"` @@ -75,10 +75,10 @@ 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. // [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 { @@ -105,7 +105,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. func (m *SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_presenters_request_builder.go b/solutions/virtual_events_events_item_presenters_request_builder.go index 94df66998dd..f4fa9561ce6 100644 --- a/solutions/virtual_events_events_item_presenters_request_builder.go +++ b/solutions/virtual_events_events_item_presenters_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsEventsItemPresentersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsEventsItemPresentersRequestBuilder(rawUrl string, requestAd func (m *VirtualEventsEventsItemPresentersRequestBuilder) Count()(*VirtualEventsEventsItemPresentersCountRequestBuilder) { return NewVirtualEventsEventsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsEventsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsEventsItemPresentersRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable), nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsEventsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go index a1845b4668a..5853c7c1b28 100644 --- a/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go +++ b/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilde } return nil } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_sessions_request_builder.go b/solutions/virtual_events_events_item_sessions_request_builder.go index 6cddf7fc38a..d9fecc46de5 100644 --- a/solutions/virtual_events_events_item_sessions_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsEventsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsEventsItemSessionsRequestBuilder(rawUrl string, requestAdap func (m *VirtualEventsEventsItemSessionsRequestBuilder) Count()(*VirtualEventsEventsItemSessionsCountRequestBuilder) { return NewVirtualEventsEventsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsEventsItemSessionsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 4977f2628df..55683317b98 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 @@ -18,7 +18,7 @@ type VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) D } return nil } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_presenters_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_request_builder.go index 30dae98b7fe..db8b3789efe 100644 --- a/solutions/virtual_events_townhalls_item_presenters_request_builder.go +++ b/solutions/virtual_events_townhalls_item_presenters_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsTownhallsItemPresentersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsTownhallsItemPresentersRequestBuilder(rawUrl string, reques func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Count()(*VirtualEventsTownhallsItemPresentersCountRequestBuilder) { return NewVirtualEventsTownhallsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable), nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go index 6ffa2e6d35a..6e326c4f99c 100644 --- a/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go +++ b/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBui } return nil } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_sessions_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_request_builder.go index 10984067ea3..922b675065e 100644 --- a/solutions/virtual_events_townhalls_item_sessions_request_builder.go +++ b/solutions/virtual_events_townhalls_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsTownhallsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsTownhallsItemSessionsRequestBuilder(rawUrl string, requestA func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Count()(*VirtualEventsTownhallsItemSessionsCountRequestBuilder) { return NewVirtualEventsTownhallsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Post(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 842a285585c..7a3add47dec 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 @@ -18,7 +18,7 @@ type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDele // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder } return nil } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_presenters_request_builder.go b/solutions/virtual_events_webinars_item_presenters_request_builder.go index b563d171bc1..e6671134f50 100644 --- a/solutions/virtual_events_webinars_item_presenters_request_builder.go +++ b/solutions/virtual_events_webinars_item_presenters_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsItemPresentersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsItemPresentersRequestBuilder(rawUrl string, request func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Count()(*VirtualEventsWebinarsItemPresentersCountRequestBuilder) { return NewVirtualEventsWebinarsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Post(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable), nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go index 368f67c8952..5982111ee1b 100644 --- a/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderD // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuil } return nil } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuil requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_sessions_request_builder.go b/solutions/virtual_events_webinars_item_sessions_request_builder.go index 23ddda2bc17..d6e08f21231 100644 --- a/solutions/virtual_events_webinars_item_sessions_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsItemSessionsRequestBuilder(rawUrl string, requestAd func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Count()(*VirtualEventsWebinarsItemSessionsCountRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 7a03187fe33..a2060e2f9c0 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 @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) } return nil } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_request_builder.go b/solutions/virtual_events_webinars_request_builder.go index ffb07c56f73..f3f6605e393 100644 --- a/solutions/virtual_events_webinars_request_builder.go +++ b/solutions/virtual_events_webinars_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsRequestBuilderGetQueryParameters get the list of all virtualEventWebinar objects created in a tenant. +// VirtualEventsWebinarsRequestBuilderGetQueryParameters get the list of all virtualEventWebinar objects created in the tenant. type VirtualEventsWebinarsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsRequestBuilder(rawUrl string, requestAdapter i2ae41 func (m *VirtualEventsWebinarsRequestBuilder) Count()(*VirtualEventsWebinarsCountRequestBuilder) { return NewVirtualEventsWebinarsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of all virtualEventWebinar objects created in a tenant. +// Get get the list of all virtualEventWebinar objects created in the tenant. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventsroot-list-webinars?view=graph-rest-1.0 @@ -123,7 +123,7 @@ func (m *VirtualEventsWebinarsRequestBuilder) Post(ctx context.Context, body ie2 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventWebinarable), nil } -// ToGetRequestInformation get the list of all virtualEventWebinar objects created in a tenant. +// ToGetRequestInformation get the list of all virtualEventWebinar objects created in the tenant. func (m *VirtualEventsWebinarsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teams/item_channels_channel_item_request_builder.go b/teams/item_channels_channel_item_request_builder.go index 5fe46145504..6df9ac21ac5 100644 --- a/teams/item_channels_channel_item_request_builder.go +++ b/teams/item_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type ItemChannelsChannelItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemChannelsChannelItemRequestBuilder) Archive()(*ItemChannelsItemArchiveRequestBuilder) { + return NewItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemChannelsItemCompleteMigrationRequestBuilder) { return NewItemChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *ItemChannelsChannelItemRequestBuilder) ToPatchRequestInformation(ctx co } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemChannelsChannelItemRequestBuilder) Unarchive()(*ItemChannelsItemUnarchiveRequestBuilder) { + return NewItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsChannelItemRequestBuilder) { return NewItemChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_channels_item_archive_post_request_body.go b/teams/item_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..a7de30e8603 --- /dev/null +++ b/teams/item_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemChannelsItemArchivePostRequestBody +type ItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemChannelsItemArchivePostRequestBody instantiates a new ItemChannelsItemArchivePostRequestBody and sets the default values. +func NewItemChannelsItemArchivePostRequestBody()(*ItemChannelsItemArchivePostRequestBody) { + m := &ItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemChannelsItemArchivePostRequestBodyable +type ItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teams/item_channels_item_archive_request_builder.go b/teams/item_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..20c4198670d --- /dev/null +++ b/teams/item_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemArchiveRequestBuilder) { + m := &ItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemArchiveRequestBuilder) { + return NewItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_messages_request_builder.go b/teams/item_channels_item_messages_request_builder.go index d720229c99a..b5a71c9ee73 100644 --- a/teams/item_channels_item_messages_request_builder.go +++ b/teams/item_channels_item_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemChannelsItemMessagesRequestBuilder) Get(ctx context.Context, reques } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,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 or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. func (m *ItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teams/item_channels_item_unarchive_request_builder.go b/teams/item_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..755caddfa4b --- /dev/null +++ b/teams/item_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemUnarchiveRequestBuilder) { + m := &ItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemUnarchiveRequestBuilder) { + return NewItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_archive_post_request_body.go b/teams/item_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..dab2549ce40 --- /dev/null +++ b/teams/item_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPrimaryChannelArchivePostRequestBody +type ItemPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPrimaryChannelArchivePostRequestBody instantiates a new ItemPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemPrimaryChannelArchivePostRequestBody()(*ItemPrimaryChannelArchivePostRequestBody) { + m := &ItemPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemPrimaryChannelArchivePostRequestBodyable +type ItemPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teams/item_primary_channel_archive_request_builder.go b/teams/item_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..d58036ed03b --- /dev/null +++ b/teams/item_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelArchiveRequestBuilder) { + m := &ItemPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelArchiveRequestBuilder) { + return NewItemPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_messages_request_builder.go b/teams/item_primary_channel_messages_request_builder.go index 9bf9a4f863f..dc5b1f12c0e 100644 --- a/teams/item_primary_channel_messages_request_builder.go +++ b/teams/item_primary_channel_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemPrimaryChannelMessagesRequestBuilder) Get(ctx context.Context, requ } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,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 or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. func (m *ItemPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teams/item_primary_channel_request_builder.go b/teams/item_primary_channel_request_builder.go index 3a08d405c5f..7e10b6ab498 100644 --- a/teams/item_primary_channel_request_builder.go +++ b/teams/item_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type ItemPrimaryChannelRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemPrimaryChannelRequestBuilder) Archive()(*ItemPrimaryChannelArchiveRequestBuilder) { + return NewItemPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemPrimaryChannelRequestBuilder) CompleteMigration()(*ItemPrimaryChannelCompleteMigrationRequestBuilder) { return NewItemPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *ItemPrimaryChannelRequestBuilder) ToPatchRequestInformation(ctx context } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemPrimaryChannelRequestBuilder) Unarchive()(*ItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelRequestBuilder) { return NewItemPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_primary_channel_unarchive_request_builder.go b/teams/item_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..826c00a8262 --- /dev/null +++ b/teams/item_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go index 3a95b52ff6a..176baadd93b 100644 --- a/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamDefinitionChannelsChannelItemRequestBuilderPatchRequestConfiguratio // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) Archive()(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilder) { return NewItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) ToPatchRequestInfo } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) Unarchive()(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsChannelItemRequestBuilder) { return NewItemTeamDefinitionChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..f1eb7dc9ca8 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamDefinitionChannelsItemArchivePostRequestBody +type ItemTeamDefinitionChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionChannelsItemArchivePostRequestBody instantiates a new ItemTeamDefinitionChannelsItemArchivePostRequestBody and sets the default values. +func NewItemTeamDefinitionChannelsItemArchivePostRequestBody()(*ItemTeamDefinitionChannelsItemArchivePostRequestBody) { + m := &ItemTeamDefinitionChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamDefinitionChannelsItemArchivePostRequestBodyable +type ItemTeamDefinitionChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..e7e9e138797 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamDefinitionChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamDefinitionChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamDefinitionChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 55348464ea8..1606ce337ed 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) Get(ctx context.C } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToGetRequestInfor 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 channel. func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..ff3b00cab93 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..9322d8960bb --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamDefinitionPrimaryChannelArchivePostRequestBody +type ItemTeamDefinitionPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody instantiates a new ItemTeamDefinitionPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody()(*ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) { + m := &ItemTeamDefinitionPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable +type ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..a73d5aa03d1 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 ac7a70f9e7c..bee97c46bb4 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) Get(ctx context } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToGetRequestInf 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 channel. func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go index 8a9282d6d42..41422f0ba48 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamDefinitionPrimaryChannelRequestBuilderPatchRequestConfiguration str // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) Archive()(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) CompleteMigration()(*ItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilder) { return NewItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) ToPatchRequestInformati } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) Unarchive()(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelRequestBuilder) { return NewItemTeamDefinitionPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..f89306b5a3e --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go index 451d9732778..5aebab7b3a6 100644 --- a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type DeletedTeamsItemChannelsChannelItemRequestBuilderPatchRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Archive()(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) CompleteMigration()(*DeletedTeamsItemChannelsItemCompleteMigrationRequestBuilder) { return NewDeletedTeamsItemChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -181,6 +185,10 @@ func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) ToPatchRequestInform } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Unarchive()(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsChannelItemRequestBuilder) { return NewDeletedTeamsItemChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..feab813fcca --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// DeletedTeamsItemChannelsItemArchivePostRequestBody +type DeletedTeamsItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeletedTeamsItemChannelsItemArchivePostRequestBody instantiates a new DeletedTeamsItemChannelsItemArchivePostRequestBody and sets the default values. +func NewDeletedTeamsItemChannelsItemArchivePostRequestBody()(*DeletedTeamsItemChannelsItemArchivePostRequestBody) { + m := &DeletedTeamsItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// DeletedTeamsItemChannelsItemArchivePostRequestBodyable +type DeletedTeamsItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/deleted_teams_item_channels_item_archive_request_builder.go b/teamwork/deleted_teams_item_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..9f8ed60f698 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type DeletedTeamsItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body DeletedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 3e3204ac094..d435a2b0969 100644 --- a/teamwork/deleted_teams_item_channels_item_messages_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_messages_request_builder.go @@ -100,10 +100,10 @@ func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) Get(ctx context.Con } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) ToGetRequestInforma 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 channel. func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *DeletedTeamsItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go b/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..438113a2fb9 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type DeletedTeamsItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go index e0d3c345a24..1c3cd016dcb 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) Archive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) CompleteMigration()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemReques } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) Unarchive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..6a80b18f892 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..6274609fa15 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 f63145389f8..3aa5dc9b5c7 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 @@ -100,10 +100,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesReque } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesReque 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 channel. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..c0e7219fcb7 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..fed3f4094a9 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..cecb5b95f98 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/archive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 9318a3fb0e4..0c8d7fe2086 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 @@ -100,10 +100,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesReq } 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 channel. // [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/channel-post-messages?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 { @@ -135,7 +135,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesReq 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 channel. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go index 48243ffe482..b06c453ffe7 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilderP // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) Archive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) CompleteMigration()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuil } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) Unarchive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..390bbf13de1 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_request_builder.go b/teamwork/team_templates_request_builder.go index 79606c0ea7c..d5ee33abf5e 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 get the list of teamTemplate objects that are available for a tenant. +// TeamTemplatesRequestBuilderGetQueryParameters list the teamTemplateDefinition objects associated with a teamTemplate. type TeamTemplatesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewTeamTemplatesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *TeamTemplatesRequestBuilder) Count()(*TeamTemplatesCountRequestBuilder) { return NewTeamTemplatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of teamTemplate objects that are available for a tenant. +// Get list the teamTemplateDefinition objects associated with a teamTemplate. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-list-teamtemplates?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/teamtemplate-list-definitions?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 { @@ -115,7 +115,7 @@ func (m *TeamTemplatesRequestBuilder) Post(ctx context.Context, body ie233ee762e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateable), nil } -// ToGetRequestInformation get the list of teamTemplate objects that are available for a tenant. +// ToGetRequestInformation list the teamTemplateDefinition objects associated with a teamTemplate. func (m *TeamTemplatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/teamwork_request_builder.go b/teamwork/teamwork_request_builder.go index 8e076dcf57a..f2152026a02 100644 --- a/teamwork/teamwork_request_builder.go +++ b/teamwork/teamwork_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamworkRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamworkRequestBuilderGetQueryParameters get teamwork +// TeamworkRequestBuilderGetQueryParameters get the properties and relationships of a teamwork object, such as the region of the organization and whether Microsoft Teams is enabled. type TeamworkRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -59,7 +59,10 @@ func (m *TeamworkRequestBuilder) DeletedTeams()(*DeletedTeamsRequestBuilder) { func (m *TeamworkRequestBuilder) Devices()(*DevicesRequestBuilder) { return NewDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get teamwork +// Get get the properties and relationships of a teamwork object, such as the region of the organization and whether Microsoft Teams is enabled. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-get?view=graph-rest-1.0 func (m *TeamworkRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamworkRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamworkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -109,7 +112,7 @@ func (m *TeamworkRequestBuilder) TeamsAppSettings()(*TeamsAppSettingsRequestBuil func (m *TeamworkRequestBuilder) TeamTemplates()(*TeamTemplatesRequestBuilder) { return NewTeamTemplatesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation get teamwork +// ToGetRequestInformation get the properties and relationships of a teamwork object, such as the region of the organization and whether Microsoft Teams is enabled. func (m *TeamworkRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamworkRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index 95ba1b5e2e3..1debbc0fb3a 100644 --- a/tenantrelationships/multi_tenant_organization_request_builder.go +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -73,10 +73,10 @@ 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. // [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 { @@ -112,7 +112,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. func (m *MultiTenantOrganizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_attachments_request_builder.go index 59c438d9ca0..a246fd15356 100644 --- a/users/item_calendar_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index a793ff7b51d..eadeb0ce0db 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 5018e092283..e2cb55b29fd 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go index aa5088458c4..b7ffb1d1903 100644 --- a/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index eeef3add039..62c6d29cb1d 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_attachments_request_builder.go b/users/item_calendar_events_item_attachments_request_builder.go index c03109fd47f..e75d31eb632 100644 --- a/users/item_calendar_events_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Get(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go index 60a000f5822..43d57b754e2 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index b3b6468d998..48618f96f76 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_instances_item_attachments_request_builder.go b/users/item_calendar_events_item_instances_item_attachments_request_builder.go index c6aed9e8485..394901da841 100644 --- a/users/item_calendar_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 13f5de7969d..bcbc86229d0 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go index 0bcadb50e1d..76c8f54f834 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 38cb1954a7b..6af4f986a7b 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 55da006899a..bc3a22e3f99 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go index 5210b5a564b..a9b33b9636a 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 27c030e5c4a..3ad82d70267 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go index 52fd750e147..88cb2082437 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go index b2a7c159b3a..fcc2938f32e 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 1383e4119fc..dc22f49904c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go index cf4a1e62284..8ca97b6ae8c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 58df38981ba..6fdc6d1bc35 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_view_item_attachments_request_builder.go index 39627521faa..49b6289cbe8 100644 --- a/users/item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 23dfab72dfd..522a012b8dc 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 45814f095b6..3f07cc632e1 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_view_item_instances_item_attachments_request_builder.go index fa3bbd3c567..9d0c1629edf 100644 --- a/users/item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 21bb089bb61..bb254cca000 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_attachments_request_builder.go index 3e622b5b4f2..a3e65aaf2ba 100644 --- a/users/item_calendars_item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 9e3e8805699..acf7ab76bab 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 0c787d0f9ee..4d1dd777014 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go index 0cb004ab294..b8b5da42f14 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index bd39d1fac64..eb49a2253f6 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_attachments_request_builder.go b/users/item_calendars_item_events_item_attachments_request_builder.go index 2f897a16e55..c2fbac68228 100644 --- a/users/item_calendars_item_events_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go index 1c01e0128b1..1f384f9dd6d 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 3580abc45d6..844a968d0f5 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go index 9575fa44d7b..2f6cfb0b697 100644 --- a/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 10d94ca2acc..18e8be1152d 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_chats_item_messages_request_builder.go b/users/item_chats_item_messages_request_builder.go index 6a11dcb7850..d3b088b0677 100644 --- a/users/item_chats_item_messages_request_builder.go +++ b/users/item_chats_item_messages_request_builder.go @@ -100,10 +100,10 @@ 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. // [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 { @@ -135,7 +135,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. func (m *ItemChatsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_attachments_request_builder.go b/users/item_events_item_attachments_request_builder.go index 4788d1185f5..f34c2c710d4 100644 --- a/users/item_events_item_attachments_request_builder.go +++ b/users/item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, reque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_events_item_exception_occurrences_item_attachments_request_builder.go index bec9cb61e91..134ea7bd3c5 100644 --- a/users/item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index ed2faed3f9b..ba9ffe4e0cd 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_instances_item_attachments_request_builder.go b/users/item_events_item_instances_item_attachments_request_builder.go index 990d14c298e..b718a75b63f 100644 --- a/users/item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index c73ccecbb6c..bea73535f76 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// 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. func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_license_details_get_teams_licensing_details_request_builder.go b/users/item_license_details_get_teams_licensing_details_request_builder.go new file mode 100644 index 00000000000..342a7138397 --- /dev/null +++ b/users/item_license_details_get_teams_licensing_details_request_builder.go @@ -0,0 +1,66 @@ +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" +) + +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder provides operations to call the getTeamsLicensingDetails method. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + m := &ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/licenseDetails/getTeamsLicensingDetails()", pathParameters), + } + return m +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamsLicensingDetailsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable), nil +} +// ToGetRequestInformation invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_license_details_request_builder.go b/users/item_license_details_request_builder.go index a6e7de19de8..3237f30e21c 100644 --- a/users/item_license_details_request_builder.go +++ b/users/item_license_details_request_builder.go @@ -96,6 +96,10 @@ func (m *ItemLicenseDetailsRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsCollectionResponseable), nil } +// GetTeamsLicensingDetails provides operations to call the getTeamsLicensingDetails method. +func (m *ItemLicenseDetailsRequestBuilder) GetTeamsLicensingDetails()(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to licenseDetails for users func (m *ItemLicenseDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); 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 0f08de5e7fc..b9bb275eb9d 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 @@ -11,7 +11,7 @@ import ( type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. +// ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects. +// Get retrieve a list of attachment objects attached to a message. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -94,10 +94,10 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// 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. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-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 { @@ -116,7 +116,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects. +// ToGetRequestInformation retrieve a list of attachment objects attached to a message. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -129,7 +129,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// 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. +// 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. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 0819b977a9e..59f5aac80ef 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 @@ -11,7 +11,7 @@ import ( type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. +// ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Count()(*Item func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects. +// Get retrieve a list of attachment objects attached to a message. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -94,10 +94,10 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// 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. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-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 { @@ -116,7 +116,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects. +// ToGetRequestInformation retrieve a list of attachment objects attached to a message. func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -129,7 +129,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// 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. +// 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. func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { 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 a816f3fd42b..069b36d7161 100644 --- a/users/item_mail_folders_mail_folder_item_request_builder.go +++ b/users/item_mail_folders_mail_folder_item_request_builder.go @@ -117,10 +117,10 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Messages()(*ItemMailFolder func (m *ItemMailFoldersMailFolderItemRequestBuilder) Move()(*ItemMailFoldersItemMoveRequestBuilder) { return NewItemMailFoldersItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the writable properties of a mailSearchFolder object. +// Patch update the properties of mailFolder object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/mailfolder-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 { @@ -162,7 +162,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToGetRequestInformation(ct requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the writable properties of a mailSearchFolder object. +// ToPatchRequestInformation update the properties of mailFolder object. func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index 2ecca9ac69d..8f7b558b410 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. +// ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. type ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Count()(*ItemMessagesItemAtt func (m *ItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects. +// Get retrieve a list of attachment objects attached to a message. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -94,10 +94,10 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// 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. +// 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-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 { @@ -116,7 +116,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects. +// ToGetRequestInformation retrieve a list of attachment objects attached to a message. func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -129,7 +129,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// 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. +// 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. func (m *ItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index 87fc5ddab87..be89fe7c039 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -80,10 +80,10 @@ func (m *ItemMessagesMessageItemRequestBuilder) CreateReply()(*ItemMessagesItemC func (m *ItemMessagesMessageItemRequestBuilder) CreateReplyAll()(*ItemMessagesItemCreateReplyAllRequestBuilder) { return NewItemMessagesItemCreateReplyAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete delete a message in the specified user's mailbox, or delete a relationship of the message. For example, you can delete a specific @-mention of the specified user in the message. +// Delete delete eventMessage. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-delete?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -110,7 +110,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Forward()(*ItemMessagesItemForwa // Get the messages in a mailbox or folder. Read-only. Nullable. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-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 { @@ -179,7 +179,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ReplyAll()(*ItemMessagesItemRepl func (m *ItemMessagesMessageItemRequestBuilder) Send()(*ItemMessagesItemSendRequestBuilder) { return NewItemMessagesItemSendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a message in the specified user's mailbox, or delete a relationship of the message. For example, you can delete a specific @-mention of the specified user in the message. +// ToDeleteRequestInformation delete eventMessage. func (m *ItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_planner_plans_item_archive_post_request_body.go b/users/item_planner_plans_item_archive_post_request_body.go new file mode 100644 index 00000000000..b7cc97495a2 --- /dev/null +++ b/users/item_planner_plans_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemArchivePostRequestBody +type ItemPlannerPlansItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemArchivePostRequestBody instantiates a new ItemPlannerPlansItemArchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemArchivePostRequestBody()(*ItemPlannerPlansItemArchivePostRequestBody) { + m := &ItemPlannerPlansItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemArchivePostRequestBodyable +type ItemPlannerPlansItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/users/item_planner_plans_item_archive_request_builder.go b/users/item_planner_plans_item_archive_request_builder.go new file mode 100644 index 00000000000..5f3434dca58 --- /dev/null +++ b/users/item_planner_plans_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemArchiveRequestBuilder provides operations to call the archive method. +type ItemPlannerPlansItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + m := &ItemPlannerPlansItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/archive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_item_unarchive_post_request_body.go b/users/item_planner_plans_item_unarchive_post_request_body.go new file mode 100644 index 00000000000..e898e3e3c2d --- /dev/null +++ b/users/item_planner_plans_item_unarchive_post_request_body.go @@ -0,0 +1,110 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemUnarchivePostRequestBody +type ItemPlannerPlansItemUnarchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemUnarchivePostRequestBody instantiates a new ItemPlannerPlansItemUnarchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemUnarchivePostRequestBody()(*ItemPlannerPlansItemUnarchivePostRequestBody) { + m := &ItemPlannerPlansItemUnarchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemUnarchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemUnarchivePostRequestBodyable +type ItemPlannerPlansItemUnarchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/users/item_planner_plans_item_unarchive_request_builder.go b/users/item_planner_plans_item_unarchive_request_builder.go new file mode 100644 index 00000000000..2bf7dea0509 --- /dev/null +++ b/users/item_planner_plans_item_unarchive_request_builder.go @@ -0,0 +1,66 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPlannerPlansItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + m := &ItemPlannerPlansItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_planner_plan_item_request_builder.go b/users/item_planner_plans_planner_plan_item_request_builder.go index c346f616f03..749848bbc35 100644 --- a/users/item_planner_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_plans_planner_plan_item_request_builder.go @@ -41,6 +41,10 @@ type ItemPlannerPlansPlannerPlanItemRequestBuilderPatchRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Archive()(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Buckets provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Buckets()(*ItemPlannerPlansItemBucketsRequestBuilder) { return NewItemPlannerPlansItemBucketsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -161,6 +165,10 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToPatchRequestInformatio } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Unarchive()(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_request_builder.go b/users/item_teamwork_request_builder.go index 8897b3ca638..2ac47ea36bf 100644 --- a/users/item_teamwork_request_builder.go +++ b/users/item_teamwork_request_builder.go @@ -18,7 +18,7 @@ type ItemTeamworkRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemTeamworkRequestBuilderGetQueryParameters a container for Microsoft Teams features available for the user. Read-only. Nullable. +// ItemTeamworkRequestBuilderGetQueryParameters get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. type ItemTeamworkRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *ItemTeamworkRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get a container for Microsoft Teams features available for the user. Read-only. Nullable. +// Get get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/userteamwork-get?view=graph-rest-1.0 func (m *ItemTeamworkRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserTeamworkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +133,7 @@ func (m *ItemTeamworkRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation a container for Microsoft Teams features available for the user. Read-only. Nullable. +// ToGetRequestInformation get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. func (m *ItemTeamworkRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil {