diff --git a/admin/windows_updates_deployment_audiences_deployment_audience_item_request_builder.go b/admin/windows_updates_deployment_audiences_deployment_audience_item_request_builder.go index 61a7c489c68..f5a82f04b14 100644 --- a/admin/windows_updates_deployment_audiences_deployment_audience_item_request_builder.go +++ b/admin/windows_updates_deployment_audiences_deployment_audience_item_request_builder.go @@ -41,6 +41,11 @@ type WindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilderPatchR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// ApplicableContent provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilder) ApplicableContent()(*WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewWindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilder and sets the default values. func NewWindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilder) { m := &WindowsUpdatesDeploymentAudiencesDeploymentAudienceItemRequestBuilder{ diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_applicable_content_catalog_entry_item_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_applicable_content_catalog_entry_item_request_builder.go new file mode 100644 index 00000000000..daf60dba573 --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_applicable_content_catalog_entry_item_request_builder.go @@ -0,0 +1,167 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters content eligible to deploy to devices in the audience. Not nullable. Read-only. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CatalogEntry provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) CatalogEntry()(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property applicableContent for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// MatchedDevices provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) MatchedDevices()(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property applicableContent in admin +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// ToDeleteRequestInformation delete navigation property applicableContent for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}", 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 content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 applicableContent in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_count_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_count_request_builder.go new file mode 100644 index 00000000000..fd3a666a7ef --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_item_catalog_entry_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_item_catalog_entry_request_builder.go new file mode 100644 index 00000000000..892595cb986 --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_item_catalog_entry_request_builder.go @@ -0,0 +1,81 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters catalog entry for the update or content. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/catalogEntry{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderInternal(urlParams, requestAdapter) +} +// Get catalog entry for the update or content. +// returns a CatalogEntryable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateCatalogEntryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable), nil +} +// ToGetRequestInformation catalog entry for the update or content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemCatalogEntryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go new file mode 100644 index 00000000000..433058a67f9 --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters collection of devices and recommendations for applicable catalog content. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property matchedDevices for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get collection of devices and recommendations for applicable catalog content. +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// Patch update the navigation property matchedDevices in admin +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// ToDeleteRequestInformation delete navigation property matchedDevices for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation collection of devices and recommendations for applicable catalog content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 matchedDevices in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_count_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_count_request_builder.go new file mode 100644 index 00000000000..32250ada464 --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_request_builder.go new file mode 100644 index 00000000000..5f9d266d78d --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_item_matched_devices_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters collection of devices and recommendations for applicable catalog content. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApplicableContentDeviceMatchDeviceId provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) ByApplicableContentDeviceMatchDeviceId(applicableContentDeviceMatchDeviceId string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if applicableContentDeviceMatchDeviceId != "" { + urlTplParams["applicableContentDeviceMatch%2DdeviceId"] = applicableContentDeviceMatchDeviceId + } + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) Count()(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get collection of devices and recommendations for applicable catalog content. +// returns a ApplicableContentDeviceMatchCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchCollectionResponseable), nil +} +// Post create new navigation property to matchedDevices for admin +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// ToGetRequestInformation collection of devices and recommendations for applicable catalog content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 matchedDevices for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentItemMatchedDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployment_audiences_item_applicable_content_request_builder.go b/admin/windows_updates_deployment_audiences_item_applicable_content_request_builder.go new file mode 100644 index 00000000000..d33ed5b2762 --- /dev/null +++ b/admin/windows_updates_deployment_audiences_item_applicable_content_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetQueryParameters content eligible to deploy to devices in the audience. Not nullable. Read-only. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApplicableContentCatalogEntryId provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) ByApplicableContentCatalogEntryId(applicableContentCatalogEntryId string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if applicableContentCatalogEntryId != "" { + urlTplParams["applicableContent%2DcatalogEntryId"] = applicableContentCatalogEntryId + } + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) { + m := &WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder instantiates a new WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) Count()(*WindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a ApplicableContentCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentCollectionResponseable), nil +} +// Post create new navigation property to applicableContent for admin +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// ToGetRequestInformation content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 applicableContent for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/applicableContent", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder when successful +func (m *WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder) { + return NewWindowsUpdatesDeploymentAudiencesItemApplicableContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_applicable_content_catalog_entry_item_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_applicable_content_catalog_entry_item_request_builder.go new file mode 100644 index 00000000000..bcb730b8d53 --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_applicable_content_catalog_entry_item_request_builder.go @@ -0,0 +1,167 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters content eligible to deploy to devices in the audience. Not nullable. Read-only. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CatalogEntry provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) CatalogEntry()(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property applicableContent for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// MatchedDevices provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) MatchedDevices()(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property applicableContent in admin +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// ToDeleteRequestInformation delete navigation property applicableContent for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}", 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 content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 applicableContent in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_count_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_count_request_builder.go new file mode 100644 index 00000000000..d9eb5c32ebd --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_item_catalog_entry_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_item_catalog_entry_request_builder.go new file mode 100644 index 00000000000..c665cbc733d --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_item_catalog_entry_request_builder.go @@ -0,0 +1,81 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters catalog entry for the update or content. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/catalogEntry{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal(urlParams, requestAdapter) +} +// Get catalog entry for the update or content. +// returns a CatalogEntryable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateCatalogEntryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable), nil +} +// ToGetRequestInformation catalog entry for the update or content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemCatalogEntryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go new file mode 100644 index 00000000000..5cc4ea2724b --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters collection of devices and recommendations for applicable catalog content. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property matchedDevices for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get collection of devices and recommendations for applicable catalog content. +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// Patch update the navigation property matchedDevices in admin +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// ToDeleteRequestInformation delete navigation property matchedDevices for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation collection of devices and recommendations for applicable catalog content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 matchedDevices in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_count_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_count_request_builder.go new file mode 100644 index 00000000000..f1deca4f067 --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_request_builder.go new file mode 100644 index 00000000000..eacaa6f7015 --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_item_matched_devices_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters collection of devices and recommendations for applicable catalog content. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApplicableContentDeviceMatchDeviceId provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) ByApplicableContentDeviceMatchDeviceId(applicableContentDeviceMatchDeviceId string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if applicableContentDeviceMatchDeviceId != "" { + urlTplParams["applicableContentDeviceMatch%2DdeviceId"] = applicableContentDeviceMatchDeviceId + } + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) Count()(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get collection of devices and recommendations for applicable catalog content. +// returns a ApplicableContentDeviceMatchCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchCollectionResponseable), nil +} +// Post create new navigation property to matchedDevices for admin +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// ToGetRequestInformation collection of devices and recommendations for applicable catalog content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 matchedDevices for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentItemMatchedDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_applicable_content_request_builder.go b/admin/windows_updates_deployments_item_audience_applicable_content_request_builder.go new file mode 100644 index 00000000000..c6cdeaabedb --- /dev/null +++ b/admin/windows_updates_deployments_item_audience_applicable_content_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetQueryParameters content eligible to deploy to devices in the audience. Not nullable. Read-only. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetQueryParameters +} +// WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApplicableContentCatalogEntryId provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) ByApplicableContentCatalogEntryId(applicableContentCatalogEntryId string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if applicableContentCatalogEntryId != "" { + urlTplParams["applicableContent%2DcatalogEntryId"] = applicableContentCatalogEntryId + } + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) { + m := &WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder instantiates a new WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder and sets the default values. +func NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) Count()(*WindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a ApplicableContentCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentCollectionResponseable), nil +} +// Post create new navigation property to applicableContent for admin +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// ToGetRequestInformation content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 applicableContent for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/deployments/{deployment%2Did}/audience/applicableContent", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_deployments_item_audience_request_builder.go b/admin/windows_updates_deployments_item_audience_request_builder.go index 12726a9ef14..cf5e802796d 100644 --- a/admin/windows_updates_deployments_item_audience_request_builder.go +++ b/admin/windows_updates_deployments_item_audience_request_builder.go @@ -41,6 +41,11 @@ type WindowsUpdatesDeploymentsItemAudienceRequestBuilderPatchRequestConfiguratio // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// ApplicableContent provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +// returns a *WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder when successful +func (m *WindowsUpdatesDeploymentsItemAudienceRequestBuilder) ApplicableContent()(*WindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilder) { + return NewWindowsUpdatesDeploymentsItemAudienceApplicableContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewWindowsUpdatesDeploymentsItemAudienceRequestBuilderInternal instantiates a new WindowsUpdatesDeploymentsItemAudienceRequestBuilder and sets the default values. func NewWindowsUpdatesDeploymentsItemAudienceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesDeploymentsItemAudienceRequestBuilder) { m := &WindowsUpdatesDeploymentsItemAudienceRequestBuilder{ 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 47b564d1d30..d9f0d337c61 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,11 +54,11 @@ func NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an operationalInsightsConnection object. +// Delete delete a resourceConnection object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-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,12 +73,12 @@ 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. // returns a ResourceConnectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-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 { @@ -116,7 +116,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable), nil } -// ToDeleteRequestInformation delete an operationalInsightsConnection object. +// ToDeleteRequestInformation delete a resourceConnection object. // returns a *RequestInformation when successful func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/resourceConnections/{resourceConnection%2Did}", m.BaseRequestBuilder.PathParameters) @@ -127,7 +127,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. // returns a *RequestInformation when successful func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go b/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go index 2da480e25af..f1f19248215 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 @@ -54,11 +54,11 @@ 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. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-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 { @@ -136,7 +136,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. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/updatableAssets/{updatableAsset%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_applicable_content_catalog_entry_item_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_applicable_content_catalog_entry_item_request_builder.go new file mode 100644 index 00000000000..5b19461726f --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_applicable_content_catalog_entry_item_request_builder.go @@ -0,0 +1,167 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters content eligible to deploy to devices in the audience. Not nullable. Read-only. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CatalogEntry provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) CatalogEntry()(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property applicableContent for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// MatchedDevices provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) MatchedDevices()(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property applicableContent in admin +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// ToDeleteRequestInformation delete navigation property applicableContent for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}", 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 content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 applicableContent in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_count_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_count_request_builder.go new file mode 100644 index 00000000000..f2b6d04810a --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_item_catalog_entry_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_item_catalog_entry_request_builder.go new file mode 100644 index 00000000000..55cb259b82f --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_item_catalog_entry_request_builder.go @@ -0,0 +1,81 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder provides operations to manage the catalogEntry property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters catalog entry for the update or content. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/catalogEntry{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderInternal(urlParams, requestAdapter) +} +// Get catalog entry for the update or content. +// returns a CatalogEntryable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateCatalogEntryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CatalogEntryable), nil +} +// ToGetRequestInformation catalog entry for the update or content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemCatalogEntryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go new file mode 100644 index 00000000000..2cee3b6efe1 --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_applicable_content_device_match_device_item_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters collection of devices and recommendations for applicable catalog content. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetQueryParameters +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property matchedDevices for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get collection of devices and recommendations for applicable catalog content. +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// Patch update the navigation property matchedDevices in admin +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// ToDeleteRequestInformation delete navigation property matchedDevices for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation collection of devices and recommendations for applicable catalog content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 matchedDevices in admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/{applicableContentDeviceMatch%2DdeviceId}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_count_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_count_request_builder.go new file mode 100644 index 00000000000..bddb642ca4f --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_count_request_builder.go @@ -0,0 +1,80 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder provides operations to count the resources in the collection. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters get the number of the resource +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetQueryParameters +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_request_builder.go new file mode 100644 index 00000000000..37f9c95c598 --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_item_matched_devices_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters collection of devices and recommendations for applicable catalog content. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetQueryParameters +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApplicableContentDeviceMatchDeviceId provides operations to manage the matchedDevices property of the microsoft.graph.windowsUpdates.applicableContent entity. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) ByApplicableContentDeviceMatchDeviceId(applicableContentDeviceMatchDeviceId string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if applicableContentDeviceMatchDeviceId != "" { + urlTplParams["applicableContentDeviceMatch%2DdeviceId"] = applicableContentDeviceMatchDeviceId + } + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesApplicableContentDeviceMatchDeviceItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) Count()(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get collection of devices and recommendations for applicable catalog content. +// returns a ApplicableContentDeviceMatchCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchCollectionResponseable), nil +} +// Post create new navigation property to matchedDevices for admin +// returns a ApplicableContentDeviceMatchable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentDeviceMatchFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable), nil +} +// ToGetRequestInformation collection of devices and recommendations for applicable catalog content. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 matchedDevices for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentDeviceMatchable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent/{applicableContent%2DcatalogEntryId}/matchedDevices", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentItemMatchedDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_applicable_content_request_builder.go b/admin/windows_updates_update_policies_item_audience_applicable_content_request_builder.go new file mode 100644 index 00000000000..699012845a8 --- /dev/null +++ b/admin/windows_updates_update_policies_item_audience_applicable_content_request_builder.go @@ -0,0 +1,152 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c "github.com/microsoftgraph/msgraph-beta-sdk-go/models/windowsupdates" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetQueryParameters content eligible to deploy to devices in the audience. Not nullable. Read-only. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetQueryParameters 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"` +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetQueryParameters +} +// WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApplicableContentCatalogEntryId provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) ByApplicableContentCatalogEntryId(applicableContentCatalogEntryId string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if applicableContentCatalogEntryId != "" { + urlTplParams["applicableContent%2DcatalogEntryId"] = applicableContentCatalogEntryId + } + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentApplicableContentCatalogEntryItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) { + m := &WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder and sets the default values. +func NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) Count()(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a ApplicableContentCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentCollectionResponseable), nil +} +// Post create new navigation property to applicableContent for admin +// returns a ApplicableContentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) Post(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderPostRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.CreateApplicableContentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable), nil +} +// ToGetRequestInformation content eligible to deploy to devices in the audience. Not nullable. Read-only. +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 applicableContent for admin +// returns a *RequestInformation when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ApplicableContentable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/audience/applicableContent", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) WithUrl(rawUrl string)(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_update_policies_item_audience_request_builder.go b/admin/windows_updates_update_policies_item_audience_request_builder.go index 9098acfbb1d..76169a11e07 100644 --- a/admin/windows_updates_update_policies_item_audience_request_builder.go +++ b/admin/windows_updates_update_policies_item_audience_request_builder.go @@ -41,6 +41,11 @@ type WindowsUpdatesUpdatePoliciesItemAudienceRequestBuilderPatchRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// ApplicableContent provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.deploymentAudience entity. +// returns a *WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder when successful +func (m *WindowsUpdatesUpdatePoliciesItemAudienceRequestBuilder) ApplicableContent()(*WindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilder) { + return NewWindowsUpdatesUpdatePoliciesItemAudienceApplicableContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewWindowsUpdatesUpdatePoliciesItemAudienceRequestBuilderInternal instantiates a new WindowsUpdatesUpdatePoliciesItemAudienceRequestBuilder and sets the default values. func NewWindowsUpdatesUpdatePoliciesItemAudienceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*WindowsUpdatesUpdatePoliciesItemAudienceRequestBuilder) { m := &WindowsUpdatesUpdatePoliciesItemAudienceRequestBuilder{ 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 3ee9520ec02..e95369ca448 100644 --- a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go +++ b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go @@ -54,11 +54,11 @@ func NewWindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemReq urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a contentApproval object. +// Delete delete a complianceChange object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,12 +96,12 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// Patch update the properties of a complianceChange object. +// Patch update the properties of a contentApproval object. // returns a ComplianceChangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-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 { @@ -119,7 +119,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// ToDeleteRequestInformation delete a contentApproval object. +// ToDeleteRequestInformation delete a complianceChange object. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}", m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,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. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_participants_invite_request_builder.go b/app/calls_item_participants_invite_request_builder.go index 6ef2676f9aa..e54d92ceb4c 100644 --- a/app/calls_item_participants_invite_request_builder.go +++ b/app/calls_item_participants_invite_request_builder.go @@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. // returns a InviteParticipantsOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. // returns a *RequestInformation when successful func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/online_meetings_item_meeting_attendance_report_request_builder.go b/app/online_meetings_item_meeting_attendance_report_request_builder.go index 0d26859fd30..98c4f9ec022 100644 --- a/app/online_meetings_item_meeting_attendance_report_request_builder.go +++ b/app/online_meetings_item_meeting_attendance_report_request_builder.go @@ -18,7 +18,7 @@ type OnlineMeetingsItemMeetingAttendanceReportRequestBuilderDeleteRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. type OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *OnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Delete(ctx con } return nil } -// Get get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// Get get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -129,7 +129,7 @@ func (m *OnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToDeleteReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// ToGetRequestInformation get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. // returns a *RequestInformation when successful func (m *OnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/online_meetings_item_registration_request_builder.go b/app/online_meetings_item_registration_request_builder.go index cd59c51d537..0637af9af94 100644 --- a/app/online_meetings_item_registration_request_builder.go +++ b/app/online_meetings_item_registration_request_builder.go @@ -59,11 +59,11 @@ func NewOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestAdapt func (m *OnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*OnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. +// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context func (m *OnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*OnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. +// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // returns a *RequestInformation when successful func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/app/onlineMeetings/{onlineMeeting%2Did}/registration", m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index b3fbfcfb4cd..e5931ce1578 100644 --- a/communications/calls_item_participants_invite_request_builder.go +++ b/communications/calls_item_participants_invite_request_builder.go @@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. // returns a InviteParticipantsOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. // returns a *RequestInformation when successful func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/online_meetings_item_meeting_attendance_report_request_builder.go b/communications/online_meetings_item_meeting_attendance_report_request_builder.go index ff1a19cfd13..2d5f9301da8 100644 --- a/communications/online_meetings_item_meeting_attendance_report_request_builder.go +++ b/communications/online_meetings_item_meeting_attendance_report_request_builder.go @@ -18,7 +18,7 @@ type OnlineMeetingsItemMeetingAttendanceReportRequestBuilderDeleteRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. type OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *OnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Delete(ctx con } return nil } -// Get get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// Get get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -129,7 +129,7 @@ func (m *OnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToDeleteReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// ToGetRequestInformation get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. // returns a *RequestInformation when successful func (m *OnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/online_meetings_item_registration_request_builder.go b/communications/online_meetings_item_registration_request_builder.go index 5c4b06fce07..2520a137246 100644 --- a/communications/online_meetings_item_registration_request_builder.go +++ b/communications/online_meetings_item_registration_request_builder.go @@ -59,11 +59,11 @@ func NewOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestAdapt func (m *OnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*OnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. +// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context func (m *OnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*OnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. +// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // returns a *RequestInformation when successful func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/registration", m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/monitoring_alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_change_alert_records_portal_notification_as_sent_post_request_body.go b/devicemanagement/monitoring_alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_change_alert_records_portal_notification_as_sent_post_request_body.go new file mode 100644 index 00000000000..fc818b3c15d --- /dev/null +++ b/devicemanagement/monitoring_alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_change_alert_records_portal_notification_as_sent_post_request_body.go @@ -0,0 +1,119 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody instantiates a new MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody and sets the default values. +func NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody()(*MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) { + m := &MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAlertRecordIds gets the alertRecordIds property value. The alertRecordIds property +// returns a []string when successful +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetAlertRecordIds()([]string) { + val, err := m.GetBackingStore().Get("alertRecordIds") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["alertRecordIds"] = 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.SetAlertRecordIds(res) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAlertRecordIds() != nil { + err := writer.WriteCollectionOfStringValues("alertRecordIds", m.GetAlertRecordIds()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAlertRecordIds sets the alertRecordIds property value. The alertRecordIds property +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) SetAlertRecordIds(value []string)() { + err := m.GetBackingStore().Set("alertRecordIds", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAlertRecordIds()([]string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAlertRecordIds(value []string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/devicemanagement/monitoring_alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_request_builder.go b/devicemanagement/monitoring_alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_request_builder.go new file mode 100644 index 00000000000..cd8a86231d0 --- /dev/null +++ b/devicemanagement/monitoring_alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_request_builder.go @@ -0,0 +1,68 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder provides operations to call the changeAlertRecordsPortalNotificationAsSent method. +type MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal instantiates a new MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder and sets the default values. +func NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + m := &MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/monitoring/alertRecords/microsoft.graph.deviceManagement.changeAlertRecordsPortalNotificationAsSent", pathParameters), + } + return m +} +// NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder instantiates a new MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder and sets the default values. +func NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action changeAlertRecordsPortalNotificationAsSent +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) Post(ctx context.Context, body MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyable, requestConfiguration *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action changeAlertRecordsPortalNotificationAsSent +// returns a *RequestInformation when successful +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) ToPostRequestInformation(ctx context.Context, body MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyable, requestConfiguration *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder when successful +func (m *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) WithUrl(rawUrl string)(*MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + return NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/monitoring_alert_records_request_builder.go b/devicemanagement/monitoring_alert_records_request_builder.go index 707894e45dd..cd82a4babf1 100644 --- a/devicemanagement/monitoring_alert_records_request_builder.go +++ b/devicemanagement/monitoring_alert_records_request_builder.go @@ -99,6 +99,11 @@ func (m *MonitoringAlertRecordsRequestBuilder) Get(ctx context.Context, requestC } return res.(i2edb12705e6a63a8a0fb3f8c7a11f4ab12f4be764e61fa1094f401595fb171bf.AlertRecordCollectionResponseable), nil } +// MicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSent provides operations to call the changeAlertRecordsPortalNotificationAsSent method. +// returns a *MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder when successful +func (m *MonitoringAlertRecordsRequestBuilder) MicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSent()(*MonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + return NewMonitoringAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MicrosoftGraphDeviceManagementGetPortalNotifications provides operations to call the getPortalNotifications method. // returns a *MonitoringAlertRecordsMicrosoftGraphDeviceManagementGetPortalNotificationsRequestBuilder when successful func (m *MonitoringAlertRecordsRequestBuilder) MicrosoftGraphDeviceManagementGetPortalNotifications()(*MonitoringAlertRecordsMicrosoftGraphDeviceManagementGetPortalNotificationsRequestBuilder) { diff --git a/devicemanagement/virtual_endpoint_on_premises_connections_cloud_pc_on_premises_connection_item_request_builder.go b/devicemanagement/virtual_endpoint_on_premises_connections_cloud_pc_on_premises_connection_item_request_builder.go index 6ae44d6f3fb..ee20d9fdb5a 100644 --- a/devicemanagement/virtual_endpoint_on_premises_connections_cloud_pc_on_premises_connection_item_request_builder.go +++ b/devicemanagement/virtual_endpoint_on_premises_connections_cloud_pc_on_premises_connection_item_request_builder.go @@ -54,7 +54,7 @@ func NewVirtualEndpointOnPremisesConnectionsCloudPcOnPremisesConnectionItemReque urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointOnPremisesConnectionsCloudPcOnPremisesConnectionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. +// Delete delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You can't delete an Azure network connection when it's in use, as indicated by the inUse property. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -124,7 +124,7 @@ func (m *VirtualEndpointOnPremisesConnectionsCloudPcOnPremisesConnectionItemRequ func (m *VirtualEndpointOnPremisesConnectionsCloudPcOnPremisesConnectionItemRequestBuilder) RunHealthChecks()(*VirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilder) { return NewVirtualEndpointOnPremisesConnectionsItemRunHealthChecksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. +// ToDeleteRequestInformation delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You can't delete an Azure network connection when it's in use, as indicated by the inUse property. // returns a *RequestInformation when successful func (m *VirtualEndpointOnPremisesConnectionsCloudPcOnPremisesConnectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointOnPremisesConnectionsCloudPcOnPremisesConnectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_on_premises_connections_request_builder.go b/devicemanagement/virtual_endpoint_on_premises_connections_request_builder.go index ef457c3d3ba..dfc73262418 100644 --- a/devicemanagement/virtual_endpoint_on_premises_connections_request_builder.go +++ b/devicemanagement/virtual_endpoint_on_premises_connections_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEndpointOnPremisesConnectionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEndpointOnPremisesConnectionsRequestBuilderGetQueryParameters list properties and relationships of the cloudPcOnPremisesConnection objects. +// VirtualEndpointOnPremisesConnectionsRequestBuilderGetQueryParameters get a list of the cloudPcOnPremisesConnection objects and their properties. type VirtualEndpointOnPremisesConnectionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewVirtualEndpointOnPremisesConnectionsRequestBuilder(rawUrl string, reques func (m *VirtualEndpointOnPremisesConnectionsRequestBuilder) Count()(*VirtualEndpointOnPremisesConnectionsCountRequestBuilder) { return NewVirtualEndpointOnPremisesConnectionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the cloudPcOnPremisesConnection objects. +// Get get a list of the cloudPcOnPremisesConnection objects and their properties. // returns a CloudPcOnPremisesConnectionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -122,7 +122,7 @@ func (m *VirtualEndpointOnPremisesConnectionsRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOnPremisesConnectionable), nil } -// ToGetRequestInformation list properties and relationships of the cloudPcOnPremisesConnection objects. +// ToGetRequestInformation get a list of the cloudPcOnPremisesConnection objects and their properties. // returns a *RequestInformation when successful func (m *VirtualEndpointOnPremisesConnectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointOnPremisesConnectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_drive_item_item_request_builder.go b/drives/item_items_drive_item_item_request_builder.go index 4d19ebdc881..102dac8ca81 100644 --- a/drives/item_items_drive_item_item_request_builder.go +++ b/drives/item_items_drive_item_item_request_builder.go @@ -188,12 +188,12 @@ 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. // returns a DriveItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-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 { @@ -276,7 +276,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. // returns a *RequestInformation when successful func (m *ItemItemsDriveItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go index 09f83e001be..9ceade98924 100644 --- a/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder(rawUrl s // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go b/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go index f07f97302ad..b1b75b14a2e 100644 --- a/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder(rawUrl stri // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_request_builder.go index 2eebe6ae468..0c5ec60be7c 100644 --- a/drives/item_items_item_workbook_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*ItemItem // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_tables_item_rows_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_request_builder.go index 40b1222fb18..3c59653e48a 100644 --- a/drives/item_items_item_workbook_tables_item_rows_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_rows_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Count()(*ItemItemsIt // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_tables_request_builder.go b/drives/item_items_item_workbook_tables_request_builder.go index 7df6bf17cce..6624e9d64e8 100644 --- a/drives/item_items_item_workbook_tables_request_builder.go +++ b/drives/item_items_item_workbook_tables_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookTablesRequestBuilder) Count()(*ItemItemsItemWorkbo // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_at_with_index_points_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_at_with_index_points_request_builder.go index 16c639f4e0f..c594e722023 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_at_with_index_points_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_at_with_index_points_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters retrieve a list of chartpoints objects. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters retrieve a list of chartpoint objects. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,12 +59,12 @@ func NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPoints urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve a list of chartpoints objects. +// Get retrieve a list of chartpoint objects. // returns a WorkbookChartPointCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chartseries-list-points?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -105,7 +105,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPoint } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointable), nil } -// ToGetRequestInformation retrieve a list of chartpoints objects. +// ToGetRequestInformation retrieve a list of chartpoint objects. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go index ac4e2692f52..5d61efef48c 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters retrieve a list of chartpoints objects. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters retrieve a list of chartpoint objects. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuil func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of chartpoints objects. +// Get retrieve a list of chartpoint objects. // returns a WorkbookChartPointCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chartseries-list-points?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointable), nil } -// ToGetRequestInformation retrieve a list of chartpoints objects. +// ToGetRequestInformation retrieve a list of chartpoint objects. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go index 63b61cf5f78..d20e5f05c61 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Count()(*ItemI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go index 2bd998f24d4..d5bf6359572 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBu // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go index 836c9753521..165870bf056 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go @@ -64,7 +64,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuild // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go index 15f6d29f8ed..8e0fa01c4e4 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Cou // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go index c425c70fdf7..2d6dc0edc02 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Count( // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablerow-list?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 854508be538..ae5a2bf7127 100644 --- a/drives/item_items_item_workbook_worksheets_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_request_builder.go @@ -86,7 +86,7 @@ func (m *ItemItemsItemWorkbookWorksheetsRequestBuilder) Count()(*ItemItemsItemWo // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-list-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/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 8127cbf5408..af959a79ce6 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"` @@ -73,12 +73,12 @@ 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. // returns a IndustryDataConnectorable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-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 { @@ -101,12 +101,12 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get( func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) MicrosoftGraphIndustryDataValidate()(*IndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilder) { return NewIndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an industryDataConnector object. +// Patch update the properties of an azureDataLakeConnector object. // returns a IndustryDataConnectorable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-update?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,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. // returns a *RequestInformation when successful func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,7 +154,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an industryDataConnector object. +// ToPatchRequestInformation update the properties of an azureDataLakeConnector object. // returns a *RequestInformation when successful func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/external/industryData/dataConnectors/{industryDataConnector%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_data_connectors_request_builder.go b/external/industry_data_data_connectors_request_builder.go index 6ddd08c1e94..779f0c531b7 100644 --- a/external/industry_data_data_connectors_request_builder.go +++ b/external/industry_data_data_connectors_request_builder.go @@ -99,12 +99,12 @@ 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. // returns a IndustryDataConnectorable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-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 { @@ -136,7 +136,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. // returns a *RequestInformation when successful func (m *IndustryDataDataConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/external/industryData/dataConnectors", m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go index 60efbf66782..5b9d7a6b418 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"` @@ -78,12 +78,12 @@ 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. // returns a InboundFlowable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-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 { @@ -101,12 +101,12 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context. } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// Patch update the properties of an inboundFlow object. +// Patch update the properties of an inboundFileFlow object. // returns a InboundFlowable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-update?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFlow object. +// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an inboundFlow object. +// ToPatchRequestInformation update the properties of an inboundFileFlow object. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/external/industryData/inboundFlows/{inboundFlow%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_inbound_flows_request_builder.go b/external/industry_data_inbound_flows_request_builder.go index b9798cb666a..84a9fbbdbf3 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"` @@ -76,12 +76,12 @@ func NewIndustryDataInboundFlowsRequestBuilder(rawUrl string, requestAdapter i2a func (m *IndustryDataInboundFlowsRequestBuilder) Count()(*IndustryDataInboundFlowsCountRequestBuilder) { return NewIndustryDataInboundFlowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the inboundFileFlow objects and their properties. +// Get get a list of the inboundFlow objects and their properties. // returns a InboundFlowCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-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 { @@ -122,7 +122,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. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/graph_request_adapter.go b/graph_request_adapter.go index 4077e497270..1251b78e776 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.96.0", + GraphServiceLibraryVersion: "0.97.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -84,3 +84,4 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index d7a73127d39..750fc70b266 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 retrieve the properties and relationships of conversation object. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters get a group's conversation object. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -64,12 +64,12 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get retrieve the properties and relationships of conversation object. +// Get get a group's conversation object. // returns a Conversationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-conversation?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 { @@ -103,7 +103,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of conversation object. +// ToGetRequestInformation get a group's conversation object. // returns a *RequestInformation when successful func (m *ItemConversationsConversationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_recycle_bin_items_request_builder.go b/groups/item_sites_item_recycle_bin_items_request_builder.go index d4dd65e7a73..878b5c8d8d1 100644 --- a/groups/item_sites_item_recycle_bin_items_request_builder.go +++ b/groups/item_sites_item_recycle_bin_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemSitesItemRecycleBinItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemSitesItemRecycleBinItemsRequestBuilderGetQueryParameters get a collection of recycleBinItem resources in the recyleBin of the specified SharePoint site. +// ItemSitesItemRecycleBinItemsRequestBuilderGetQueryParameters get a collection of recycleBinItem resources in the recycleBin of the specified SharePoint site. type ItemSitesItemRecycleBinItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemSitesItemRecycleBinItemsRequestBuilder(rawUrl string, requestAdapter func (m *ItemSitesItemRecycleBinItemsRequestBuilder) Count()(*ItemSitesItemRecycleBinItemsCountRequestBuilder) { return NewItemSitesItemRecycleBinItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a collection of recycleBinItem resources in the recyleBin of the specified SharePoint site. +// Get get a collection of recycleBinItem resources in the recycleBin of the specified SharePoint site. // returns a RecycleBinItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -119,7 +119,7 @@ func (m *ItemSitesItemRecycleBinItemsRequestBuilder) Post(ctx context.Context, b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RecycleBinItemable), nil } -// ToGetRequestInformation get a collection of recycleBinItem resources in the recyleBin of the specified SharePoint site. +// ToGetRequestInformation get a collection of recycleBinItem resources in the recycleBin of the specified SharePoint site. // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_sites_add_post_request_body.go b/groups/item_sites_item_sites_add_post_request_body.go new file mode 100644 index 00000000000..5f5cd7d1373 --- /dev/null +++ b/groups/item_sites_item_sites_add_post_request_body.go @@ -0,0 +1,126 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemSitesItemSitesAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemSitesItemSitesAddPostRequestBody instantiates a new ItemSitesItemSitesAddPostRequestBody and sets the default values. +func NewItemSitesItemSitesAddPostRequestBody()(*ItemSitesItemSitesAddPostRequestBody) { + m := &ItemSitesItemSitesAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemSitesItemSitesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesItemSitesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesItemSitesAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemSitesItemSitesAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemSitesItemSitesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesItemSitesAddPostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemSitesItemSitesAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemSitesItemSitesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemSitesItemSitesAddPostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesItemSitesAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/groups/item_sites_item_sites_add_post_response.go b/groups/item_sites_item_sites_add_post_response.go new file mode 100644 index 00000000000..93a938c7944 --- /dev/null +++ b/groups/item_sites_item_sites_add_post_response.go @@ -0,0 +1,89 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemSitesItemSitesAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemSitesItemSitesAddPostResponse instantiates a new ItemSitesItemSitesAddPostResponse and sets the default values. +func NewItemSitesItemSitesAddPostResponse()(*ItemSitesItemSitesAddPostResponse) { + m := &ItemSitesItemSitesAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemSitesItemSitesAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesItemSitesAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesItemSitesAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesItemSitesAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesItemSitesAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesItemSitesAddPostResponse) 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 *ItemSitesItemSitesAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesItemSitesAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/groups/item_sites_item_sites_add_request_builder.go b/groups/item_sites_item_sites_add_request_builder.go new file mode 100644 index 00000000000..d8d9fe9ceea --- /dev/null +++ b/groups/item_sites_item_sites_add_request_builder.go @@ -0,0 +1,99 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesItemSitesAddRequestBuilder provides operations to call the add method. +type ItemSitesItemSitesAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesItemSitesAddRequestBuilderInternal instantiates a new ItemSitesItemSitesAddRequestBuilder and sets the default values. +func NewItemSitesItemSitesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesAddRequestBuilder) { + m := &ItemSitesItemSitesAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/add", pathParameters), + } + return m +} +// NewItemSitesItemSitesAddRequestBuilder instantiates a new ItemSitesItemSitesAddRequestBuilder and sets the default values. +func NewItemSitesItemSitesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesItemSitesAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post follow a user's site or multiple sites. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemSitesItemSitesAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 +func (m *ItemSitesItemSitesAddRequestBuilder) Post(ctx context.Context, body ItemSitesItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesItemSitesAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesItemSitesAddResponseable), nil +} +// PostAsAddPostResponse follow a user's site or multiple sites. +// returns a ItemSitesItemSitesAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 +func (m *ItemSitesItemSitesAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemSitesItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesItemSitesAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesItemSitesAddPostResponseable), nil +} +// ToPostRequestInformation follow a user's site or multiple sites. +// returns a *RequestInformation when successful +func (m *ItemSitesItemSitesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesItemSitesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesItemSitesAddRequestBuilder when successful +func (m *ItemSitesItemSitesAddRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemSitesAddRequestBuilder) { + return NewItemSitesItemSitesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_sites_item_sites_add_response.go b/groups/item_sites_item_sites_add_response.go new file mode 100644 index 00000000000..de612476e52 --- /dev/null +++ b/groups/item_sites_item_sites_add_response.go @@ -0,0 +1,27 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemSitesItemSitesAddPostResponseable instead. +type ItemSitesItemSitesAddResponse struct { + ItemSitesItemSitesAddPostResponse +} +// NewItemSitesItemSitesAddResponse instantiates a new ItemSitesItemSitesAddResponse and sets the default values. +func NewItemSitesItemSitesAddResponse()(*ItemSitesItemSitesAddResponse) { + m := &ItemSitesItemSitesAddResponse{ + ItemSitesItemSitesAddPostResponse: *NewItemSitesItemSitesAddPostResponse(), + } + return m +} +// CreateItemSitesItemSitesAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesItemSitesAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesItemSitesAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemSitesItemSitesAddPostResponseable instead. +type ItemSitesItemSitesAddResponseable interface { + ItemSitesItemSitesAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_sites_item_sites_remove_post_request_body.go b/groups/item_sites_item_sites_remove_post_request_body.go new file mode 100644 index 00000000000..9ff2e621e4a --- /dev/null +++ b/groups/item_sites_item_sites_remove_post_request_body.go @@ -0,0 +1,126 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemSitesItemSitesRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemSitesItemSitesRemovePostRequestBody instantiates a new ItemSitesItemSitesRemovePostRequestBody and sets the default values. +func NewItemSitesItemSitesRemovePostRequestBody()(*ItemSitesItemSitesRemovePostRequestBody) { + m := &ItemSitesItemSitesRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemSitesItemSitesRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesItemSitesRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesItemSitesRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemSitesItemSitesRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemSitesItemSitesRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesItemSitesRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesItemSitesRemovePostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesItemSitesRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemSitesItemSitesRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemSitesItemSitesRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemSitesItemSitesRemovePostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesItemSitesRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/groups/item_sites_item_sites_remove_post_response.go b/groups/item_sites_item_sites_remove_post_response.go new file mode 100644 index 00000000000..16f5647813e --- /dev/null +++ b/groups/item_sites_item_sites_remove_post_response.go @@ -0,0 +1,89 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemSitesItemSitesRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemSitesItemSitesRemovePostResponse instantiates a new ItemSitesItemSitesRemovePostResponse and sets the default values. +func NewItemSitesItemSitesRemovePostResponse()(*ItemSitesItemSitesRemovePostResponse) { + m := &ItemSitesItemSitesRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemSitesItemSitesRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesItemSitesRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesItemSitesRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesItemSitesRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesItemSitesRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesItemSitesRemovePostResponse) 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 *ItemSitesItemSitesRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesItemSitesRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/groups/item_sites_item_sites_remove_request_builder.go b/groups/item_sites_item_sites_remove_request_builder.go new file mode 100644 index 00000000000..6debbc723d9 --- /dev/null +++ b/groups/item_sites_item_sites_remove_request_builder.go @@ -0,0 +1,99 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesItemSitesRemoveRequestBuilder provides operations to call the remove method. +type ItemSitesItemSitesRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesItemSitesRemoveRequestBuilderInternal instantiates a new ItemSitesItemSitesRemoveRequestBuilder and sets the default values. +func NewItemSitesItemSitesRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesRemoveRequestBuilder) { + m := &ItemSitesItemSitesRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/remove", pathParameters), + } + return m +} +// NewItemSitesItemSitesRemoveRequestBuilder instantiates a new ItemSitesItemSitesRemoveRequestBuilder and sets the default values. +func NewItemSitesItemSitesRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemSitesRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesItemSitesRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post unfollow a user's site or multiple sites. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemSitesItemSitesRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 +func (m *ItemSitesItemSitesRemoveRequestBuilder) Post(ctx context.Context, body ItemSitesItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesItemSitesRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesItemSitesRemoveResponseable), nil +} +// PostAsRemovePostResponse unfollow a user's site or multiple sites. +// returns a ItemSitesItemSitesRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 +func (m *ItemSitesItemSitesRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemSitesItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesItemSitesRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesItemSitesRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesItemSitesRemovePostResponseable), nil +} +// ToPostRequestInformation unfollow a user's site or multiple sites. +// returns a *RequestInformation when successful +func (m *ItemSitesItemSitesRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesItemSitesRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesItemSitesRemoveRequestBuilder when successful +func (m *ItemSitesItemSitesRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemSitesRemoveRequestBuilder) { + return NewItemSitesItemSitesRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_sites_item_sites_remove_response.go b/groups/item_sites_item_sites_remove_response.go new file mode 100644 index 00000000000..6301dc0c1d6 --- /dev/null +++ b/groups/item_sites_item_sites_remove_response.go @@ -0,0 +1,27 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemSitesItemSitesRemovePostResponseable instead. +type ItemSitesItemSitesRemoveResponse struct { + ItemSitesItemSitesRemovePostResponse +} +// NewItemSitesItemSitesRemoveResponse instantiates a new ItemSitesItemSitesRemoveResponse and sets the default values. +func NewItemSitesItemSitesRemoveResponse()(*ItemSitesItemSitesRemoveResponse) { + m := &ItemSitesItemSitesRemoveResponse{ + ItemSitesItemSitesRemovePostResponse: *NewItemSitesItemSitesRemovePostResponse(), + } + return m +} +// CreateItemSitesItemSitesRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesItemSitesRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesItemSitesRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemSitesItemSitesRemovePostResponseable instead. +type ItemSitesItemSitesRemoveResponseable interface { + ItemSitesItemSitesRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_sites_item_sites_request_builder.go b/groups/item_sites_item_sites_request_builder.go index affc31fe3f4..d0a2f90444f 100644 --- a/groups/item_sites_item_sites_request_builder.go +++ b/groups/item_sites_item_sites_request_builder.go @@ -39,6 +39,11 @@ type ItemSitesItemSitesRequestBuilderGetRequestConfiguration struct { // Request query parameters QueryParameters *ItemSitesItemSitesRequestBuilderGetQueryParameters } +// Add provides operations to call the add method. +// returns a *ItemSitesItemSitesAddRequestBuilder when successful +func (m *ItemSitesItemSitesRequestBuilder) Add()(*ItemSitesItemSitesAddRequestBuilder) { + return NewItemSitesItemSitesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // BySiteId1 provides operations to manage the sites property of the microsoft.graph.site entity. // returns a *ItemSitesItemSitesSiteItemRequestBuilder when successful func (m *ItemSitesItemSitesRequestBuilder) BySiteId1(siteId1 string)(*ItemSitesItemSitesSiteItemRequestBuilder) { @@ -92,6 +97,11 @@ func (m *ItemSitesItemSitesRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable), nil } +// Remove provides operations to call the remove method. +// returns a *ItemSitesItemSitesRemoveRequestBuilder when successful +func (m *ItemSitesItemSitesRequestBuilder) Remove()(*ItemSitesItemSitesRemoveRequestBuilder) { + return NewItemSitesItemSitesRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation get a collection of subsites defined for a [site][]. // returns a *RequestInformation when successful func (m *ItemSitesItemSitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemSitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go index 223a0c0d0cc..1617741fb09 100644 --- a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go +++ b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_channels_item_messages_request_builder.go b/groups/item_team_channels_item_messages_request_builder.go index ff8a409b869..da6e4e6bd3f 100644 --- a/groups/item_team_channels_item_messages_request_builder.go +++ b/groups/item_team_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamChannelsItemMessagesRequestBuilder) Get(ctx context.Context, re } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *ItemTeamChannelsItemMessagesRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *ItemTeamChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go index 212a9c4d7e1..c70b7796900 100644 --- a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go +++ b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_primary_channel_messages_request_builder.go b/groups/item_team_primary_channel_messages_request_builder.go index 6b842cd12ad..8a6c6615c11 100644 --- a/groups/item_team_primary_channel_messages_request_builder.go +++ b/groups/item_team_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) ToGetRequestInformation(c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *ItemTeamPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_schedule_shifts_role_definitions_request_builder.go b/groups/item_team_schedule_shifts_role_definitions_request_builder.go index de9b3a718b3..3499fa7ea2e 100644 --- a/groups/item_team_schedule_shifts_role_definitions_request_builder.go +++ b/groups/item_team_schedule_shifts_role_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamScheduleShiftsRoleDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters get shiftsRoleDefinitions from groups +// ItemTeamScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type ItemTeamScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemTeamScheduleShiftsRoleDefinitionsRequestBuilder(rawUrl string, reque func (m *ItemTeamScheduleShiftsRoleDefinitionsRequestBuilder) Count()(*ItemTeamScheduleShiftsRoleDefinitionsCountRequestBuilder) { return NewItemTeamScheduleShiftsRoleDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get shiftsRoleDefinitions from groups +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamScheduleShiftsRoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemTeamScheduleShiftsRoleDefinitionsRequestBuilder) Post(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable), nil } -// ToGetRequestInformation get shiftsRoleDefinitions from groups +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamScheduleShiftsRoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go b/groups/item_team_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go index 069cf7290d0..36dea9ec9e7 100644 --- a/groups/item_team_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go +++ b/groups/item_team_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters get shiftsRoleDefinitions from groups +// ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBui } return nil } -// Get get shiftsRoleDefinitions from groups +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable, error) { @@ -121,7 +121,7 @@ func (m *ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get shiftsRoleDefinitions from groups +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_threads_conversation_thread_item_request_builder.go b/groups/item_threads_conversation_thread_item_request_builder.go index 47c139591e2..d1f0ef11cc5 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"` @@ -52,11 +52,11 @@ func NewItemThreadsConversationThreadItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemThreadsConversationThreadItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete conversationThread. +// Delete delete a thread object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -71,12 +71,12 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// Get get a thread object. // returns a ConversationThreadable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Posts()(*ItemThreadsIt func (m *ItemThreadsConversationThreadItemRequestBuilder) Reply()(*ItemThreadsItemReplyRequestBuilder) { return NewItemThreadsItemReplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete conversationThread. +// ToDeleteRequestInformation delete a thread object. // returns a *RequestInformation when successful func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}", m.BaseRequestBuilder.PathParameters) @@ -138,7 +138,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// ToGetRequestInformation get a thread object. // returns a *RequestInformation when successful func (m *ItemThreadsConversationThreadItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/conditional_access_named_locations_named_location_item_request_builder.go b/identity/conditional_access_named_locations_named_location_item_request_builder.go index 07a4e8d09c3..ebab2f166b6 100644 --- a/identity/conditional_access_named_locations_named_location_item_request_builder.go +++ b/identity/conditional_access_named_locations_named_location_item_request_builder.go @@ -18,7 +18,7 @@ type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an ipNamedLocation object. +// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a countryNamedLocation object. type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,11 +54,11 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a countryNamedLocation object. +// Delete delete a namedLocation object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-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 { @@ -73,12 +73,12 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete( } return nil } -// Get retrieve the properties and relationships of an ipNamedLocation object. +// Get retrieve the properties and relationships of a countryNamedLocation object. // returns a NamedLocationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-get?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// ToDeleteRequestInformation delete a countryNamedLocation object. +// ToDeleteRequestInformation delete a namedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}", m.BaseRequestBuilder.PathParameters) @@ -130,7 +130,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an ipNamedLocation object. +// ToGetRequestInformation retrieve the properties and relationships of a countryNamedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go index f7474b85a25..dd671b93d49 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,12 +73,12 @@ 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. // returns a CustomAuthenticationExtensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -127,7 +127,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. // returns a *RequestInformation when successful func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/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 7ad7e4578b9..cb10b3696ed 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,13 +71,13 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return nil } -// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a CustomCalloutExtensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-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 { @@ -131,7 +131,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/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 05282afc14b..c3ce235d280 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go @@ -54,12 +54,12 @@ func NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflo urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete 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 a customAccessPackageWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the customAccessPackageWorkflowExtension object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/customaccesspackageworkflowextension-delete?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAccessPackageWorkflowExtensionable), nil } -// ToDeleteRequestInformation delete 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 a customAccessPackageWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the customAccessPackageWorkflowExtension object that you want to delete by running the LIST customAccessPackageWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 2: Remove the customExtensionHandlers and verifiableCredentialSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go index aa897e6e065..27bd1ddf441 100644 --- a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. +// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackage object. type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -93,12 +93,12 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Del } return nil } -// Get retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. +// Get retrieve the properties and relationships of an accessPackage object. // returns a AccessPackageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-list-accesspackageresourcerolescopes?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -170,7 +170,7 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToD requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. +// ToGetRequestInformation retrieve the properties and relationships of an accessPackage object. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/privileged_access_group_assignment_schedule_requests_item_group_request_builder.go b/identitygovernance/privileged_access_group_assignment_schedule_requests_item_group_request_builder.go index 410a593623c..10ccf169bfd 100644 --- a/identitygovernance/privileged_access_group_assignment_schedule_requests_item_group_request_builder.go +++ b/identitygovernance/privileged_access_group_assignment_schedule_requests_item_group_request_builder.go @@ -11,7 +11,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilderGetQueryParameters references the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. +// PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilderGetQueryParameters references the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. type PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewPrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewPrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilderInternal(urlParams, requestAdapter) } -// Get references the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. +// Get references the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -65,7 +65,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilder) func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilder) ServiceProvisioningErrors()(*PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupServiceProvisioningErrorsRequestBuilder) { return NewPrivilegedAccessGroupAssignmentScheduleRequestsItemGroupServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation references the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. +// ToGetRequestInformation references the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a *RequestInformation when successful func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentScheduleRequestsItemGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/privileged_access_group_assignment_schedule_requests_item_principal_request_builder.go b/identitygovernance/privileged_access_group_assignment_schedule_requests_item_principal_request_builder.go index 818ea7740ed..1bd4ad5de16 100644 --- a/identitygovernance/privileged_access_group_assignment_schedule_requests_item_principal_request_builder.go +++ b/identitygovernance/privileged_access_group_assignment_schedule_requests_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters references the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. +// PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters references the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. type PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewPrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuild urlParams["request-raw-url"] = rawUrl return NewPrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get references the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. +// Get references the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } -// ToGetRequestInformation references the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. +// ToGetRequestInformation references the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a *RequestInformation when successful func (m *PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/privileged_access_group_assignment_schedules_item_group_request_builder.go b/identitygovernance/privileged_access_group_assignment_schedules_item_group_request_builder.go index a152bc10cf5..c3751a3c2ff 100644 --- a/identitygovernance/privileged_access_group_assignment_schedules_item_group_request_builder.go +++ b/identitygovernance/privileged_access_group_assignment_schedules_item_group_request_builder.go @@ -11,7 +11,7 @@ import ( type PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilderGetQueryParameters references the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. +// PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilderGetQueryParameters references the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. type PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewPrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewPrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilderInternal(urlParams, requestAdapter) } -// Get references the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. +// Get references the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -65,7 +65,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilder) Get(ct func (m *PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilder) ServiceProvisioningErrors()(*PrivilegedAccessGroupAssignmentSchedulesItemGroupServiceProvisioningErrorsRequestBuilder) { return NewPrivilegedAccessGroupAssignmentSchedulesItemGroupServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation references the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. +// ToGetRequestInformation references the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a *RequestInformation when successful func (m *PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentSchedulesItemGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/privileged_access_group_assignment_schedules_item_principal_request_builder.go b/identitygovernance/privileged_access_group_assignment_schedules_item_principal_request_builder.go index 1ee41a76f36..e638720b1e6 100644 --- a/identitygovernance/privileged_access_group_assignment_schedules_item_principal_request_builder.go +++ b/identitygovernance/privileged_access_group_assignment_schedules_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilderGetQueryParameters references the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. +// PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilderGetQueryParameters references the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. type PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewPrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewPrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get references the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. +// Get references the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilder) Ge } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } -// ToGetRequestInformation references the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. +// ToGetRequestInformation references the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a *RequestInformation when successful func (m *PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrivilegedAccessGroupAssignmentSchedulesItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_group_request_builder.go b/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_group_request_builder.go index b6c26294782..427b6a0e98b 100644 --- a/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_group_request_builder.go +++ b/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_group_request_builder.go @@ -11,7 +11,7 @@ import ( type PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilderGetQueryParameters references the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. +// PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilderGetQueryParameters references the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. type PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewPrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewPrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilderInternal(urlParams, requestAdapter) } -// Get references the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. +// Get references the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -65,7 +65,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilder func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilder) ServiceProvisioningErrors()(*PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupServiceProvisioningErrorsRequestBuilder) { return NewPrivilegedAccessGroupEligibilityScheduleRequestsItemGroupServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation references the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. +// ToGetRequestInformation references the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a *RequestInformation when successful func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrivilegedAccessGroupEligibilityScheduleRequestsItemGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_principal_request_builder.go b/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_principal_request_builder.go index b3bc0dc3052..661de0f5c50 100644 --- a/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_principal_request_builder.go +++ b/identitygovernance/privileged_access_group_eligibility_schedule_requests_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters references the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. +// PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters references the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. type PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewPrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuil urlParams["request-raw-url"] = rawUrl return NewPrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get references the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. +// Get references the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } -// ToGetRequestInformation references the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. +// ToGetRequestInformation references the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a *RequestInformation when successful func (m *PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrivilegedAccessGroupEligibilityScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/kiota-lock.json b/kiota-lock.json index ea6b09642c2..e58ca8bfb8f 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "F3E1C7DF7BE6C33263B10E0783BE7327166206498BFCA86ECB39DCF1F4C28CF74A0D3B35C585D59C774652347A9506B9082D33E7A5D7CBE6473CB3FA4B4FC080", + "descriptionHash": "BFAF287BF06B1BD3A4A99E937369A504ED87A73AFBAAA9593F3392A07C8667AEC1C56D370415D09F4BB38C514C9A56A49903E57A939BF6B71012B299F07BE825", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.12.0", diff --git a/models/admin.go b/models/admin.go index cacb1d09d13..ea4dd9b22b1 100644 --- a/models/admin.go +++ b/models/admin.go @@ -518,74 +518,3 @@ type Adminable interface { SetTodo(value AdminTodoable)() SetWindows(value AdminWindowsable)() } - -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 -// returns a Parsable when successful -func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAdminWindows(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -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. -// returns a AdminWindowsUpdatesable when successful -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) - } -} -type AdminWindowsable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUpdates()(AdminWindowsUpdatesable) - SetUpdates(value AdminWindowsUpdatesable)() -} diff --git a/models/admin_windows.go b/models/admin_windows.go new file mode 100644 index 00000000000..338a8917a5d --- /dev/null +++ b/models/admin_windows.go @@ -0,0 +1,76 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +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 +// returns a Parsable when successful +func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminWindows(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +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. +// returns a AdminWindowsUpdatesable when successful +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) + } +} +type AdminWindowsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUpdates()(AdminWindowsUpdatesable) + SetUpdates(value AdminWindowsUpdatesable)() +} diff --git a/models/apps_installation_options_for_windows.go b/models/apps_installation_options_for_windows.go new file mode 100644 index 00000000000..527e5ccbc0e --- /dev/null +++ b/models/apps_installation_options_for_windows.go @@ -0,0 +1,261 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +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 +// returns a Parsable when successful +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. +// returns a map[string]any when successful +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. +// returns a BackingStore when successful +func (m *AppsInstallationOptionsForWindows) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +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. +// returns a *bool when successful +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. +// returns a *bool when successful +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. +// returns a *bool when successful +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. +// returns a *bool when successful +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 +// returns a *string when successful +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) + } +} +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/attack_simulation_root.go b/models/attack_simulation_root.go index cc2aa3a5641..cff7cf8d64f 100644 --- a/models/attack_simulation_root.go +++ b/models/attack_simulation_root.go @@ -147,6 +147,22 @@ func (m *AttackSimulationRoot) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["trainingCampaigns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTrainingCampaignFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TrainingCampaignable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TrainingCampaignable) + } + } + m.SetTrainingCampaigns(res) + } + return nil + } res["trainings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateTrainingFromDiscriminatorValue) if err != nil { @@ -237,6 +253,18 @@ func (m *AttackSimulationRoot) GetSimulations()([]Simulationable) { } return nil } +// GetTrainingCampaigns gets the trainingCampaigns property value. The trainingCampaigns property +// returns a []TrainingCampaignable when successful +func (m *AttackSimulationRoot) GetTrainingCampaigns()([]TrainingCampaignable) { + val, err := m.GetBackingStore().Get("trainingCampaigns") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TrainingCampaignable) + } + return nil +} // GetTrainings gets the trainings property value. Represents details about attack simulation trainings. // returns a []Trainingable when successful func (m *AttackSimulationRoot) GetTrainings()([]Trainingable) { @@ -339,6 +367,18 @@ func (m *AttackSimulationRoot) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + if m.GetTrainingCampaigns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTrainingCampaigns())) + for i, v := range m.GetTrainingCampaigns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("trainingCampaigns", cast) + if err != nil { + return err + } + } if m.GetTrainings() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTrainings())) for i, v := range m.GetTrainings() { @@ -402,6 +442,13 @@ func (m *AttackSimulationRoot) SetSimulations(value []Simulationable)() { panic(err) } } +// SetTrainingCampaigns sets the trainingCampaigns property value. The trainingCampaigns property +func (m *AttackSimulationRoot) SetTrainingCampaigns(value []TrainingCampaignable)() { + err := m.GetBackingStore().Set("trainingCampaigns", value) + if err != nil { + panic(err) + } +} // SetTrainings sets the trainings property value. Represents details about attack simulation trainings. func (m *AttackSimulationRoot) SetTrainings(value []Trainingable)() { err := m.GetBackingStore().Set("trainings", value) @@ -419,6 +466,7 @@ type AttackSimulationRootable interface { GetPayloads()([]Payloadable) GetSimulationAutomations()([]SimulationAutomationable) GetSimulations()([]Simulationable) + GetTrainingCampaigns()([]TrainingCampaignable) GetTrainings()([]Trainingable) SetEndUserNotifications(value []EndUserNotificationable)() SetLandingPages(value []LandingPageable)() @@ -427,5 +475,6 @@ type AttackSimulationRootable interface { SetPayloads(value []Payloadable)() SetSimulationAutomations(value []SimulationAutomationable)() SetSimulations(value []Simulationable)() + SetTrainingCampaigns(value []TrainingCampaignable)() SetTrainings(value []Trainingable)() } diff --git a/models/authorization_policy.go b/models/authorization_policy.go index 17716e96748..8ae3800d6ad 100644 --- a/models/authorization_policy.go +++ b/models/authorization_policy.go @@ -34,7 +34,7 @@ func (m *AuthorizationPolicy) GetAllowedToSignUpEmailBasedSubscriptions()(*bool) } return nil } -// GetAllowedToUseSSPR gets the allowedToUseSSPR property value. Indicates whether users can use the Self-Service Password Reset feature on the tenant. +// GetAllowedToUseSSPR gets the allowedToUseSSPR property value. Indicates whether administrators of the tenant can use the Self-Service Password Reset (SSPR). For more information, see Self-service password reset for administrators. // returns a *bool when successful func (m *AuthorizationPolicy) GetAllowedToUseSSPR()(*bool) { val, err := m.GetBackingStore().Get("allowedToUseSSPR") @@ -58,7 +58,7 @@ func (m *AuthorizationPolicy) GetAllowEmailVerifiedUsersToJoinOrganization()(*bo } return nil } -// GetAllowInvitesFrom gets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. See more in the table below. +// GetAllowInvitesFrom gets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. // returns a *AllowInvitesFrom when successful func (m *AuthorizationPolicy) GetAllowInvitesFrom()(*AllowInvitesFrom) { val, err := m.GetBackingStore().Get("allowInvitesFrom") @@ -82,7 +82,7 @@ func (m *AuthorizationPolicy) GetAllowUserConsentForRiskyApps()(*bool) { } return nil } -// GetBlockMsolPowerShell gets the blockMsolPowerShell property value. To disable the use of the MSOnline PowerShell module set this property to true. This will also disable user-based access to the legacy service endpoint used by the MSOnline PowerShell module. This doesn't affect Microsoft Entra Connect or Microsoft Graph. +// GetBlockMsolPowerShell gets the blockMsolPowerShell property value. To disable the use of the MSOnline PowerShell module set this property to true. This also disables user-based access to the legacy service endpoint used by the MSOnline PowerShell module. This doesn't affect Microsoft Entra Connect or Microsoft Graph. // returns a *bool when successful func (m *AuthorizationPolicy) GetBlockMsolPowerShell()(*bool) { val, err := m.GetBackingStore().Get("blockMsolPowerShell") @@ -376,7 +376,7 @@ func (m *AuthorizationPolicy) SetAllowedToSignUpEmailBasedSubscriptions(value *b panic(err) } } -// SetAllowedToUseSSPR sets the allowedToUseSSPR property value. Indicates whether users can use the Self-Service Password Reset feature on the tenant. +// SetAllowedToUseSSPR sets the allowedToUseSSPR property value. Indicates whether administrators of the tenant can use the Self-Service Password Reset (SSPR). For more information, see Self-service password reset for administrators. func (m *AuthorizationPolicy) SetAllowedToUseSSPR(value *bool)() { err := m.GetBackingStore().Set("allowedToUseSSPR", value) if err != nil { @@ -390,7 +390,7 @@ func (m *AuthorizationPolicy) SetAllowEmailVerifiedUsersToJoinOrganization(value panic(err) } } -// SetAllowInvitesFrom sets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. See more in the table below. +// SetAllowInvitesFrom sets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. func (m *AuthorizationPolicy) SetAllowInvitesFrom(value *AllowInvitesFrom)() { err := m.GetBackingStore().Set("allowInvitesFrom", value) if err != nil { @@ -404,7 +404,7 @@ func (m *AuthorizationPolicy) SetAllowUserConsentForRiskyApps(value *bool)() { panic(err) } } -// SetBlockMsolPowerShell sets the blockMsolPowerShell property value. To disable the use of the MSOnline PowerShell module set this property to true. This will also disable user-based access to the legacy service endpoint used by the MSOnline PowerShell module. This doesn't affect Microsoft Entra Connect or Microsoft Graph. +// SetBlockMsolPowerShell sets the blockMsolPowerShell property value. To disable the use of the MSOnline PowerShell module set this property to true. This also disables user-based access to the legacy service endpoint used by the MSOnline PowerShell module. This doesn't affect Microsoft Entra Connect or Microsoft Graph. func (m *AuthorizationPolicy) SetBlockMsolPowerShell(value *bool)() { err := m.GetBackingStore().Set("blockMsolPowerShell", value) if err != nil { diff --git a/models/callrecords/administrative_unit_info.go b/models/callrecords/administrative_unit_info.go new file mode 100644 index 00000000000..55af97f5293 --- /dev/null +++ b/models/callrecords/administrative_unit_info.go @@ -0,0 +1,150 @@ +package callrecords + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AdministrativeUnitInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAdministrativeUnitInfo instantiates a new AdministrativeUnitInfo and sets the default values. +func NewAdministrativeUnitInfo()(*AdministrativeUnitInfo) { + m := &AdministrativeUnitInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAdministrativeUnitInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAdministrativeUnitInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdministrativeUnitInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AdministrativeUnitInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AdministrativeUnitInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AdministrativeUnitInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + 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 +} +// GetId gets the id property value. Unique identifier for the administrative unit. +// returns a *string when successful +func (m *AdministrativeUnitInfo) GetId()(*string) { + val, err := m.GetBackingStore().Get("id") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AdministrativeUnitInfo) 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 *AdministrativeUnitInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + 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 *AdministrativeUnitInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AdministrativeUnitInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetId sets the id property value. Unique identifier for the administrative unit. +func (m *AdministrativeUnitInfo) SetId(value *string)() { + err := m.GetBackingStore().Set("id", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AdministrativeUnitInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type AdministrativeUnitInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetId()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetId(value *string)() + SetOdataType(value *string)() +} diff --git a/models/callrecords/call_log_row.go b/models/callrecords/call_log_row.go new file mode 100644 index 00000000000..e08c70003ec --- /dev/null +++ b/models/callrecords/call_log_row.go @@ -0,0 +1,369 @@ +package callrecords + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallLogRow struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallLogRow instantiates a new CallLogRow and sets the default values. +func NewCallLogRow()(*CallLogRow) { + m := &CallLogRow{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallLogRowFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallLogRowFromDiscriminatorValue(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.callRecords.directRoutingLogRow": + return NewDirectRoutingLogRow(), nil + case "#microsoft.graph.callRecords.pstnCallLogRow": + return NewPstnCallLogRow(), nil + case "#microsoft.graph.callRecords.smsLogRow": + return NewSmsLogRow(), nil + } + } + } + } + return NewCallLogRow(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallLogRow) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAdministrativeUnitInfos gets the administrativeUnitInfos property value. The administrativeUnitInfos property +// returns a []AdministrativeUnitInfoable when successful +func (m *CallLogRow) GetAdministrativeUnitInfos()([]AdministrativeUnitInfoable) { + val, err := m.GetBackingStore().Get("administrativeUnitInfos") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AdministrativeUnitInfoable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["administrativeUnitInfos"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAdministrativeUnitInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AdministrativeUnitInfoable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AdministrativeUnitInfoable) + } + } + m.SetAdministrativeUnitInfos(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(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["otherPartyCountryCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOtherPartyCountryCode(val) + } + return nil + } + res["userDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserDisplayName(val) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserPrincipalName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +// returns a *string when successful +func (m *CallLogRow) GetId()(*string) { + val, err := m.GetBackingStore().Get("id") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *CallLogRow) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOtherPartyCountryCode gets the otherPartyCountryCode property value. The otherPartyCountryCode property +// returns a *string when successful +func (m *CallLogRow) GetOtherPartyCountryCode()(*string) { + val, err := m.GetBackingStore().Get("otherPartyCountryCode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserDisplayName gets the userDisplayName property value. The userDisplayName property +// returns a *string when successful +func (m *CallLogRow) GetUserDisplayName()(*string) { + val, err := m.GetBackingStore().Get("userDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserId gets the userId property value. The userId property +// returns a *string when successful +func (m *CallLogRow) GetUserId()(*string) { + val, err := m.GetBackingStore().Get("userId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserPrincipalName gets the userPrincipalName property value. The userPrincipalName property +// returns a *string when successful +func (m *CallLogRow) GetUserPrincipalName()(*string) { + val, err := m.GetBackingStore().Get("userPrincipalName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CallLogRow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAdministrativeUnitInfos() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAdministrativeUnitInfos())) + for i, v := range m.GetAdministrativeUnitInfos() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("administrativeUnitInfos", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("otherPartyCountryCode", m.GetOtherPartyCountryCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userDisplayName", m.GetUserDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallLogRow) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAdministrativeUnitInfos sets the administrativeUnitInfos property value. The administrativeUnitInfos property +func (m *CallLogRow) SetAdministrativeUnitInfos(value []AdministrativeUnitInfoable)() { + err := m.GetBackingStore().Set("administrativeUnitInfos", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallLogRow) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetId sets the id property value. The id property +func (m *CallLogRow) SetId(value *string)() { + err := m.GetBackingStore().Set("id", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CallLogRow) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOtherPartyCountryCode sets the otherPartyCountryCode property value. The otherPartyCountryCode property +func (m *CallLogRow) SetOtherPartyCountryCode(value *string)() { + err := m.GetBackingStore().Set("otherPartyCountryCode", value) + if err != nil { + panic(err) + } +} +// SetUserDisplayName sets the userDisplayName property value. The userDisplayName property +func (m *CallLogRow) SetUserDisplayName(value *string)() { + err := m.GetBackingStore().Set("userDisplayName", value) + if err != nil { + panic(err) + } +} +// SetUserId sets the userId property value. The userId property +func (m *CallLogRow) SetUserId(value *string)() { + err := m.GetBackingStore().Set("userId", value) + if err != nil { + panic(err) + } +} +// SetUserPrincipalName sets the userPrincipalName property value. The userPrincipalName property +func (m *CallLogRow) SetUserPrincipalName(value *string)() { + err := m.GetBackingStore().Set("userPrincipalName", value) + if err != nil { + panic(err) + } +} +type CallLogRowable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdministrativeUnitInfos()([]AdministrativeUnitInfoable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetId()(*string) + GetOdataType()(*string) + GetOtherPartyCountryCode()(*string) + GetUserDisplayName()(*string) + GetUserId()(*string) + GetUserPrincipalName()(*string) + SetAdministrativeUnitInfos(value []AdministrativeUnitInfoable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetId(value *string)() + SetOdataType(value *string)() + SetOtherPartyCountryCode(value *string)() + SetUserDisplayName(value *string)() + SetUserId(value *string)() + SetUserPrincipalName(value *string)() +} diff --git a/models/callrecords/direct_routing_log_row.go b/models/callrecords/direct_routing_log_row.go index ea98c8fd2d2..9e0f77390f3 100644 --- a/models/callrecords/direct_routing_log_row.go +++ b/models/callrecords/direct_routing_log_row.go @@ -3,19 +3,16 @@ package callrecords import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) type DirectRoutingLogRow struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore + CallLogRow } // NewDirectRoutingLogRow instantiates a new DirectRoutingLogRow and sets the default values. func NewDirectRoutingLogRow()(*DirectRoutingLogRow) { m := &DirectRoutingLogRow{ + CallLogRow: *NewCallLogRow(), } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) return m } // CreateDirectRoutingLogRowFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -23,25 +20,7 @@ func NewDirectRoutingLogRow()(*DirectRoutingLogRow) { func CreateDirectRoutingLogRowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDirectRoutingLogRow(), nil } -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *DirectRoutingLogRow) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *DirectRoutingLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCalleeNumber gets the calleeNumber property value. Number of the user or bot who received the call (E.164 format, but may include more data). +// GetCalleeNumber gets the calleeNumber property value. Number of the user or bot who received the call (E.164 format, but might include more data). // returns a *string when successful func (m *DirectRoutingLogRow) GetCalleeNumber()(*string) { val, err := m.GetBackingStore().Get("calleeNumber") @@ -65,7 +44,7 @@ func (m *DirectRoutingLogRow) GetCallEndSubReason()(*int32) { } return nil } -// GetCallerNumber gets the callerNumber property value. Number of the user or bot who made the call (E.164 format, but may include more data). +// GetCallerNumber gets the callerNumber property value. Number of the user or bot who made the call (E.164 format, but might include more data). // returns a *string when successful func (m *DirectRoutingLogRow) GetCallerNumber()(*string) { val, err := m.GetBackingStore().Get("callerNumber") @@ -113,7 +92,7 @@ func (m *DirectRoutingLogRow) GetDuration()(*int32) { } return nil } -// GetEndDateTime gets the endDateTime property value. Only exists for successful (fully established) calls. Time when call ended. +// GetEndDateTime gets the endDateTime property value. Only exists for successful (fully established) calls. The time when the call ended. // returns a *Time when successful func (m *DirectRoutingLogRow) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("endDateTime") @@ -140,7 +119,7 @@ func (m *DirectRoutingLogRow) GetFailureDateTime()(*i336074805fc853987abe6f7fe3a // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *DirectRoutingLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res := m.CallLogRow.GetFieldDeserializers() res["calleeNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -241,16 +220,6 @@ func (m *DirectRoutingLogRow) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } res["inviteDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -281,26 +250,6 @@ func (m *DirectRoutingLogRow) GetFieldDeserializers()(map[string]func(i878a80d23 } 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["otherPartyCountryCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOtherPartyCountryCode(val) - } - return nil - } res["signalingLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -331,59 +280,39 @@ func (m *DirectRoutingLogRow) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } - res["trunkFullyQualifiedDomainName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTrunkFullyQualifiedDomainName(val) - } - return nil - } - res["userCountryCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserCountryCode(val) - } - return nil - } - res["userDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["transferorCorrelationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetUserDisplayName(val) + m.SetTransferorCorrelationId(val) } return nil } - res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["trunkFullyQualifiedDomainName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetUserId(val) + m.SetTrunkFullyQualifiedDomainName(val) } return nil } - res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["userCountryCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetUserPrincipalName(val) + m.SetUserCountryCode(val) } return nil } return res } -// GetFinalSipCode gets the finalSipCode property value. The code with which the call ended (RFC 3261). +// GetFinalSipCode gets the finalSipCode property value. The final response code with which the call ended (RFC 3261). // returns a *int32 when successful func (m *DirectRoutingLogRow) GetFinalSipCode()(*int32) { val, err := m.GetBackingStore().Get("finalSipCode") @@ -407,18 +336,6 @@ func (m *DirectRoutingLogRow) GetFinalSipCodePhrase()(*string) { } return nil } -// GetId gets the id property value. Unique call identifier (GUID). -// returns a *string when successful -func (m *DirectRoutingLogRow) GetId()(*string) { - val, err := m.GetBackingStore().Get("id") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetInviteDateTime gets the inviteDateTime property value. The date and time when the initial invite was sent. // returns a *Time when successful func (m *DirectRoutingLogRow) GetInviteDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -455,30 +372,6 @@ func (m *DirectRoutingLogRow) GetMediaPathLocation()(*string) { } return nil } -// GetOdataType gets the @odata.type property value. The OdataType property -// returns a *string when successful -func (m *DirectRoutingLogRow) GetOdataType()(*string) { - val, err := m.GetBackingStore().Get("odataType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetOtherPartyCountryCode gets the otherPartyCountryCode property value. Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2. -// returns a *string when successful -func (m *DirectRoutingLogRow) GetOtherPartyCountryCode()(*string) { - val, err := m.GetBackingStore().Get("otherPartyCountryCode") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetSignalingLocation gets the signalingLocation property value. The data center used for signaling for both bypass and non-bypass calls. // returns a *string when successful func (m *DirectRoutingLogRow) GetSignalingLocation()(*string) { @@ -491,7 +384,7 @@ func (m *DirectRoutingLogRow) GetSignalingLocation()(*string) { } return nil } -// GetStartDateTime gets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to invite or failure time. +// GetStartDateTime gets the startDateTime property value. Call start time.For failed and unanswered calls, this value can be equal to invite or failure time. // returns a *Time when successful func (m *DirectRoutingLogRow) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startDateTime") @@ -515,34 +408,10 @@ func (m *DirectRoutingLogRow) GetSuccessfulCall()(*bool) { } return nil } -// GetTrunkFullyQualifiedDomainName gets the trunkFullyQualifiedDomainName property value. Fully qualified domain name of the session border controller. -// returns a *string when successful -func (m *DirectRoutingLogRow) GetTrunkFullyQualifiedDomainName()(*string) { - val, err := m.GetBackingStore().Get("trunkFullyQualifiedDomainName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetUserCountryCode gets the userCountryCode property value. Country code of the user. For details, see ISO 3166-1 alpha-2. -// returns a *string when successful -func (m *DirectRoutingLogRow) GetUserCountryCode()(*string) { - val, err := m.GetBackingStore().Get("userCountryCode") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetUserDisplayName gets the userDisplayName property value. Display name of the user. +// GetTransferorCorrelationId gets the transferorCorrelationId property value. Correlation ID of the call to the transferor. // returns a *string when successful -func (m *DirectRoutingLogRow) GetUserDisplayName()(*string) { - val, err := m.GetBackingStore().Get("userDisplayName") +func (m *DirectRoutingLogRow) GetTransferorCorrelationId()(*string) { + val, err := m.GetBackingStore().Get("transferorCorrelationId") if err != nil { panic(err) } @@ -551,10 +420,10 @@ func (m *DirectRoutingLogRow) GetUserDisplayName()(*string) { } return nil } -// GetUserId gets the userId property value. The unique identifier (GUID) of the user in Microsoft Entra ID. This and other user info is null/empty for bot call types. +// GetTrunkFullyQualifiedDomainName gets the trunkFullyQualifiedDomainName property value. Fully qualified domain name of the session border controller. // returns a *string when successful -func (m *DirectRoutingLogRow) GetUserId()(*string) { - val, err := m.GetBackingStore().Get("userId") +func (m *DirectRoutingLogRow) GetTrunkFullyQualifiedDomainName()(*string) { + val, err := m.GetBackingStore().Get("trunkFullyQualifiedDomainName") if err != nil { panic(err) } @@ -563,10 +432,10 @@ func (m *DirectRoutingLogRow) GetUserId()(*string) { } return nil } -// GetUserPrincipalName gets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID, is usually the same as the user's SIP address, and can be same as the user's e-mail address. +// GetUserCountryCode gets the userCountryCode property value. Country/region code of the user. For details, see ISO 3166-1 alpha-2. // returns a *string when successful -func (m *DirectRoutingLogRow) GetUserPrincipalName()(*string) { - val, err := m.GetBackingStore().Get("userPrincipalName") +func (m *DirectRoutingLogRow) GetUserCountryCode()(*string) { + val, err := m.GetBackingStore().Get("userCountryCode") if err != nil { panic(err) } @@ -577,170 +446,127 @@ func (m *DirectRoutingLogRow) GetUserPrincipalName()(*string) { } // Serialize serializes information the current object func (m *DirectRoutingLogRow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("calleeNumber", m.GetCalleeNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("callEndSubReason", m.GetCallEndSubReason()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("callerNumber", m.GetCallerNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("callType", m.GetCallType()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("correlationId", m.GetCorrelationId()) - if err != nil { - return err - } - } - { - err := writer.WriteInt32Value("duration", m.GetDuration()) - if err != nil { - return err - } + err := m.CallLogRow.Serialize(writer) + if err != nil { + return err } { - err := writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) + err = writer.WriteStringValue("calleeNumber", m.GetCalleeNumber()) if err != nil { return err } } { - err := writer.WriteTimeValue("failureDateTime", m.GetFailureDateTime()) + err = writer.WriteInt32Value("callEndSubReason", m.GetCallEndSubReason()) if err != nil { return err } } { - err := writer.WriteInt32Value("finalSipCode", m.GetFinalSipCode()) + err = writer.WriteStringValue("callerNumber", m.GetCallerNumber()) if err != nil { return err } } { - err := writer.WriteStringValue("finalSipCodePhrase", m.GetFinalSipCodePhrase()) + err = writer.WriteStringValue("callType", m.GetCallType()) if err != nil { return err } } { - err := writer.WriteStringValue("id", m.GetId()) + err = writer.WriteStringValue("correlationId", m.GetCorrelationId()) if err != nil { return err } } { - err := writer.WriteTimeValue("inviteDateTime", m.GetInviteDateTime()) + err = writer.WriteInt32Value("duration", m.GetDuration()) if err != nil { return err } } { - err := writer.WriteBoolValue("mediaBypassEnabled", m.GetMediaBypassEnabled()) + err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) if err != nil { return err } } { - err := writer.WriteStringValue("mediaPathLocation", m.GetMediaPathLocation()) + err = writer.WriteTimeValue("failureDateTime", m.GetFailureDateTime()) if err != nil { return err } } { - err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + err = writer.WriteInt32Value("finalSipCode", m.GetFinalSipCode()) if err != nil { return err } } { - err := writer.WriteStringValue("otherPartyCountryCode", m.GetOtherPartyCountryCode()) + err = writer.WriteStringValue("finalSipCodePhrase", m.GetFinalSipCodePhrase()) if err != nil { return err } } { - err := writer.WriteStringValue("signalingLocation", m.GetSignalingLocation()) + err = writer.WriteTimeValue("inviteDateTime", m.GetInviteDateTime()) if err != nil { return err } } { - err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + err = writer.WriteBoolValue("mediaBypassEnabled", m.GetMediaBypassEnabled()) if err != nil { return err } } { - err := writer.WriteBoolValue("successfulCall", m.GetSuccessfulCall()) + err = writer.WriteStringValue("mediaPathLocation", m.GetMediaPathLocation()) if err != nil { return err } } { - err := writer.WriteStringValue("trunkFullyQualifiedDomainName", m.GetTrunkFullyQualifiedDomainName()) + err = writer.WriteStringValue("signalingLocation", m.GetSignalingLocation()) if err != nil { return err } } { - err := writer.WriteStringValue("userCountryCode", m.GetUserCountryCode()) + err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) if err != nil { return err } } { - err := writer.WriteStringValue("userDisplayName", m.GetUserDisplayName()) + err = writer.WriteBoolValue("successfulCall", m.GetSuccessfulCall()) if err != nil { return err } } { - err := writer.WriteStringValue("userId", m.GetUserId()) + err = writer.WriteStringValue("transferorCorrelationId", m.GetTransferorCorrelationId()) if err != nil { return err } } { - err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) + err = writer.WriteStringValue("trunkFullyQualifiedDomainName", m.GetTrunkFullyQualifiedDomainName()) if err != nil { return err } } { - err := writer.WriteAdditionalData(m.GetAdditionalData()) + err = writer.WriteStringValue("userCountryCode", m.GetUserCountryCode()) if err != nil { return err } } return nil } -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *DirectRoutingLogRow) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *DirectRoutingLogRow) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCalleeNumber sets the calleeNumber property value. Number of the user or bot who received the call (E.164 format, but may include more data). +// SetCalleeNumber sets the calleeNumber property value. Number of the user or bot who received the call (E.164 format, but might include more data). func (m *DirectRoutingLogRow) SetCalleeNumber(value *string)() { err := m.GetBackingStore().Set("calleeNumber", value) if err != nil { @@ -754,7 +580,7 @@ func (m *DirectRoutingLogRow) SetCallEndSubReason(value *int32)() { panic(err) } } -// SetCallerNumber sets the callerNumber property value. Number of the user or bot who made the call (E.164 format, but may include more data). +// SetCallerNumber sets the callerNumber property value. Number of the user or bot who made the call (E.164 format, but might include more data). func (m *DirectRoutingLogRow) SetCallerNumber(value *string)() { err := m.GetBackingStore().Set("callerNumber", value) if err != nil { @@ -782,7 +608,7 @@ func (m *DirectRoutingLogRow) SetDuration(value *int32)() { panic(err) } } -// SetEndDateTime sets the endDateTime property value. Only exists for successful (fully established) calls. Time when call ended. +// SetEndDateTime sets the endDateTime property value. Only exists for successful (fully established) calls. The time when the call ended. func (m *DirectRoutingLogRow) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("endDateTime", value) if err != nil { @@ -796,7 +622,7 @@ func (m *DirectRoutingLogRow) SetFailureDateTime(value *i336074805fc853987abe6f7 panic(err) } } -// SetFinalSipCode sets the finalSipCode property value. The code with which the call ended (RFC 3261). +// SetFinalSipCode sets the finalSipCode property value. The final response code with which the call ended (RFC 3261). func (m *DirectRoutingLogRow) SetFinalSipCode(value *int32)() { err := m.GetBackingStore().Set("finalSipCode", value) if err != nil { @@ -810,13 +636,6 @@ func (m *DirectRoutingLogRow) SetFinalSipCodePhrase(value *string)() { panic(err) } } -// SetId sets the id property value. Unique call identifier (GUID). -func (m *DirectRoutingLogRow) SetId(value *string)() { - err := m.GetBackingStore().Set("id", value) - if err != nil { - panic(err) - } -} // SetInviteDateTime sets the inviteDateTime property value. The date and time when the initial invite was sent. func (m *DirectRoutingLogRow) SetInviteDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("inviteDateTime", value) @@ -838,20 +657,6 @@ func (m *DirectRoutingLogRow) SetMediaPathLocation(value *string)() { panic(err) } } -// SetOdataType sets the @odata.type property value. The OdataType property -func (m *DirectRoutingLogRow) SetOdataType(value *string)() { - err := m.GetBackingStore().Set("odataType", value) - if err != nil { - panic(err) - } -} -// SetOtherPartyCountryCode sets the otherPartyCountryCode property value. Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2. -func (m *DirectRoutingLogRow) SetOtherPartyCountryCode(value *string)() { - err := m.GetBackingStore().Set("otherPartyCountryCode", value) - if err != nil { - panic(err) - } -} // SetSignalingLocation sets the signalingLocation property value. The data center used for signaling for both bypass and non-bypass calls. func (m *DirectRoutingLogRow) SetSignalingLocation(value *string)() { err := m.GetBackingStore().Set("signalingLocation", value) @@ -859,7 +664,7 @@ func (m *DirectRoutingLogRow) SetSignalingLocation(value *string)() { panic(err) } } -// SetStartDateTime sets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to invite or failure time. +// SetStartDateTime sets the startDateTime property value. Call start time.For failed and unanswered calls, this value can be equal to invite or failure time. func (m *DirectRoutingLogRow) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { @@ -873,6 +678,13 @@ func (m *DirectRoutingLogRow) SetSuccessfulCall(value *bool)() { panic(err) } } +// SetTransferorCorrelationId sets the transferorCorrelationId property value. Correlation ID of the call to the transferor. +func (m *DirectRoutingLogRow) SetTransferorCorrelationId(value *string)() { + err := m.GetBackingStore().Set("transferorCorrelationId", value) + if err != nil { + panic(err) + } +} // SetTrunkFullyQualifiedDomainName sets the trunkFullyQualifiedDomainName property value. Fully qualified domain name of the session border controller. func (m *DirectRoutingLogRow) SetTrunkFullyQualifiedDomainName(value *string)() { err := m.GetBackingStore().Set("trunkFullyQualifiedDomainName", value) @@ -880,39 +692,16 @@ func (m *DirectRoutingLogRow) SetTrunkFullyQualifiedDomainName(value *string)() panic(err) } } -// SetUserCountryCode sets the userCountryCode property value. Country code of the user. For details, see ISO 3166-1 alpha-2. +// SetUserCountryCode sets the userCountryCode property value. Country/region code of the user. For details, see ISO 3166-1 alpha-2. func (m *DirectRoutingLogRow) SetUserCountryCode(value *string)() { err := m.GetBackingStore().Set("userCountryCode", value) if err != nil { panic(err) } } -// SetUserDisplayName sets the userDisplayName property value. Display name of the user. -func (m *DirectRoutingLogRow) SetUserDisplayName(value *string)() { - err := m.GetBackingStore().Set("userDisplayName", value) - if err != nil { - panic(err) - } -} -// SetUserId sets the userId property value. The unique identifier (GUID) of the user in Microsoft Entra ID. This and other user info is null/empty for bot call types. -func (m *DirectRoutingLogRow) SetUserId(value *string)() { - err := m.GetBackingStore().Set("userId", value) - if err != nil { - panic(err) - } -} -// SetUserPrincipalName sets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID, is usually the same as the user's SIP address, and can be same as the user's e-mail address. -func (m *DirectRoutingLogRow) SetUserPrincipalName(value *string)() { - err := m.GetBackingStore().Set("userPrincipalName", value) - if err != nil { - panic(err) - } -} type DirectRoutingLogRowable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + CallLogRowable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCalleeNumber()(*string) GetCallEndSubReason()(*int32) GetCallerNumber()(*string) @@ -923,21 +712,15 @@ type DirectRoutingLogRowable interface { GetFailureDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetFinalSipCode()(*int32) GetFinalSipCodePhrase()(*string) - GetId()(*string) GetInviteDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMediaBypassEnabled()(*bool) GetMediaPathLocation()(*string) - GetOdataType()(*string) - GetOtherPartyCountryCode()(*string) GetSignalingLocation()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSuccessfulCall()(*bool) + GetTransferorCorrelationId()(*string) GetTrunkFullyQualifiedDomainName()(*string) GetUserCountryCode()(*string) - GetUserDisplayName()(*string) - GetUserId()(*string) - GetUserPrincipalName()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCalleeNumber(value *string)() SetCallEndSubReason(value *int32)() SetCallerNumber(value *string)() @@ -948,18 +731,13 @@ type DirectRoutingLogRowable interface { SetFailureDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetFinalSipCode(value *int32)() SetFinalSipCodePhrase(value *string)() - SetId(value *string)() SetInviteDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMediaBypassEnabled(value *bool)() SetMediaPathLocation(value *string)() - SetOdataType(value *string)() - SetOtherPartyCountryCode(value *string)() SetSignalingLocation(value *string)() SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSuccessfulCall(value *bool)() + SetTransferorCorrelationId(value *string)() SetTrunkFullyQualifiedDomainName(value *string)() SetUserCountryCode(value *string)() - SetUserDisplayName(value *string)() - SetUserId(value *string)() - SetUserPrincipalName(value *string)() } diff --git a/models/callrecords/participant_base.go b/models/callrecords/participant_base.go index e79e7792a3a..853770e1a60 100644 --- a/models/callrecords/participant_base.go +++ b/models/callrecords/participant_base.go @@ -40,10 +40,38 @@ func CreateParticipantBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896 } return NewParticipantBase(), nil } +// GetAdministrativeUnitInfos gets the administrativeUnitInfos property value. List of administrativeUnitInfo of the call participant. +// returns a []AdministrativeUnitInfoable when successful +func (m *ParticipantBase) GetAdministrativeUnitInfos()([]AdministrativeUnitInfoable) { + val, err := m.GetBackingStore().Get("administrativeUnitInfos") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AdministrativeUnitInfoable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *ParticipantBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["administrativeUnitInfos"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAdministrativeUnitInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AdministrativeUnitInfoable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AdministrativeUnitInfoable) + } + } + m.SetAdministrativeUnitInfos(res) + } + return nil + } res["identity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunicationsIdentitySetFromDiscriminatorValue) if err != nil { @@ -74,6 +102,18 @@ func (m *ParticipantBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } + if m.GetAdministrativeUnitInfos() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAdministrativeUnitInfos())) + for i, v := range m.GetAdministrativeUnitInfos() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("administrativeUnitInfos", cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("identity", m.GetIdentity()) if err != nil { @@ -82,6 +122,13 @@ func (m *ParticipantBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } +// SetAdministrativeUnitInfos sets the administrativeUnitInfos property value. List of administrativeUnitInfo of the call participant. +func (m *ParticipantBase) SetAdministrativeUnitInfos(value []AdministrativeUnitInfoable)() { + err := m.GetBackingStore().Set("administrativeUnitInfos", value) + if err != nil { + panic(err) + } +} // SetIdentity sets the identity property value. The identity of the call participant. func (m *ParticipantBase) SetIdentity(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunicationsIdentitySetable)() { err := m.GetBackingStore().Set("identity", value) @@ -92,6 +139,8 @@ func (m *ParticipantBase) SetIdentity(value ie233ee762e29b4ba6970aa2a2efce4b7fde type ParticipantBaseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdministrativeUnitInfos()([]AdministrativeUnitInfoable) GetIdentity()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunicationsIdentitySetable) + SetAdministrativeUnitInfos(value []AdministrativeUnitInfoable)() SetIdentity(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunicationsIdentitySetable)() } diff --git a/models/callrecords/pstn_call_log_row.go b/models/callrecords/pstn_call_log_row.go index e405fff36f6..73aede76c4a 100644 --- a/models/callrecords/pstn_call_log_row.go +++ b/models/callrecords/pstn_call_log_row.go @@ -3,19 +3,16 @@ package callrecords import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) type PstnCallLogRow struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore + CallLogRow } // NewPstnCallLogRow instantiates a new PstnCallLogRow and sets the default values. func NewPstnCallLogRow()(*PstnCallLogRow) { m := &PstnCallLogRow{ + CallLogRow: *NewCallLogRow(), } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) return m } // CreatePstnCallLogRowFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -23,24 +20,6 @@ func NewPstnCallLogRow()(*PstnCallLogRow) { func CreatePstnCallLogRowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPstnCallLogRow(), nil } -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *PstnCallLogRow) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *PstnCallLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} // GetCallDurationSource gets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. // returns a *PstnCallDurationSource when successful func (m *PstnCallLogRow) GetCallDurationSource()(*PstnCallDurationSource) { @@ -248,7 +227,7 @@ func (m *PstnCallLogRow) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3 // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *PstnCallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res := m.CallLogRow.GetFieldDeserializers() res["callDurationSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParsePstnCallDurationSource) if err != nil { @@ -419,16 +398,6 @@ func (m *PstnCallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } res["inventoryType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -449,16 +418,6 @@ func (m *PstnCallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } 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.GetStringValue() if err != nil { @@ -469,16 +428,6 @@ func (m *PstnCallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } - res["otherPartyCountryCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOtherPartyCountryCode(val) - } - return nil - } res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -509,50 +458,8 @@ func (m *PstnCallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } - res["userDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserDisplayName(val) - } - return nil - } - res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserId(val) - } - return nil - } - res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserPrincipalName(val) - } - return nil - } return res } -// GetId gets the id property value. Unique call identifier (GUID). -// returns a *string when successful -func (m *PstnCallLogRow) GetId()(*string) { - val, err := m.GetBackingStore().Get("id") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetInventoryType gets the inventoryType property value. User's phone number type, such as a service of toll-free number. // returns a *string when successful func (m *PstnCallLogRow) GetInventoryType()(*string) { @@ -577,19 +484,7 @@ func (m *PstnCallLogRow) GetLicenseCapability()(*string) { } return nil } -// GetOdataType gets the @odata.type property value. The OdataType property -// returns a *string when successful -func (m *PstnCallLogRow) 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 telecommunications operator that provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program. +// GetOperator gets the operator property value. The telecommunications operator that provided PSTN services for this call. It may be Microsoft, or it may be a third-party operator via the Operator Connect Program. // returns a *string when successful func (m *PstnCallLogRow) GetOperator()(*string) { val, err := m.GetBackingStore().Get("operator") @@ -601,18 +496,6 @@ func (m *PstnCallLogRow) GetOperator()(*string) { } return nil } -// GetOtherPartyCountryCode gets the otherPartyCountryCode property value. Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2. -// returns a *string when successful -func (m *PstnCallLogRow) GetOtherPartyCountryCode()(*string) { - val, err := m.GetBackingStore().Get("otherPartyCountryCode") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetStartDateTime gets the startDateTime property value. Call start time. // returns a *Time when successful func (m *PstnCallLogRow) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -649,238 +532,153 @@ func (m *PstnCallLogRow) GetUsageCountryCode()(*string) { } return nil } -// GetUserDisplayName gets the userDisplayName property value. Display name of the user. -// returns a *string when successful -func (m *PstnCallLogRow) GetUserDisplayName()(*string) { - val, err := m.GetBackingStore().Get("userDisplayName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetUserId gets the userId property value. The unique identifier (GUID) of the user in Microsoft Entra ID. This and other user info will be null/empty for bot call types (ucapin, ucapout). -// returns a *string when successful -func (m *PstnCallLogRow) GetUserId()(*string) { - val, err := m.GetBackingStore().Get("userId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetUserPrincipalName gets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. -// returns a *string when successful -func (m *PstnCallLogRow) GetUserPrincipalName()(*string) { - val, err := m.GetBackingStore().Get("userPrincipalName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // Serialize serializes information the current object func (m *PstnCallLogRow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CallLogRow.Serialize(writer) + if err != nil { + return err + } if m.GetCallDurationSource() != nil { cast := (*m.GetCallDurationSource()).String() - err := writer.WriteStringValue("callDurationSource", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("calleeNumber", m.GetCalleeNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("callerNumber", m.GetCallerNumber()) + err = writer.WriteStringValue("callDurationSource", &cast) if err != nil { return err } } { - err := writer.WriteStringValue("callId", m.GetCallId()) + err = writer.WriteStringValue("calleeNumber", m.GetCalleeNumber()) if err != nil { return err } } { - err := writer.WriteStringValue("callType", m.GetCallType()) + err = writer.WriteStringValue("callerNumber", m.GetCallerNumber()) if err != nil { return err } } { - err := writer.WriteFloat64Value("charge", m.GetCharge()) + err = writer.WriteStringValue("callId", m.GetCallId()) if err != nil { return err } } { - err := writer.WriteStringValue("clientLocalIpV4Address", m.GetClientLocalIpV4Address()) + err = writer.WriteStringValue("callType", m.GetCallType()) if err != nil { return err } } { - err := writer.WriteStringValue("clientLocalIpV6Address", m.GetClientLocalIpV6Address()) + err = writer.WriteFloat64Value("charge", m.GetCharge()) if err != nil { return err } } { - err := writer.WriteStringValue("clientPublicIpV4Address", m.GetClientPublicIpV4Address()) + err = writer.WriteStringValue("clientLocalIpV4Address", m.GetClientLocalIpV4Address()) if err != nil { return err } } { - err := writer.WriteStringValue("clientPublicIpV6Address", m.GetClientPublicIpV6Address()) + err = writer.WriteStringValue("clientLocalIpV6Address", m.GetClientLocalIpV6Address()) if err != nil { return err } } { - err := writer.WriteStringValue("conferenceId", m.GetConferenceId()) + err = writer.WriteStringValue("clientPublicIpV4Address", m.GetClientPublicIpV4Address()) if err != nil { return err } } { - err := writer.WriteFloat64Value("connectionCharge", m.GetConnectionCharge()) + err = writer.WriteStringValue("clientPublicIpV6Address", m.GetClientPublicIpV6Address()) if err != nil { return err } } { - err := writer.WriteStringValue("currency", m.GetCurrency()) + err = writer.WriteStringValue("conferenceId", m.GetConferenceId()) if err != nil { return err } } { - err := writer.WriteStringValue("destinationContext", m.GetDestinationContext()) + err = writer.WriteFloat64Value("connectionCharge", m.GetConnectionCharge()) if err != nil { return err } } { - err := writer.WriteStringValue("destinationName", m.GetDestinationName()) + err = writer.WriteStringValue("currency", m.GetCurrency()) if err != nil { return err } } { - err := writer.WriteInt32Value("duration", m.GetDuration()) + err = writer.WriteStringValue("destinationContext", m.GetDestinationContext()) if err != nil { return err } } { - err := writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) + err = writer.WriteStringValue("destinationName", m.GetDestinationName()) if err != nil { return err } } { - err := writer.WriteStringValue("id", m.GetId()) + err = writer.WriteInt32Value("duration", m.GetDuration()) if err != nil { return err } } { - err := writer.WriteStringValue("inventoryType", m.GetInventoryType()) + err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) if err != nil { return err } } { - err := writer.WriteStringValue("licenseCapability", m.GetLicenseCapability()) + err = writer.WriteStringValue("inventoryType", m.GetInventoryType()) if err != nil { return err } } { - err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + err = writer.WriteStringValue("licenseCapability", m.GetLicenseCapability()) if err != nil { return err } } { - err := writer.WriteStringValue("operator", m.GetOperator()) + err = writer.WriteStringValue("operator", m.GetOperator()) if err != nil { return err } } { - err := writer.WriteStringValue("otherPartyCountryCode", m.GetOtherPartyCountryCode()) + err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) if err != nil { return err } } { - err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + err = writer.WriteStringValue("tenantCountryCode", m.GetTenantCountryCode()) if err != nil { return err } } { - err := writer.WriteStringValue("tenantCountryCode", m.GetTenantCountryCode()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("usageCountryCode", m.GetUsageCountryCode()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("userDisplayName", m.GetUserDisplayName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("userId", m.GetUserId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) + err = writer.WriteStringValue("usageCountryCode", m.GetUsageCountryCode()) if err != nil { return err } } return nil } -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *PstnCallLogRow) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *PstnCallLogRow) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} // SetCallDurationSource sets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. func (m *PstnCallLogRow) SetCallDurationSource(value *PstnCallDurationSource)() { err := m.GetBackingStore().Set("callDurationSource", value) @@ -1000,13 +798,6 @@ func (m *PstnCallLogRow) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6 panic(err) } } -// SetId sets the id property value. Unique call identifier (GUID). -func (m *PstnCallLogRow) SetId(value *string)() { - err := m.GetBackingStore().Set("id", value) - if err != nil { - panic(err) - } -} // SetInventoryType sets the inventoryType property value. User's phone number type, such as a service of toll-free number. func (m *PstnCallLogRow) SetInventoryType(value *string)() { err := m.GetBackingStore().Set("inventoryType", value) @@ -1021,27 +812,13 @@ func (m *PstnCallLogRow) SetLicenseCapability(value *string)() { panic(err) } } -// SetOdataType sets the @odata.type property value. The OdataType property -func (m *PstnCallLogRow) SetOdataType(value *string)() { - err := m.GetBackingStore().Set("odataType", value) - if err != nil { - panic(err) - } -} -// SetOperator sets the operator property value. The telecommunications operator that provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program. +// SetOperator sets the operator property value. The telecommunications operator that provided PSTN services for this call. It may be Microsoft, or it may be a third-party operator via the Operator Connect Program. func (m *PstnCallLogRow) SetOperator(value *string)() { err := m.GetBackingStore().Set("operator", value) if err != nil { panic(err) } } -// SetOtherPartyCountryCode sets the otherPartyCountryCode property value. Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2. -func (m *PstnCallLogRow) SetOtherPartyCountryCode(value *string)() { - err := m.GetBackingStore().Set("otherPartyCountryCode", value) - if err != nil { - panic(err) - } -} // SetStartDateTime sets the startDateTime property value. Call start time. func (m *PstnCallLogRow) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startDateTime", value) @@ -1063,32 +840,9 @@ func (m *PstnCallLogRow) SetUsageCountryCode(value *string)() { panic(err) } } -// SetUserDisplayName sets the userDisplayName property value. Display name of the user. -func (m *PstnCallLogRow) SetUserDisplayName(value *string)() { - err := m.GetBackingStore().Set("userDisplayName", value) - if err != nil { - panic(err) - } -} -// SetUserId sets the userId property value. The unique identifier (GUID) of the user in Microsoft Entra ID. This and other user info will be null/empty for bot call types (ucapin, ucapout). -func (m *PstnCallLogRow) SetUserId(value *string)() { - err := m.GetBackingStore().Set("userId", value) - if err != nil { - panic(err) - } -} -// SetUserPrincipalName sets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. -func (m *PstnCallLogRow) SetUserPrincipalName(value *string)() { - err := m.GetBackingStore().Set("userPrincipalName", value) - if err != nil { - panic(err) - } -} type PstnCallLogRowable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + CallLogRowable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCallDurationSource()(*PstnCallDurationSource) GetCalleeNumber()(*string) GetCallerNumber()(*string) @@ -1106,19 +860,12 @@ type PstnCallLogRowable interface { GetDestinationName()(*string) GetDuration()(*int32) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetId()(*string) GetInventoryType()(*string) GetLicenseCapability()(*string) - GetOdataType()(*string) GetOperator()(*string) - GetOtherPartyCountryCode()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetTenantCountryCode()(*string) GetUsageCountryCode()(*string) - GetUserDisplayName()(*string) - GetUserId()(*string) - GetUserPrincipalName()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallDurationSource(value *PstnCallDurationSource)() SetCalleeNumber(value *string)() SetCallerNumber(value *string)() @@ -1136,16 +883,10 @@ type PstnCallLogRowable interface { SetDestinationName(value *string)() SetDuration(value *int32)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetId(value *string)() SetInventoryType(value *string)() SetLicenseCapability(value *string)() - SetOdataType(value *string)() SetOperator(value *string)() - SetOtherPartyCountryCode(value *string)() SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetTenantCountryCode(value *string)() SetUsageCountryCode(value *string)() - SetUserDisplayName(value *string)() - SetUserId(value *string)() - SetUserPrincipalName(value *string)() } diff --git a/models/callrecords/sms_log_row.go b/models/callrecords/sms_log_row.go index f35b15efdd9..9d4065cb7ef 100644 --- a/models/callrecords/sms_log_row.go +++ b/models/callrecords/sms_log_row.go @@ -3,19 +3,16 @@ package callrecords import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) type SmsLogRow struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore + CallLogRow } // NewSmsLogRow instantiates a new SmsLogRow and sets the default values. func NewSmsLogRow()(*SmsLogRow) { m := &SmsLogRow{ + CallLogRow: *NewCallLogRow(), } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) return m } // CreateSmsLogRowFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -23,24 +20,6 @@ func NewSmsLogRow()(*SmsLogRow) { func CreateSmsLogRowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSmsLogRow(), nil } -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *SmsLogRow) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *SmsLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} // GetCallCharge gets the callCharge property value. Amount of money or cost of the SMS that is charged. // returns a *float64 when successful func (m *SmsLogRow) GetCallCharge()(*float64) { @@ -104,7 +83,7 @@ func (m *SmsLogRow) GetDestinationNumber()(*string) { // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *SmsLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res := m.CallLogRow.GetFieldDeserializers() res["callCharge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetFloat64Value() if err != nil { @@ -155,16 +134,6 @@ func (m *SmsLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return nil } - res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetId(val) - } - return nil - } res["licenseCapability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -175,26 +144,6 @@ func (m *SmsLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } 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["otherPartyCountryCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOtherPartyCountryCode(val) - } - return nil - } res["sentDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -265,50 +214,8 @@ func (m *SmsLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return nil } - res["userDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserDisplayName(val) - } - return nil - } - res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserId(val) - } - return nil - } - res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetUserPrincipalName(val) - } - return nil - } return res } -// GetId gets the id property value. Unique identifier (GUID) for the SMS. -// returns a *string when successful -func (m *SmsLogRow) GetId()(*string) { - val, err := m.GetBackingStore().Get("id") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetLicenseCapability gets the licenseCapability property value. The license used for the SMS. // returns a *string when successful func (m *SmsLogRow) GetLicenseCapability()(*string) { @@ -321,30 +228,6 @@ func (m *SmsLogRow) GetLicenseCapability()(*string) { } return nil } -// GetOdataType gets the @odata.type property value. The OdataType property -// returns a *string when successful -func (m *SmsLogRow) GetOdataType()(*string) { - val, err := m.GetBackingStore().Get("odataType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetOtherPartyCountryCode gets the otherPartyCountryCode property value. For an outbound SMS, the country code of the receiver; otherwise (inbound SMS) the country code of the sender. For details, see ISO 3166-1 alpha-2. -// returns a *string when successful -func (m *SmsLogRow) GetOtherPartyCountryCode()(*string) { - val, err := m.GetBackingStore().Get("otherPartyCountryCode") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetSentDateTime gets the sentDateTime property value. The date and time when the SMS was sent. // returns a *Time when successful func (m *SmsLogRow) GetSentDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -429,177 +312,92 @@ func (m *SmsLogRow) GetUserCountryCode()(*string) { } return nil } -// GetUserDisplayName gets the userDisplayName property value. Display name of the user. -// returns a *string when successful -func (m *SmsLogRow) GetUserDisplayName()(*string) { - val, err := m.GetBackingStore().Get("userDisplayName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetUserId gets the userId property value. The unique identifier (GUID) of the user in Microsoft Entra ID. -// returns a *string when successful -func (m *SmsLogRow) GetUserId()(*string) { - val, err := m.GetBackingStore().Get("userId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetUserPrincipalName gets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. -// returns a *string when successful -func (m *SmsLogRow) GetUserPrincipalName()(*string) { - val, err := m.GetBackingStore().Get("userPrincipalName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // Serialize serializes information the current object func (m *SmsLogRow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteFloat64Value("callCharge", m.GetCallCharge()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("currency", m.GetCurrency()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("destinationContext", m.GetDestinationContext()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("destinationName", m.GetDestinationName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("destinationNumber", m.GetDestinationNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("id", m.GetId()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("licenseCapability", m.GetLicenseCapability()) - if err != nil { - return err - } + err := m.CallLogRow.Serialize(writer) + if err != nil { + return err } { - err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + err = writer.WriteFloat64Value("callCharge", m.GetCallCharge()) if err != nil { return err } } { - err := writer.WriteStringValue("otherPartyCountryCode", m.GetOtherPartyCountryCode()) + err = writer.WriteStringValue("currency", m.GetCurrency()) if err != nil { return err } } { - err := writer.WriteTimeValue("sentDateTime", m.GetSentDateTime()) + err = writer.WriteStringValue("destinationContext", m.GetDestinationContext()) if err != nil { return err } } { - err := writer.WriteStringValue("smsId", m.GetSmsId()) + err = writer.WriteStringValue("destinationName", m.GetDestinationName()) if err != nil { return err } } { - err := writer.WriteStringValue("smsType", m.GetSmsType()) + err = writer.WriteStringValue("destinationNumber", m.GetDestinationNumber()) if err != nil { return err } } { - err := writer.WriteInt32Value("smsUnits", m.GetSmsUnits()) + err = writer.WriteStringValue("licenseCapability", m.GetLicenseCapability()) if err != nil { return err } } { - err := writer.WriteStringValue("sourceNumber", m.GetSourceNumber()) + err = writer.WriteTimeValue("sentDateTime", m.GetSentDateTime()) if err != nil { return err } } { - err := writer.WriteStringValue("tenantCountryCode", m.GetTenantCountryCode()) + err = writer.WriteStringValue("smsId", m.GetSmsId()) if err != nil { return err } } { - err := writer.WriteStringValue("userCountryCode", m.GetUserCountryCode()) + err = writer.WriteStringValue("smsType", m.GetSmsType()) if err != nil { return err } } { - err := writer.WriteStringValue("userDisplayName", m.GetUserDisplayName()) + err = writer.WriteInt32Value("smsUnits", m.GetSmsUnits()) if err != nil { return err } } { - err := writer.WriteStringValue("userId", m.GetUserId()) + err = writer.WriteStringValue("sourceNumber", m.GetSourceNumber()) if err != nil { return err } } { - err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) + err = writer.WriteStringValue("tenantCountryCode", m.GetTenantCountryCode()) if err != nil { return err } } { - err := writer.WriteAdditionalData(m.GetAdditionalData()) + err = writer.WriteStringValue("userCountryCode", m.GetUserCountryCode()) if err != nil { return err } } return nil } -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *SmsLogRow) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *SmsLogRow) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} // SetCallCharge sets the callCharge property value. Amount of money or cost of the SMS that is charged. func (m *SmsLogRow) SetCallCharge(value *float64)() { err := m.GetBackingStore().Set("callCharge", value) @@ -635,13 +433,6 @@ func (m *SmsLogRow) SetDestinationNumber(value *string)() { panic(err) } } -// SetId sets the id property value. Unique identifier (GUID) for the SMS. -func (m *SmsLogRow) SetId(value *string)() { - err := m.GetBackingStore().Set("id", value) - if err != nil { - panic(err) - } -} // SetLicenseCapability sets the licenseCapability property value. The license used for the SMS. func (m *SmsLogRow) SetLicenseCapability(value *string)() { err := m.GetBackingStore().Set("licenseCapability", value) @@ -649,20 +440,6 @@ func (m *SmsLogRow) SetLicenseCapability(value *string)() { panic(err) } } -// SetOdataType sets the @odata.type property value. The OdataType property -func (m *SmsLogRow) SetOdataType(value *string)() { - err := m.GetBackingStore().Set("odataType", value) - if err != nil { - panic(err) - } -} -// SetOtherPartyCountryCode sets the otherPartyCountryCode property value. For an outbound SMS, the country code of the receiver; otherwise (inbound SMS) the country code of the sender. For details, see ISO 3166-1 alpha-2. -func (m *SmsLogRow) SetOtherPartyCountryCode(value *string)() { - err := m.GetBackingStore().Set("otherPartyCountryCode", value) - if err != nil { - panic(err) - } -} // SetSentDateTime sets the sentDateTime property value. The date and time when the SMS was sent. func (m *SmsLogRow) SetSentDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("sentDateTime", value) @@ -712,41 +489,15 @@ func (m *SmsLogRow) SetUserCountryCode(value *string)() { panic(err) } } -// SetUserDisplayName sets the userDisplayName property value. Display name of the user. -func (m *SmsLogRow) SetUserDisplayName(value *string)() { - err := m.GetBackingStore().Set("userDisplayName", value) - if err != nil { - panic(err) - } -} -// SetUserId sets the userId property value. The unique identifier (GUID) of the user in Microsoft Entra ID. -func (m *SmsLogRow) SetUserId(value *string)() { - err := m.GetBackingStore().Set("userId", value) - if err != nil { - panic(err) - } -} -// SetUserPrincipalName sets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. -func (m *SmsLogRow) SetUserPrincipalName(value *string)() { - err := m.GetBackingStore().Set("userPrincipalName", value) - if err != nil { - panic(err) - } -} type SmsLogRowable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + CallLogRowable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCallCharge()(*float64) GetCurrency()(*string) GetDestinationContext()(*string) GetDestinationName()(*string) GetDestinationNumber()(*string) - GetId()(*string) GetLicenseCapability()(*string) - GetOdataType()(*string) - GetOtherPartyCountryCode()(*string) GetSentDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSmsId()(*string) GetSmsType()(*string) @@ -754,19 +505,12 @@ type SmsLogRowable interface { GetSourceNumber()(*string) GetTenantCountryCode()(*string) GetUserCountryCode()(*string) - GetUserDisplayName()(*string) - GetUserId()(*string) - GetUserPrincipalName()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallCharge(value *float64)() SetCurrency(value *string)() SetDestinationContext(value *string)() SetDestinationName(value *string)() SetDestinationNumber(value *string)() - SetId(value *string)() SetLicenseCapability(value *string)() - SetOdataType(value *string)() - SetOtherPartyCountryCode(value *string)() SetSentDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSmsId(value *string)() SetSmsType(value *string)() @@ -774,7 +518,4 @@ type SmsLogRowable interface { SetSourceNumber(value *string)() SetTenantCountryCode(value *string)() SetUserCountryCode(value *string)() - SetUserDisplayName(value *string)() - SetUserId(value *string)() - SetUserPrincipalName(value *string)() } diff --git a/models/campaign_schedule.go b/models/campaign_schedule.go new file mode 100644 index 00000000000..ba73c7f194a --- /dev/null +++ b/models/campaign_schedule.go @@ -0,0 +1,226 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CampaignSchedule struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCampaignSchedule instantiates a new CampaignSchedule and sets the default values. +func NewCampaignSchedule()(*CampaignSchedule) { + m := &CampaignSchedule{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCampaignScheduleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCampaignScheduleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCampaignSchedule(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CampaignSchedule) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CampaignSchedule) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCompletionDateTime gets the completionDateTime property value. The completionDateTime property +// returns a *Time when successful +func (m *CampaignSchedule) GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("completionDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CampaignSchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["completionDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCompletionDateTime(val) + } + return nil + } + res["launchDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLaunchDateTime(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["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCampaignStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*CampaignStatus)) + } + return nil + } + return res +} +// GetLaunchDateTime gets the launchDateTime property value. The launchDateTime property +// returns a *Time when successful +func (m *CampaignSchedule) GetLaunchDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("launchDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *CampaignSchedule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStatus gets the status property value. The status property +// returns a *CampaignStatus when successful +func (m *CampaignSchedule) GetStatus()(*CampaignStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CampaignStatus) + } + return nil +} +// Serialize serializes information the current object +func (m *CampaignSchedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("completionDateTime", m.GetCompletionDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("launchDateTime", m.GetLaunchDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err := writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CampaignSchedule) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CampaignSchedule) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCompletionDateTime sets the completionDateTime property value. The completionDateTime property +func (m *CampaignSchedule) SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("completionDateTime", value) + if err != nil { + panic(err) + } +} +// SetLaunchDateTime sets the launchDateTime property value. The launchDateTime property +func (m *CampaignSchedule) SetLaunchDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("launchDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CampaignSchedule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The status property +func (m *CampaignSchedule) SetStatus(value *CampaignStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +type CampaignScheduleable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLaunchDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + GetStatus()(*CampaignStatus) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLaunchDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() + SetStatus(value *CampaignStatus)() +} diff --git a/models/campaign_status.go b/models/campaign_status.go new file mode 100644 index 00000000000..3d59f9383f9 --- /dev/null +++ b/models/campaign_status.go @@ -0,0 +1,60 @@ +package models +import ( + "errors" +) +type CampaignStatus int + +const ( + UNKNOWN_CAMPAIGNSTATUS CampaignStatus = iota + DRAFT_CAMPAIGNSTATUS + INPROGRESS_CAMPAIGNSTATUS + SCHEDULED_CAMPAIGNSTATUS + COMPLETED_CAMPAIGNSTATUS + FAILED_CAMPAIGNSTATUS + CANCELLED_CAMPAIGNSTATUS + EXCLUDED_CAMPAIGNSTATUS + DELETED_CAMPAIGNSTATUS + UNKNOWNFUTUREVALUE_CAMPAIGNSTATUS +) + +func (i CampaignStatus) String() string { + return []string{"unknown", "draft", "inProgress", "scheduled", "completed", "failed", "cancelled", "excluded", "deleted", "unknownFutureValue"}[i] +} +func ParseCampaignStatus(v string) (any, error) { + result := UNKNOWN_CAMPAIGNSTATUS + switch v { + case "unknown": + result = UNKNOWN_CAMPAIGNSTATUS + case "draft": + result = DRAFT_CAMPAIGNSTATUS + case "inProgress": + result = INPROGRESS_CAMPAIGNSTATUS + case "scheduled": + result = SCHEDULED_CAMPAIGNSTATUS + case "completed": + result = COMPLETED_CAMPAIGNSTATUS + case "failed": + result = FAILED_CAMPAIGNSTATUS + case "cancelled": + result = CANCELLED_CAMPAIGNSTATUS + case "excluded": + result = EXCLUDED_CAMPAIGNSTATUS + case "deleted": + result = DELETED_CAMPAIGNSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CAMPAIGNSTATUS + default: + return 0, errors.New("Unknown CampaignStatus value: " + v) + } + return &result, nil +} +func SerializeCampaignStatus(values []CampaignStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CampaignStatus) isMultiValue() bool { + return false +} diff --git a/models/chat_restrictions.go b/models/chat_restrictions.go index 35535524c2d..9c75672094f 100644 --- a/models/chat_restrictions.go +++ b/models/chat_restrictions.go @@ -35,7 +35,7 @@ func (m *ChatRestrictions) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowTextOnly gets the allowTextOnly property value. The allowTextOnly property +// GetAllowTextOnly gets the allowTextOnly property value. Indicates whether only text is allowed in the meeting chat. Optional. // returns a *bool when successful func (m *ChatRestrictions) GetAllowTextOnly()(*bool) { val, err := m.GetBackingStore().Get("allowTextOnly") @@ -119,7 +119,7 @@ func (m *ChatRestrictions) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAllowTextOnly sets the allowTextOnly property value. The allowTextOnly property +// SetAllowTextOnly sets the allowTextOnly property value. Indicates whether only text is allowed in the meeting chat. Optional. func (m *ChatRestrictions) SetAllowTextOnly(value *bool)() { err := m.GetBackingStore().Set("allowTextOnly", value) if err != nil { diff --git a/models/conditional_access_authentication_flows.go b/models/conditional_access_authentication_flows.go new file mode 100644 index 00000000000..37c6d9007d2 --- /dev/null +++ b/models/conditional_access_authentication_flows.go @@ -0,0 +1,151 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ConditionalAccessAuthenticationFlows struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewConditionalAccessAuthenticationFlows instantiates a new ConditionalAccessAuthenticationFlows and sets the default values. +func NewConditionalAccessAuthenticationFlows()(*ConditionalAccessAuthenticationFlows) { + m := &ConditionalAccessAuthenticationFlows{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateConditionalAccessAuthenticationFlowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateConditionalAccessAuthenticationFlowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewConditionalAccessAuthenticationFlows(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ConditionalAccessAuthenticationFlows) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ConditionalAccessAuthenticationFlows) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ConditionalAccessAuthenticationFlows) 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["transferMethods"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConditionalAccessTransferMethods) + if err != nil { + return err + } + if val != nil { + m.SetTransferMethods(val.(*ConditionalAccessTransferMethods)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ConditionalAccessAuthenticationFlows) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTransferMethods gets the transferMethods property value. The transferMethods property +// returns a *ConditionalAccessTransferMethods when successful +func (m *ConditionalAccessAuthenticationFlows) GetTransferMethods()(*ConditionalAccessTransferMethods) { + val, err := m.GetBackingStore().Get("transferMethods") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConditionalAccessTransferMethods) + } + return nil +} +// Serialize serializes information the current object +func (m *ConditionalAccessAuthenticationFlows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetTransferMethods() != nil { + cast := (*m.GetTransferMethods()).String() + err := writer.WriteStringValue("transferMethods", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ConditionalAccessAuthenticationFlows) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ConditionalAccessAuthenticationFlows) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConditionalAccessAuthenticationFlows) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTransferMethods sets the transferMethods property value. The transferMethods property +func (m *ConditionalAccessAuthenticationFlows) SetTransferMethods(value *ConditionalAccessTransferMethods)() { + err := m.GetBackingStore().Set("transferMethods", value) + if err != nil { + panic(err) + } +} +type ConditionalAccessAuthenticationFlowsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetTransferMethods()(*ConditionalAccessTransferMethods) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetTransferMethods(value *ConditionalAccessTransferMethods)() +} diff --git a/models/conditional_access_condition_set.go b/models/conditional_access_condition_set.go index 86006a9d739..d43e1d98e08 100644 --- a/models/conditional_access_condition_set.go +++ b/models/conditional_access_condition_set.go @@ -47,6 +47,18 @@ func (m *ConditionalAccessConditionSet) GetApplications()(ConditionalAccessAppli } return nil } +// GetAuthenticationFlows gets the authenticationFlows property value. Authentication flows included in the policy scope. For more information, see Conditional Access: Authentication flows. +// returns a ConditionalAccessAuthenticationFlowsable when successful +func (m *ConditionalAccessConditionSet) GetAuthenticationFlows()(ConditionalAccessAuthenticationFlowsable) { + val, err := m.GetBackingStore().Get("authenticationFlows") + if err != nil { + panic(err) + } + if val != nil { + return val.(ConditionalAccessAuthenticationFlowsable) + } + return nil +} // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful func (m *ConditionalAccessConditionSet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { @@ -114,6 +126,16 @@ func (m *ConditionalAccessConditionSet) GetFieldDeserializers()(map[string]func( } return nil } + res["authenticationFlows"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateConditionalAccessAuthenticationFlowsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthenticationFlows(val.(ConditionalAccessAuthenticationFlowsable)) + } + return nil + } res["clientApplications"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateConditionalAccessClientApplicationsFromDiscriminatorValue) if err != nil { @@ -342,6 +364,12 @@ func (m *ConditionalAccessConditionSet) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err := writer.WriteObjectValue("authenticationFlows", m.GetAuthenticationFlows()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("clientApplications", m.GetClientApplications()) if err != nil { @@ -430,6 +458,13 @@ func (m *ConditionalAccessConditionSet) SetApplications(value ConditionalAccessA panic(err) } } +// SetAuthenticationFlows sets the authenticationFlows property value. Authentication flows included in the policy scope. For more information, see Conditional Access: Authentication flows. +func (m *ConditionalAccessConditionSet) SetAuthenticationFlows(value ConditionalAccessAuthenticationFlowsable)() { + err := m.GetBackingStore().Set("authenticationFlows", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *ConditionalAccessConditionSet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -516,6 +551,7 @@ type ConditionalAccessConditionSetable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetApplications()(ConditionalAccessApplicationsable) + GetAuthenticationFlows()(ConditionalAccessAuthenticationFlowsable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetClientApplications()(ConditionalAccessClientApplicationsable) GetClientAppTypes()([]ConditionalAccessClientApp) @@ -529,6 +565,7 @@ type ConditionalAccessConditionSetable interface { GetUserRiskLevels()([]RiskLevel) GetUsers()(ConditionalAccessUsersable) SetApplications(value ConditionalAccessApplicationsable)() + SetAuthenticationFlows(value ConditionalAccessAuthenticationFlowsable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetClientApplications(value ConditionalAccessClientApplicationsable)() SetClientAppTypes(value []ConditionalAccessClientApp)() diff --git a/models/conditional_access_transfer_methods.go b/models/conditional_access_transfer_methods.go new file mode 100644 index 00000000000..98e87772122 --- /dev/null +++ b/models/conditional_access_transfer_methods.go @@ -0,0 +1,55 @@ +package models +import ( + "errors" + "math" + "strings" +) +type ConditionalAccessTransferMethods int + +const ( + NONE_CONDITIONALACCESSTRANSFERMETHODS = 1 + DEVICECODEFLOW_CONDITIONALACCESSTRANSFERMETHODS = 2 + AUTHENTICATIONTRANSFER_CONDITIONALACCESSTRANSFERMETHODS = 4 + UNKNOWNFUTUREVALUE_CONDITIONALACCESSTRANSFERMETHODS = 8 +) + +func (i ConditionalAccessTransferMethods) String() string { + var values []string + options := []string{"none", "deviceCodeFlow", "authenticationTransfer", "unknownFutureValue"} + for p := 0; p < 4; p++ { + mantis := ConditionalAccessTransferMethods(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseConditionalAccessTransferMethods(v string) (any, error) { + var result ConditionalAccessTransferMethods + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "none": + result |= NONE_CONDITIONALACCESSTRANSFERMETHODS + case "deviceCodeFlow": + result |= DEVICECODEFLOW_CONDITIONALACCESSTRANSFERMETHODS + case "authenticationTransfer": + result |= AUTHENTICATIONTRANSFER_CONDITIONALACCESSTRANSFERMETHODS + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_CONDITIONALACCESSTRANSFERMETHODS + default: + return 0, errors.New("Unknown ConditionalAccessTransferMethods value: " + v) + } + } + return &result, nil +} +func SerializeConditionalAccessTransferMethods(values []ConditionalAccessTransferMethods) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ConditionalAccessTransferMethods) isMultiValue() bool { + return true +} diff --git a/models/delegated_permission_classification.go b/models/delegated_permission_classification.go index 723724aff60..a32adadf4f3 100644 --- a/models/delegated_permission_classification.go +++ b/models/delegated_permission_classification.go @@ -19,7 +19,7 @@ func NewDelegatedPermissionClassification()(*DelegatedPermissionClassification) func CreateDelegatedPermissionClassificationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDelegatedPermissionClassification(), nil } -// GetClassification gets the classification property value. The classification value being given. Possible value: low. Doesn't support $filter. +// GetClassification gets the classification property value. The classification value. Possible values: low, medium (preview), high (preview). Doesn't support $filter. // returns a *PermissionClassificationType when successful func (m *DelegatedPermissionClassification) GetClassification()(*PermissionClassificationType) { val, err := m.GetBackingStore().Get("classification") @@ -118,7 +118,7 @@ func (m *DelegatedPermissionClassification) Serialize(writer i878a80d2330e89d268 } return nil } -// SetClassification sets the classification property value. The classification value being given. Possible value: low. Doesn't support $filter. +// SetClassification sets the classification property value. The classification value. Possible values: low, medium (preview), high (preview). Doesn't support $filter. func (m *DelegatedPermissionClassification) SetClassification(value *PermissionClassificationType)() { err := m.GetBackingStore().Set("classification", value) if err != nil { diff --git a/models/device_management_configuration_referred_setting_information.go b/models/device_management_configuration_referred_setting_information.go index 8f0d294486c..16fe9c74a9a 100644 --- a/models/device_management_configuration_referred_setting_information.go +++ b/models/device_management_configuration_referred_setting_information.go @@ -79,7 +79,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) GetOdataType() } return nil } -// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting // returns a *string when successful func (m *DeviceManagementConfigurationReferredSettingInformation) GetSettingDefinitionId()(*string) { val, err := m.GetBackingStore().Get("settingDefinitionId") @@ -131,7 +131,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) SetOdataType(v panic(err) } } -// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) SetSettingDefinitionId(value *string)() { err := m.GetBackingStore().Set("settingDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_group_definition.go b/models/device_management_configuration_setting_group_definition.go index fa23ec1955c..7e000516f27 100644 --- a/models/device_management_configuration_setting_group_definition.go +++ b/models/device_management_configuration_setting_group_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSettingGroupDefinitionFromDiscriminatorV } return NewDeviceManagementConfigurationSettingGroupDefinition(), nil } -// GetChildIds gets the childIds property value. Dependent child settings to this group of settings. +// GetChildIds gets the childIds property value. Dependent child settings to this group of settings // returns a []string when successful func (m *DeviceManagementConfigurationSettingGroupDefinition) GetChildIds()([]string) { val, err := m.GetBackingStore().Get("childIds") @@ -165,7 +165,7 @@ func (m *DeviceManagementConfigurationSettingGroupDefinition) Serialize(writer i } return nil } -// SetChildIds sets the childIds property value. Dependent child settings to this group of settings. +// SetChildIds sets the childIds property value. Dependent child settings to this group of settings func (m *DeviceManagementConfigurationSettingGroupDefinition) SetChildIds(value []string)() { err := m.GetBackingStore().Set("childIds", 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 e9f80aa1da0..a0dad4d29ad 100644 --- a/models/device_management_configuration_simple_setting_collection_definition.go +++ b/models/device_management_configuration_simple_setting_collection_definition.go @@ -45,7 +45,7 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetFiel } return res } -// GetMaximumCount gets the maximumCount property value. Maximum number of simple settings in the collection +// GetMaximumCount gets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 // returns a *int32 when successful func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") @@ -57,7 +57,7 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMaxi } return nil } -// GetMinimumCount gets the minimumCount property value. Minimum number of simple settings in the collection +// GetMinimumCount gets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 // returns a *int32 when successful func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") @@ -89,14 +89,14 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) Seriali } return nil } -// SetMaximumCount sets the maximumCount property value. Maximum number of simple settings in the collection +// 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 acf2724ebd6..20e692fcff0 100644 --- a/models/device_management_configuration_simple_setting_definition.go +++ b/models/device_management_configuration_simple_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSimpleSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationSimpleSettingDefinition(), nil } -// GetDefaultValue gets the defaultValue property value. Default setting value for this setting +// GetDefaultValue gets the defaultValue property value. Default setting value for this setting. // returns a DeviceManagementConfigurationSettingValueable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue()(DeviceManagementConfigurationSettingValueable) { val, err := m.GetBackingStore().Get("defaultValue") @@ -49,7 +49,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue() } return nil } -// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting +// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting. // returns a []DeviceManagementConfigurationSettingDependedOnByable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy()([]DeviceManagementConfigurationSettingDependedOnByable) { val, err := m.GetBackingStore().Get("dependedOnBy") @@ -61,7 +61,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy() } return nil } -// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on +// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on. // returns a []DeviceManagementConfigurationDependentOnable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependentOn()([]DeviceManagementConfigurationDependentOnable) { val, err := m.GetBackingStore().Get("dependentOn") @@ -131,7 +131,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } return res } -// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting +// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting. // returns a DeviceManagementConfigurationSettingValueDefinitionable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetValueDefinition()(DeviceManagementConfigurationSettingValueDefinitionable) { val, err := m.GetBackingStore().Get("valueDefinition") @@ -187,28 +187,28 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) Serialize(writer } return nil } -// SetDefaultValue sets the defaultValue property value. Default setting value for this setting +// SetDefaultValue sets the defaultValue property value. Default setting value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDefaultValue(value DeviceManagementConfigurationSettingValueable)() { err := m.GetBackingStore().Set("defaultValue", value) if err != nil { panic(err) } } -// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting +// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependedOnBy(value []DeviceManagementConfigurationSettingDependedOnByable)() { err := m.GetBackingStore().Set("dependedOnBy", value) if err != nil { panic(err) } } -// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on +// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependentOn(value []DeviceManagementConfigurationDependentOnable)() { err := m.GetBackingStore().Set("dependentOn", value) if err != nil { panic(err) } } -// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting +// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetValueDefinition(value DeviceManagementConfigurationSettingValueDefinitionable)() { err := m.GetBackingStore().Set("valueDefinition", value) if err != nil { diff --git a/models/device_management_configuration_string_setting_value_definition.go b/models/device_management_configuration_string_setting_value_definition.go index 9a3156b662d..d37e1eda1b2 100644 --- a/models/device_management_configuration_string_setting_value_definition.go +++ b/models/device_management_configuration_string_setting_value_definition.go @@ -106,7 +106,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetFileTypes } return nil } -// GetFormat gets the format property value. Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. +// GetFormat gets the format property value. Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. // returns a *DeviceManagementConfigurationStringFormat when successful func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetFormat()(*DeviceManagementConfigurationStringFormat) { val, err := m.GetBackingStore().Get("format") @@ -142,7 +142,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetIsSecret( } return nil } -// GetMaximumLength gets the maximumLength property value. Maximum length of string. Valid values 0 to 87516 +// GetMaximumLength gets the maximumLength property value. Maximum length of string // returns a *int64 when successful func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetMaximumLength()(*int64) { val, err := m.GetBackingStore().Get("maximumLength") @@ -154,7 +154,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetMaximumLe } return nil } -// GetMinimumLength gets the minimumLength property value. Minimum length of string. Valid values 0 to 87516 +// GetMinimumLength gets the minimumLength property value. Minimum length of string // returns a *int64 when successful func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetMinimumLength()(*int64) { val, err := m.GetBackingStore().Get("minimumLength") @@ -218,7 +218,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetFileTypes panic(err) } } -// SetFormat sets the format property value. Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. +// SetFormat sets the format property value. Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetFormat(value *DeviceManagementConfigurationStringFormat)() { err := m.GetBackingStore().Set("format", value) if err != nil { @@ -239,14 +239,14 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetIsSecret( panic(err) } } -// SetMaximumLength sets the maximumLength property value. Maximum length of string. Valid values 0 to 87516 +// SetMaximumLength sets the maximumLength property value. Maximum length of string func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetMaximumLength(value *int64)() { err := m.GetBackingStore().Set("maximumLength", value) if err != nil { panic(err) } } -// SetMinimumLength sets the minimumLength property value. Minimum length of string. Valid values 0 to 87516 +// SetMinimumLength sets the minimumLength property value. Minimum length of string func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetMinimumLength(value *int64)() { err := m.GetBackingStore().Set("minimumLength", value) if err != nil { diff --git a/models/education_assignment_defaults.go b/models/education_assignment_defaults.go index 7774688684d..1cb55768876 100644 --- a/models/education_assignment_defaults.go +++ b/models/education_assignment_defaults.go @@ -101,7 +101,7 @@ func (m *EducationAssignmentDefaults) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetNotificationChannelUrl gets the notificationChannelUrl property value. Default Teams channel to which notifications will be sent. Default value is null. +// GetNotificationChannelUrl gets the notificationChannelUrl property value. Default Teams channel to which notifications are sent. Default value is null. // returns a *string when successful func (m *EducationAssignmentDefaults) GetNotificationChannelUrl()(*string) { val, err := m.GetBackingStore().Get("notificationChannelUrl") @@ -168,7 +168,7 @@ func (m *EducationAssignmentDefaults) SetDueTime(value *i878a80d2330e89d26896388 panic(err) } } -// SetNotificationChannelUrl sets the notificationChannelUrl property value. Default Teams channel to which notifications will be sent. Default value is null. +// SetNotificationChannelUrl sets the notificationChannelUrl property value. Default Teams channel to which notifications are sent. Default value is null. func (m *EducationAssignmentDefaults) SetNotificationChannelUrl(value *string)() { err := m.GetBackingStore().Set("notificationChannelUrl", value) if err != nil { diff --git a/models/entity.go b/models/entity.go index 37f1fccfa99..b7a5cb81cd2 100644 --- a/models/entity.go +++ b/models/entity.go @@ -2654,6 +2654,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewTooManyGlobalAdminsAssignedToTenantAlertIncident(), nil case "#microsoft.graph.training": return NewTraining(), nil + case "#microsoft.graph.trainingCampaign": + return NewTrainingCampaign(), nil case "#microsoft.graph.trainingLanguageDetail": return NewTrainingLanguageDetail(), nil case "#microsoft.graph.trending": diff --git a/models/enumerated_domains.go b/models/enumerated_domains.go index 06d234a5da2..6f6a865256e 100644 --- a/models/enumerated_domains.go +++ b/models/enumerated_domains.go @@ -21,7 +21,7 @@ func NewEnumeratedDomains()(*EnumeratedDomains) { func CreateEnumeratedDomainsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewEnumeratedDomains(), nil } -// GetDomainNames gets the domainNames property value. The domainNames property +// GetDomainNames gets the domainNames property value. List of federated or managed root domains that Microsoft Entra ID validates. // returns a []string when successful func (m *EnumeratedDomains) GetDomainNames()([]string) { val, err := m.GetBackingStore().Get("domainNames") @@ -69,7 +69,7 @@ func (m *EnumeratedDomains) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetDomainNames sets the domainNames property value. The domainNames property +// SetDomainNames sets the domainNames property value. List of federated or managed root domains that Microsoft Entra ID validates. func (m *EnumeratedDomains) SetDomainNames(value []string)() { err := m.GetBackingStore().Set("domainNames", value) if err != nil { diff --git a/models/group.go b/models/group.go index d7213a35672..f8f0d428671 100644 --- a/models/group.go +++ b/models/group.go @@ -1752,7 +1752,7 @@ func (m *Group) GetRenewedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a1 } return nil } -// GetResourceBehaviorOptions gets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This can be set only as part of creation (POST). Possible values are AllowOnlyMembersToPost, HideGroupInOutlook, SubscribeNewGroupMembers, WelcomeEmailDisabled. For more information, see Set Microsoft 365 group behaviors and provisioning options. +// GetResourceBehaviorOptions gets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This can be set only as part of creation (POST). For the list of possible values, see Set Microsoft 365 group behaviors and provisioning options. // returns a []string when successful func (m *Group) GetResourceBehaviorOptions()([]string) { val, err := m.GetBackingStore().Get("resourceBehaviorOptions") @@ -1764,7 +1764,7 @@ func (m *Group) GetResourceBehaviorOptions()([]string) { } return nil } -// GetResourceProvisioningOptions gets the resourceProvisioningOptions property value. Specifies the group resources that are provisioned as part of Microsoft 365 group creation that isn't normally part of default group creation. The possible value is Team. For more information, see Set Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. +// GetResourceProvisioningOptions gets the resourceProvisioningOptions property value. Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Set Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. // returns a []string when successful func (m *Group) GetResourceProvisioningOptions()([]string) { val, err := m.GetBackingStore().Get("resourceProvisioningOptions") @@ -3041,14 +3041,14 @@ func (m *Group) SetRenewedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f30 panic(err) } } -// SetResourceBehaviorOptions sets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This can be set only as part of creation (POST). Possible values are AllowOnlyMembersToPost, HideGroupInOutlook, SubscribeNewGroupMembers, WelcomeEmailDisabled. For more information, see Set Microsoft 365 group behaviors and provisioning options. +// SetResourceBehaviorOptions sets the resourceBehaviorOptions property value. Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This can be set only as part of creation (POST). For the list of possible values, see Set Microsoft 365 group behaviors and provisioning options. func (m *Group) SetResourceBehaviorOptions(value []string)() { err := m.GetBackingStore().Set("resourceBehaviorOptions", value) if err != nil { panic(err) } } -// SetResourceProvisioningOptions sets the resourceProvisioningOptions property value. Specifies the group resources that are provisioned as part of Microsoft 365 group creation that isn't normally part of default group creation. The possible value is Team. For more information, see Set Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. +// SetResourceProvisioningOptions sets the resourceProvisioningOptions property value. Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Set Microsoft 365 group behaviors and provisioning options. Returned by default. Supports $filter (eq, not, startsWith. func (m *Group) SetResourceProvisioningOptions(value []string)() { err := m.GetBackingStore().Set("resourceProvisioningOptions", value) if err != nil { diff --git a/models/identity_set.go b/models/identity_set.go index 4f7bf6f9002..749df189cbf 100644 --- a/models/identity_set.go +++ b/models/identity_set.go @@ -61,7 +61,7 @@ func (m *IdentitySet) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetApplication gets the application property value. The Identity of the Application. This property is read-only. +// GetApplication gets the application property value. Optional. The application associated with this action. // returns a Identityable when successful func (m *IdentitySet) GetApplication()(Identityable) { val, err := m.GetBackingStore().Get("application") @@ -78,7 +78,7 @@ func (m *IdentitySet) GetApplication()(Identityable) { func (m *IdentitySet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDevice gets the device property value. The Identity of the Device. This property is read-only. +// GetDevice gets the device property value. Optional. The device associated with this action. // returns a Identityable when successful func (m *IdentitySet) GetDevice()(Identityable) { val, err := m.GetBackingStore().Get("device") @@ -148,7 +148,7 @@ func (m *IdentitySet) GetOdataType()(*string) { } return nil } -// GetUser gets the user property value. The Identity of the User. This property is read-only. +// GetUser gets the user property value. Optional. The user associated with this action. // returns a Identityable when successful func (m *IdentitySet) GetUser()(Identityable) { val, err := m.GetBackingStore().Get("user") @@ -201,7 +201,7 @@ func (m *IdentitySet) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetApplication sets the application property value. The Identity of the Application. This property is read-only. +// SetApplication sets the application property value. Optional. The application associated with this action. func (m *IdentitySet) SetApplication(value Identityable)() { err := m.GetBackingStore().Set("application", value) if err != nil { @@ -212,7 +212,7 @@ func (m *IdentitySet) SetApplication(value Identityable)() { func (m *IdentitySet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDevice sets the device property value. The Identity of the Device. This property is read-only. +// SetDevice sets the device property value. Optional. The device associated with this action. func (m *IdentitySet) SetDevice(value Identityable)() { err := m.GetBackingStore().Set("device", value) if err != nil { @@ -226,7 +226,7 @@ func (m *IdentitySet) SetOdataType(value *string)() { panic(err) } } -// SetUser sets the user property value. The Identity of the User. This property is read-only. +// SetUser sets the user property value. Optional. The user associated with this action. func (m *IdentitySet) SetUser(value Identityable)() { err := m.GetBackingStore().Set("user", value) if err != nil { diff --git a/models/key_value.go b/models/key_value.go index bebb09fce47..422f3c025fd 100644 --- a/models/key_value.go +++ b/models/key_value.go @@ -76,7 +76,7 @@ func (m *KeyValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetKey gets the key property value. Key. +// GetKey gets the key property value. Contains the name of the field that a value is associated with. // returns a *string when successful func (m *KeyValue) GetKey()(*string) { val, err := m.GetBackingStore().Get("key") @@ -100,7 +100,7 @@ func (m *KeyValue) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. Value. +// GetValue gets the value property value. Contains the corresponding value for the specified key. // returns a *string when successful func (m *KeyValue) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") @@ -151,7 +151,7 @@ func (m *KeyValue) SetAdditionalData(value map[string]any)() { func (m *KeyValue) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetKey sets the key property value. 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 { @@ -165,7 +165,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/license_details.go b/models/license_details.go index 6f3fa2d4452..777320354b2 100644 --- a/models/license_details.go +++ b/models/license_details.go @@ -62,7 +62,7 @@ func (m *LicenseDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetServicePlans gets the servicePlans property value. Information about the service plans assigned with the license. Read-only, Not nullable +// GetServicePlans gets the servicePlans property value. Information about the service plans assigned with the license. Read-only. Not nullable. // returns a []ServicePlanInfoable when successful func (m *LicenseDetails) GetServicePlans()([]ServicePlanInfoable) { val, err := m.GetBackingStore().Get("servicePlans") @@ -74,7 +74,7 @@ func (m *LicenseDetails) GetServicePlans()([]ServicePlanInfoable) { } return nil } -// GetSkuId gets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related SubscribedSku object. Read-only +// GetSkuId gets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related subscribedSku object. Read-only. // returns a *UUID when successful func (m *LicenseDetails) GetSkuId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("skuId") @@ -86,7 +86,7 @@ func (m *LicenseDetails) GetSkuId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6 } return nil } -// GetSkuPartNumber gets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related SubscribedSku object; for example: 'AAD_Premium'. Read-only +// GetSkuPartNumber gets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related subscribedSku object; for example, AAD_Premium. Read-only. // returns a *string when successful func (m *LicenseDetails) GetSkuPartNumber()(*string) { val, err := m.GetBackingStore().Get("skuPartNumber") @@ -130,21 +130,21 @@ func (m *LicenseDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a } return nil } -// SetServicePlans sets the servicePlans property value. Information about the service plans assigned with the license. Read-only, Not nullable +// SetServicePlans sets the servicePlans property value. Information about the service plans assigned with the license. Read-only. Not nullable. func (m *LicenseDetails) SetServicePlans(value []ServicePlanInfoable)() { err := m.GetBackingStore().Set("servicePlans", value) if err != nil { panic(err) } } -// SetSkuId sets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related SubscribedSku object. Read-only +// SetSkuId sets the skuId property value. Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related subscribedSku object. Read-only. func (m *LicenseDetails) SetSkuId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("skuId", value) if err != nil { panic(err) } } -// SetSkuPartNumber sets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related SubscribedSku object; for example: 'AAD_Premium'. Read-only +// SetSkuPartNumber sets the skuPartNumber property value. Unique SKU display name. Equal to the skuPartNumber on the related subscribedSku object; for example, AAD_Premium. Read-only. func (m *LicenseDetails) SetSkuPartNumber(value *string)() { err := m.GetBackingStore().Set("skuPartNumber", value) if err != nil { diff --git a/models/m365_apps_installation_options.go b/models/m365_apps_installation_options.go index 94fbb10fb4e..219464f4763 100644 --- a/models/m365_apps_installation_options.go +++ b/models/m365_apps_installation_options.go @@ -2,7 +2,6 @@ package models import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) type M365AppsInstallationOptions struct { @@ -150,259 +149,3 @@ type M365AppsInstallationOptionsable interface { SetAppsForWindows(value AppsInstallationOptionsForWindowsable)() SetUpdateChannel(value *AppsUpdateChannelType)() } - - -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 -// returns a Parsable when successful -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. -// returns a map[string]any when successful -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. -// returns a BackingStore when successful -func (m *AppsInstallationOptionsForWindows) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -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. -// returns a *bool when successful -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. -// returns a *bool when successful -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. -// returns a *bool when successful -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. -// returns a *bool when successful -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 -// returns a *string when successful -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) - } -} -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/mac_os_lob_app_assignment_settings.go b/models/mac_os_lob_app_assignment_settings.go index 7a1282a3942..9e02d20973f 100644 --- a/models/mac_os_lob_app_assignment_settings.go +++ b/models/mac_os_lob_app_assignment_settings.go @@ -38,7 +38,7 @@ func (m *MacOsLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } return res } -// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. 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. +// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. // returns a *bool when successful func (m *MacOsLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") @@ -64,7 +64,7 @@ func (m *MacOsLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 } return nil } -// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. 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. +// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { diff --git a/models/networkaccess/destination_summary.go b/models/networkaccess/destination_summary.go index ccdf71a14a2..de93b47bf34 100644 --- a/models/networkaccess/destination_summary.go +++ b/models/networkaccess/destination_summary.go @@ -41,14 +41,14 @@ func (m *DestinationSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d4 return m.backingStore } // GetCount gets the count property value. The number of the destinationSummary objects, aggregated by Global Secure Access service. -// returns a *int32 when successful -func (m *DestinationSummary) GetCount()(*int32) { +// returns a *int64 when successful +func (m *DestinationSummary) GetCount()(*int64) { val, err := m.GetBackingStore().Get("count") if err != nil { panic(err) } if val != nil { - return val.(*int32) + return val.(*int64) } return nil } @@ -69,7 +69,7 @@ func (m *DestinationSummary) GetDestination()(*string) { func (m *DestinationSummary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -137,7 +137,7 @@ func (m *DestinationSummary) GetTrafficType()(*TrafficType) { // Serialize serializes information the current object func (m *DestinationSummary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { - err := writer.WriteInt32Value("count", m.GetCount()) + err := writer.WriteInt64Value("count", m.GetCount()) if err != nil { return err } @@ -181,7 +181,7 @@ func (m *DestinationSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd0 m.backingStore = value } // SetCount sets the count property value. The number of the destinationSummary objects, aggregated by Global Secure Access service. -func (m *DestinationSummary) SetCount(value *int32)() { +func (m *DestinationSummary) SetCount(value *int64)() { err := m.GetBackingStore().Set("count", value) if err != nil { panic(err) @@ -213,12 +213,12 @@ type DestinationSummaryable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCount()(*int32) + GetCount()(*int64) GetDestination()(*string) GetOdataType()(*string) GetTrafficType()(*TrafficType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCount(value *int32)() + SetCount(value *int64)() SetDestination(value *string)() SetOdataType(value *string)() SetTrafficType(value *TrafficType)() diff --git a/models/networkaccess/region.go b/models/networkaccess/region.go index 7e9f84a833a..13597ef4c19 100644 --- a/models/networkaccess/region.go +++ b/models/networkaccess/region.go @@ -37,10 +37,11 @@ const ( JAPANEAST_REGION JAPANWEST_REGION UNKNOWNFUTUREVALUE_REGION + KOREASOUTH_REGION ) func (i Region) String() string { - return []string{"eastUS", "eastUS2", "westUS", "westUS2", "westUS3", "centralUS", "northCentralUS", "southCentralUS", "northEurope", "westEurope", "franceCentral", "germanyWestCentral", "switzerlandNorth", "ukSouth", "canadaEast", "canadaCentral", "southAfricaWest", "southAfricaNorth", "uaeNorth", "australiaEast", "westCentralUS", "centralIndia", "southEastAsia", "swedenCentral", "southIndia", "australiaSouthEast", "koreaCentral", "polandCentral", "brazilSouth", "japanEast", "japanWest", "unknownFutureValue"}[i] + return []string{"eastUS", "eastUS2", "westUS", "westUS2", "westUS3", "centralUS", "northCentralUS", "southCentralUS", "northEurope", "westEurope", "franceCentral", "germanyWestCentral", "switzerlandNorth", "ukSouth", "canadaEast", "canadaCentral", "southAfricaWest", "southAfricaNorth", "uaeNorth", "australiaEast", "westCentralUS", "centralIndia", "southEastAsia", "swedenCentral", "southIndia", "australiaSouthEast", "koreaCentral", "polandCentral", "brazilSouth", "japanEast", "japanWest", "unknownFutureValue", "koreaSouth"}[i] } func ParseRegion(v string) (any, error) { result := EASTUS_REGION @@ -109,6 +110,8 @@ func ParseRegion(v string) (any, error) { result = JAPANWEST_REGION case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REGION + case "koreaSouth": + result = KOREASOUTH_REGION default: return 0, errors.New("Unknown Region value: " + v) } diff --git a/models/networkaccess/tunnel_configuration.go b/models/networkaccess/tunnel_configuration.go index 06f90539d6b..867cce450e0 100644 --- a/models/networkaccess/tunnel_configuration.go +++ b/models/networkaccess/tunnel_configuration.go @@ -84,6 +84,16 @@ func (m *TunnelConfiguration) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["zoneRedundancyPreSharedKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetZoneRedundancyPreSharedKey(val) + } + return nil + } return res } // GetOdataType gets the @odata.type property value. The OdataType property @@ -110,6 +120,18 @@ func (m *TunnelConfiguration) GetPreSharedKey()(*string) { } return nil } +// GetZoneRedundancyPreSharedKey gets the zoneRedundancyPreSharedKey property value. The zoneRedundancyPreSharedKey property +// returns a *string when successful +func (m *TunnelConfiguration) GetZoneRedundancyPreSharedKey()(*string) { + val, err := m.GetBackingStore().Get("zoneRedundancyPreSharedKey") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *TunnelConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -124,6 +146,12 @@ func (m *TunnelConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err := writer.WriteStringValue("zoneRedundancyPreSharedKey", m.GetZoneRedundancyPreSharedKey()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -157,6 +185,13 @@ func (m *TunnelConfiguration) SetPreSharedKey(value *string)() { panic(err) } } +// SetZoneRedundancyPreSharedKey sets the zoneRedundancyPreSharedKey property value. The zoneRedundancyPreSharedKey property +func (m *TunnelConfiguration) SetZoneRedundancyPreSharedKey(value *string)() { + err := m.GetBackingStore().Set("zoneRedundancyPreSharedKey", value) + if err != nil { + panic(err) + } +} type TunnelConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel @@ -164,7 +199,9 @@ type TunnelConfigurationable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetPreSharedKey()(*string) + GetZoneRedundancyPreSharedKey()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetPreSharedKey(value *string)() + SetZoneRedundancyPreSharedKey(value *string)() } diff --git a/models/object_identity.go b/models/object_identity.go index fc83cec7f4d..2b86bf67fbe 100644 --- a/models/object_identity.go +++ b/models/object_identity.go @@ -86,7 +86,7 @@ func (m *ObjectIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetIssuer gets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com.
For guests from other Microsoft Entra organization, this is the domain of the federated organization, for examplecontoso.com`. For more information about filtering behavior for this property, see Filtering on the identities property of a user. +// GetIssuer gets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com. For guests from other Microsoft Entra organizations, this is the domain of the federated organization, for example contoso.com. For more information about filtering behavior for this property, see Filtering on the identities property of a user. // returns a *string when successful func (m *ObjectIdentity) GetIssuer()(*string) { val, err := m.GetBackingStore().Get("issuer") @@ -179,7 +179,7 @@ func (m *ObjectIdentity) SetAdditionalData(value map[string]any)() { func (m *ObjectIdentity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIssuer sets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com.
For guests from other Microsoft Entra organization, this is the domain of the federated organization, for examplecontoso.com`. For more information about filtering behavior for this property, see Filtering on the identities property of a user. +// SetIssuer sets the issuer property value. Specifies the issuer of the identity, for example facebook.com. 512 character limit. For local accounts (where signInType isn't federated), this property is the local default domain name for the tenant, for example contoso.com. For guests from other Microsoft Entra organizations, this is the domain of the federated organization, for example contoso.com. For more information about filtering behavior for this property, see Filtering on the identities property of a user. func (m *ObjectIdentity) SetIssuer(value *string)() { err := m.GetBackingStore().Set("issuer", value) if err != nil { diff --git a/models/online_meeting.go b/models/online_meeting.go index 9e2713c8220..86bbf60d39a 100644 --- a/models/online_meeting.go +++ b/models/online_meeting.go @@ -94,7 +94,7 @@ func (m *OnlineMeeting) GetCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6 } return nil } -// GetEndDateTime gets the endDateTime property value. The meeting end time in UTC. +// GetEndDateTime gets the endDateTime property value. The meeting end time in UTC. Required when you create an online meeting. // returns a *Time when successful func (m *OnlineMeeting) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("endDateTime") @@ -418,7 +418,7 @@ func (m *OnlineMeeting) GetRegistration()(MeetingRegistrationable) { } return nil } -// GetStartDateTime gets the startDateTime property value. The meeting start time in UTC. +// GetStartDateTime gets the startDateTime property value. The meeting start time in UTC. Required when you create an online meeting. // returns a *Time when successful func (m *OnlineMeeting) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startDateTime") @@ -612,7 +612,7 @@ func (m *OnlineMeeting) SetCreationDateTime(value *i336074805fc853987abe6f7fe3ad panic(err) } } -// SetEndDateTime sets the endDateTime property value. The meeting end time in UTC. +// SetEndDateTime sets the endDateTime property value. The meeting end time in UTC. Required when you create an online meeting. func (m *OnlineMeeting) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("endDateTime", value) if err != nil { @@ -682,7 +682,7 @@ func (m *OnlineMeeting) SetRegistration(value MeetingRegistrationable)() { panic(err) } } -// SetStartDateTime sets the startDateTime property value. The meeting start time in UTC. +// SetStartDateTime sets the startDateTime property value. The meeting start time in UTC. Required when you create an online meeting. func (m *OnlineMeeting) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { diff --git a/models/password_profile.go b/models/password_profile.go index bbf2ba6fc60..b4cff591f3f 100644 --- a/models/password_profile.go +++ b/models/password_profile.go @@ -86,7 +86,7 @@ func (m *PasswordProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetForceChangePasswordNextSignIn gets the forceChangePasswordNextSignIn property value. true if the user must change her password on the next login; otherwise false. If not set, default is false. +// GetForceChangePasswordNextSignIn gets the forceChangePasswordNextSignIn property value. true if the user must change their password on the next sign-in; otherwise false. If not set, default is false. // returns a *bool when successful func (m *PasswordProfile) GetForceChangePasswordNextSignIn()(*bool) { val, err := m.GetBackingStore().Get("forceChangePasswordNextSignIn") @@ -98,7 +98,7 @@ func (m *PasswordProfile) GetForceChangePasswordNextSignIn()(*bool) { } return nil } -// GetForceChangePasswordNextSignInWithMfa gets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. +// GetForceChangePasswordNextSignInWithMfa gets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multifactor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multifactor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. // returns a *bool when successful func (m *PasswordProfile) GetForceChangePasswordNextSignInWithMfa()(*bool) { val, err := m.GetBackingStore().Get("forceChangePasswordNextSignInWithMfa") @@ -122,7 +122,7 @@ func (m *PasswordProfile) GetOdataType()(*string) { } return nil } -// GetPassword gets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. +// GetPassword gets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next sign-in. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. // returns a *string when successful func (m *PasswordProfile) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -179,14 +179,14 @@ func (m *PasswordProfile) SetAdditionalData(value map[string]any)() { func (m *PasswordProfile) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetForceChangePasswordNextSignIn sets the forceChangePasswordNextSignIn property value. true if the user must change her password on the next login; otherwise false. If not set, default is false. +// SetForceChangePasswordNextSignIn sets the forceChangePasswordNextSignIn property value. true if the user must change their password on the next sign-in; otherwise false. If not set, default is false. func (m *PasswordProfile) SetForceChangePasswordNextSignIn(value *bool)() { err := m.GetBackingStore().Set("forceChangePasswordNextSignIn", value) if err != nil { panic(err) } } -// SetForceChangePasswordNextSignInWithMfa sets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. +// SetForceChangePasswordNextSignInWithMfa sets the forceChangePasswordNextSignInWithMfa property value. If true, at next sign-in, the user must perform a multifactor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multifactor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. func (m *PasswordProfile) SetForceChangePasswordNextSignInWithMfa(value *bool)() { err := m.GetBackingStore().Set("forceChangePasswordNextSignInWithMfa", value) if err != nil { @@ -200,7 +200,7 @@ func (m *PasswordProfile) SetOdataType(value *string)() { panic(err) } } -// SetPassword sets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. +// SetPassword sets the password property value. The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next sign-in. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required. func (m *PasswordProfile) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) if err != nil { diff --git a/models/policy_root.go b/models/policy_root.go index 6da978b7d14..2199cfc897c 100644 --- a/models/policy_root.go +++ b/models/policy_root.go @@ -223,7 +223,7 @@ func (m *PolicyRoot) GetFeatureRolloutPolicies()([]FeatureRolloutPolicyable) { } return nil } -// GetFederatedTokenValidationPolicy gets the federatedTokenValidationPolicy property value. The federatedTokenValidationPolicy property +// GetFederatedTokenValidationPolicy gets the federatedTokenValidationPolicy property value. Represents a policy to control enabling or disabling validation of federation authentication tokens. // returns a FederatedTokenValidationPolicyable when successful func (m *PolicyRoot) GetFederatedTokenValidationPolicy()(FederatedTokenValidationPolicyable) { val, err := m.GetBackingStore().Get("federatedTokenValidationPolicy") @@ -1128,7 +1128,7 @@ func (m *PolicyRoot) SetFeatureRolloutPolicies(value []FeatureRolloutPolicyable) panic(err) } } -// SetFederatedTokenValidationPolicy sets the federatedTokenValidationPolicy property value. The federatedTokenValidationPolicy property +// SetFederatedTokenValidationPolicy sets the federatedTokenValidationPolicy property value. Represents a policy to control enabling or disabling validation of federation authentication tokens. func (m *PolicyRoot) SetFederatedTokenValidationPolicy(value FederatedTokenValidationPolicyable)() { err := m.GetBackingStore().Set("federatedTokenValidationPolicy", value) if err != nil { diff --git a/models/privileged_access_group_assignment_schedule.go b/models/privileged_access_group_assignment_schedule.go index e57d38161f1..8d95dd957d1 100644 --- a/models/privileged_access_group_assignment_schedule.go +++ b/models/privileged_access_group_assignment_schedule.go @@ -143,7 +143,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetFieldDeserializers()(map[st } return res } -// GetGroup gets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. +// GetGroup gets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a Groupable when successful func (m *PrivilegedAccessGroupAssignmentSchedule) GetGroup()(Groupable) { val, err := m.GetBackingStore().Get("group") @@ -179,7 +179,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetMemberType()(*PrivilegedAcc } return nil } -// GetPrincipal gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. +// GetPrincipal gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful func (m *PrivilegedAccessGroupAssignmentSchedule) GetPrincipal()(DirectoryObjectable) { val, err := m.GetBackingStore().Get("principal") @@ -283,7 +283,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetAssignmentType(value *Privi panic(err) } } -// SetGroup sets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand. +// SetGroup sets the group property value. References the group that is the scope of the membership or ownership assignment through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. func (m *PrivilegedAccessGroupAssignmentSchedule) SetGroup(value Groupable)() { err := m.GetBackingStore().Set("group", value) if err != nil { @@ -304,7 +304,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetMemberType(value *Privilege panic(err) } } -// SetPrincipal sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand. +// SetPrincipal sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request to the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. func (m *PrivilegedAccessGroupAssignmentSchedule) SetPrincipal(value DirectoryObjectable)() { err := m.GetBackingStore().Set("principal", value) if err != nil { diff --git a/models/privileged_access_group_assignment_schedule_request.go b/models/privileged_access_group_assignment_schedule_request.go index 19aea9757dd..ed9c6495dcb 100644 --- a/models/privileged_access_group_assignment_schedule_request.go +++ b/models/privileged_access_group_assignment_schedule_request.go @@ -131,7 +131,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetFieldDeserializers() } return res } -// GetGroup gets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. +// GetGroup gets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a Groupable when successful func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetGroup()(Groupable) { val, err := m.GetBackingStore().Get("group") @@ -155,7 +155,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetGroupId()(*string) { } return nil } -// GetPrincipal gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. +// GetPrincipal gets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetPrincipal()(DirectoryObjectable) { val, err := m.GetBackingStore().Get("principal") @@ -274,7 +274,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetActivatedUsing(value panic(err) } } -// SetGroup sets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand. +// SetGroup sets the group property value. References the group that is the scope of the membership or ownership assignment request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetGroup(value Groupable)() { err := m.GetBackingStore().Set("group", value) if err != nil { @@ -288,7 +288,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetGroupId(value *strin panic(err) } } -// SetPrincipal sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand. +// SetPrincipal sets the principal property value. References the principal that's in the scope of this membership or ownership assignment request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetPrincipal(value DirectoryObjectable)() { err := m.GetBackingStore().Set("principal", value) if err != nil { diff --git a/models/privileged_access_group_eligibility_schedule_request.go b/models/privileged_access_group_eligibility_schedule_request.go index a38c0efae36..88fb34e617c 100644 --- a/models/privileged_access_group_eligibility_schedule_request.go +++ b/models/privileged_access_group_eligibility_schedule_request.go @@ -109,7 +109,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetFieldDeserializers( } return res } -// GetGroup gets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. +// GetGroup gets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. // returns a Groupable when successful func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetGroup()(Groupable) { val, err := m.GetBackingStore().Get("group") @@ -133,7 +133,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetGroupId()(*string) } return nil } -// GetPrincipal gets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. +// GetPrincipal gets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetPrincipal()(DirectoryObjectable) { val, err := m.GetBackingStore().Get("principal") @@ -239,7 +239,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetAccessId(value *Pri panic(err) } } -// SetGroup sets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand. +// SetGroup sets the group property value. References the group that is the scope of the membership or ownership eligibility request through PIM for groups. Supports $expand and $select nested in $expand for select properties like id, displayName, and mail. func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetGroup(value Groupable)() { err := m.GetBackingStore().Set("group", value) if err != nil { @@ -253,7 +253,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetGroupId(value *stri panic(err) } } -// SetPrincipal sets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand. +// SetPrincipal sets the principal property value. References the principal that's in the scope of the membership or ownership eligibility request through the group that's governed by PIM. Supports $expand and $select nested in $expand for id only. func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetPrincipal(value DirectoryObjectable)() { err := m.GetBackingStore().Set("principal", value) if err != nil { diff --git a/models/recommendation_type.go b/models/recommendation_type.go index 11393903569..120c1cfb176 100644 --- a/models/recommendation_type.go +++ b/models/recommendation_type.go @@ -42,10 +42,13 @@ const ( ADALTOMSALMIGRATION_RECOMMENDATIONTYPE OWNERLESSAPPS_RECOMMENDATIONTYPE INACTIVEGUESTS_RECOMMENDATIONTYPE + AADGRAPHDEPRECATIONAPPLICATION_RECOMMENDATIONTYPE + AADGRAPHDEPRECATIONSERVICEPRINCIPAL_RECOMMENDATIONTYPE + MFASERVERDEPRECATION_RECOMMENDATIONTYPE ) func (i RecommendationType) String() string { - return []string{"adfsAppsMigration", "enableDesktopSSO", "enablePHS", "enableProvisioning", "switchFromPerUserMFA", "tenantMFA", "thirdPartyApps", "turnOffPerUserMFA", "useAuthenticatorApp", "useMyApps", "staleApps", "staleAppCreds", "applicationCredentialExpiry", "servicePrincipalKeyExpiry", "adminMFAV2", "blockLegacyAuthentication", "integratedApps", "mfaRegistrationV2", "pwagePolicyNew", "passwordHashSync", "oneAdmin", "roleOverlap", "selfServicePasswordReset", "signinRiskPolicy", "userRiskPolicy", "verifyAppPublisher", "privateLinkForAAD", "appRoleAssignmentsGroups", "appRoleAssignmentsUsers", "managedIdentity", "overprivilegedApps", "unknownFutureValue", "longLivedCredentials", "aadConnectDeprecated", "adalToMsalMigration", "ownerlessApps", "inactiveGuests"}[i] + return []string{"adfsAppsMigration", "enableDesktopSSO", "enablePHS", "enableProvisioning", "switchFromPerUserMFA", "tenantMFA", "thirdPartyApps", "turnOffPerUserMFA", "useAuthenticatorApp", "useMyApps", "staleApps", "staleAppCreds", "applicationCredentialExpiry", "servicePrincipalKeyExpiry", "adminMFAV2", "blockLegacyAuthentication", "integratedApps", "mfaRegistrationV2", "pwagePolicyNew", "passwordHashSync", "oneAdmin", "roleOverlap", "selfServicePasswordReset", "signinRiskPolicy", "userRiskPolicy", "verifyAppPublisher", "privateLinkForAAD", "appRoleAssignmentsGroups", "appRoleAssignmentsUsers", "managedIdentity", "overprivilegedApps", "unknownFutureValue", "longLivedCredentials", "aadConnectDeprecated", "adalToMsalMigration", "ownerlessApps", "inactiveGuests", "aadGraphDeprecationApplication", "aadGraphDeprecationServicePrincipal", "mfaServerDeprecation"}[i] } func ParseRecommendationType(v string) (any, error) { result := ADFSAPPSMIGRATION_RECOMMENDATIONTYPE @@ -124,6 +127,12 @@ func ParseRecommendationType(v string) (any, error) { result = OWNERLESSAPPS_RECOMMENDATIONTYPE case "inactiveGuests": result = INACTIVEGUESTS_RECOMMENDATIONTYPE + case "aadGraphDeprecationApplication": + result = AADGRAPHDEPRECATIONAPPLICATION_RECOMMENDATIONTYPE + case "aadGraphDeprecationServicePrincipal": + result = AADGRAPHDEPRECATIONSERVICEPRINCIPAL_RECOMMENDATIONTYPE + case "mfaServerDeprecation": + result = MFASERVERDEPRECATION_RECOMMENDATIONTYPE default: return 0, errors.New("Unknown RecommendationType value: " + v) } diff --git a/models/schedule.go b/models/schedule.go index 6cfd7498002..2e1446ef9ce 100644 --- a/models/schedule.go +++ b/models/schedule.go @@ -541,7 +541,7 @@ func (m *Schedule) GetShifts()([]Shiftable) { } return nil } -// GetShiftsRoleDefinitions gets the shiftsRoleDefinitions property value. The shiftsRoleDefinitions property +// GetShiftsRoleDefinitions gets the shiftsRoleDefinitions property value. The definitions of the roles in the schedule. // returns a []ShiftsRoleDefinitionable when successful func (m *Schedule) GetShiftsRoleDefinitions()([]ShiftsRoleDefinitionable) { val, err := m.GetBackingStore().Get("shiftsRoleDefinitions") @@ -1026,7 +1026,7 @@ func (m *Schedule) SetShifts(value []Shiftable)() { panic(err) } } -// SetShiftsRoleDefinitions sets the shiftsRoleDefinitions property value. The shiftsRoleDefinitions property +// SetShiftsRoleDefinitions sets the shiftsRoleDefinitions property value. The definitions of the roles in the schedule. func (m *Schedule) SetShiftsRoleDefinitions(value []ShiftsRoleDefinitionable)() { err := m.GetBackingStore().Set("shiftsRoleDefinitions", value) if err != nil { diff --git a/models/security/audit_log_query.go b/models/security/audit_log_query.go index e19d8a6ebe6..953fdda847e 100644 --- a/models/security/audit_log_query.go +++ b/models/security/audit_log_query.go @@ -313,7 +313,7 @@ func (m *AuditLogQuery) GetRecords()([]AuditLogRecordable) { } return nil } -// GetRecordTypeFilters gets the recordTypeFilters property value. The recordTypeFilters property +// GetRecordTypeFilters gets the recordTypeFilters property value. The type of operation indicated by the record. The possible values are: exchangeAdmin, exchangeItem, exchangeItemGroup, sharePoint, syntheticProbe, sharePointFileOperation, oneDrive, azureActiveDirectory, azureActiveDirectoryAccountLogon, dataCenterSecurityCmdlet, complianceDLPSharePoint, sway, complianceDLPExchange, sharePointSharingOperation, azureActiveDirectoryStsLogon, skypeForBusinessPSTNUsage, skypeForBusinessUsersBlocked, securityComplianceCenterEOPCmdlet, exchangeAggregatedOperation, powerBIAudit, crm, yammer, skypeForBusinessCmdlets, discovery, microsoftTeams, threatIntelligence, mailSubmission, microsoftFlow, aeD, microsoftStream, complianceDLPSharePointClassification, threatFinder, project, sharePointListOperation, sharePointCommentOperation, dataGovernance, kaizala, securityComplianceAlerts, threatIntelligenceUrl, securityComplianceInsights, mipLabel, workplaceAnalytics, powerAppsApp, powerAppsPlan, threatIntelligenceAtpContent, labelContentExplorer, teamsHealthcare, exchangeItemAggregated, hygieneEvent, dataInsightsRestApiAudit, informationBarrierPolicyApplication, sharePointListItemOperation, sharePointContentTypeOperation, sharePointFieldOperation, microsoftTeamsAdmin, hrSignal, microsoftTeamsDevice, microsoftTeamsAnalytics, informationWorkerProtection, campaign, dlpEndpoint, airInvestigation, quarantine, microsoftForms, applicationAudit, complianceSupervisionExchange, customerKeyServiceEncryption, officeNative, mipAutoLabelSharePointItem, mipAutoLabelSharePointPolicyLocation, microsoftTeamsShifts, secureScore, mipAutoLabelExchangeItem, cortanaBriefing, search, wdatpAlerts, powerPlatformAdminDlp, powerPlatformAdminEnvironment, mdatpAudit, sensitivityLabelPolicyMatch, sensitivityLabelAction, sensitivityLabeledFileAction, attackSim, airManualInvestigation, securityComplianceRBAC, userTraining, airAdminActionInvestigation, mstic, physicalBadgingSignal, teamsEasyApprovals, aipDiscover, aipSensitivityLabelAction, aipProtectionAction, aipFileDeleted, aipHeartBeat, mcasAlerts, onPremisesFileShareScannerDlp, onPremisesSharePointScannerDlp, exchangeSearch, sharePointSearch, privacyDataMinimization, labelAnalyticsAggregate, myAnalyticsSettings, securityComplianceUserChange, complianceDLPExchangeClassification, complianceDLPEndpoint, mipExactDataMatch, msdeResponseActions, msdeGeneralSettings, msdeIndicatorsSettings, ms365DCustomDetection, msdeRolesSettings, mapgAlerts, mapgPolicy, mapgRemediation, privacyRemediationAction, privacyDigestEmail, mipAutoLabelSimulationProgress, mipAutoLabelSimulationCompletion, mipAutoLabelProgressFeedback, dlpSensitiveInformationType, mipAutoLabelSimulationStatistics, largeContentMetadata, microsoft365Group, cdpMlInferencingResult, filteringMailMetadata, cdpClassificationMailItem, cdpClassificationDocument, officeScriptsRunAction, filteringPostMailDeliveryAction, cdpUnifiedFeedback, tenantAllowBlockList, consumptionResource, healthcareSignal, dlpImportResult, cdpCompliancePolicyExecution, multiStageDisposition, privacyDataMatch, filteringDocMetadata, filteringEmailFeatures, powerBIDlp, filteringUrlInfo, filteringAttachmentInfo, coreReportingSettings, complianceConnector, powerPlatformLockboxResourceAccessRequest, powerPlatformLockboxResourceCommand, cdpPredictiveCodingLabel, cdpCompliancePolicyUserFeedback, webpageActivityEndpoint, omePortal, cmImprovementActionChange, filteringUrlClick, mipLabelAnalyticsAuditRecord, filteringEntityEvent, filteringRuleHits, filteringMailSubmission, labelExplorer, microsoftManagedServicePlatform, powerPlatformServiceActivity, scorePlatformGenericAuditRecord, filteringTimeTravelDocMetadata, alert, alertStatus, alertIncident, incidentStatus, case, caseInvestigation, recordsManagement, privacyRemediation, dataShareOperation, cdpDlpSensitive, ehrConnector, filteringMailGradingResult, publicFolder, privacyTenantAuditHistoryRecord, aipScannerDiscoverEvent, eduDataLakeDownloadOperation, m365ComplianceConnector, microsoftGraphDataConnectOperation, microsoftPurview, filteringEmailContentFeatures, powerPagesSite, powerAppsResource, plannerPlan, plannerCopyPlan, plannerTask, plannerRoster, plannerPlanList, plannerTaskList, plannerTenantSettings, projectForTheWebProject, projectForTheWebTask, projectForTheWebRoadmap, projectForTheWebRoadmapItem, projectForTheWebProjectSettings, projectForTheWebRoadmapSettings, quarantineMetadata, microsoftTodoAudit, timeTravelFilteringDocMetadata, teamsQuarantineMetadata, sharePointAppPermissionOperation, microsoftTeamsSensitivityLabelAction, filteringTeamsMetadata, filteringTeamsUrlInfo, filteringTeamsPostDeliveryAction, mdcAssessments, mdcRegulatoryComplianceStandards, mdcRegulatoryComplianceControls, mdcRegulatoryComplianceAssessments, mdcSecurityConnectors, mdaDataSecuritySignal, vivaGoals, filteringRuntimeInfo, attackSimAdmin, microsoftGraphDataConnectConsent, filteringAtpDetonationInfo, privacyPortal, managedTenants, unifiedSimulationMatchedItem, unifiedSimulationSummary, updateQuarantineMetadata, ms365DSuppressionRule, purviewDataMapOperation, filteringUrlPostClickAction, irmUserDefinedDetectionSignal, teamsUpdates, plannerRosterSensitivityLabel, ms365DIncident, filteringDelistingMetadata, complianceDLPSharePointClassificationExtended, microsoftDefenderForIdentityAudit, supervisoryReviewDayXInsight, defenderExpertsforXDRAdmin, cdpEdgeBlockedMessage, hostedRpa, cdpContentExplorerAggregateRecord, cdpHygieneAttachmentInfo, cdpHygieneSummary, cdpPostMailDeliveryAction, cdpEmailFeatures, cdpHygieneUrlInfo, cdpUrlClick, cdpPackageManagerHygieneEvent, filteringDocScan, timeTravelFilteringDocScan, mapgOnboard, unknownFutureValue. // returns a []AuditLogRecordType when successful func (m *AuditLogQuery) GetRecordTypeFilters()([]AuditLogRecordType) { val, err := m.GetBackingStore().Get("recordTypeFilters") @@ -517,7 +517,7 @@ func (m *AuditLogQuery) SetRecords(value []AuditLogRecordable)() { panic(err) } } -// SetRecordTypeFilters sets the recordTypeFilters property value. The recordTypeFilters property +// SetRecordTypeFilters sets the recordTypeFilters property value. The type of operation indicated by the record. The possible values are: exchangeAdmin, exchangeItem, exchangeItemGroup, sharePoint, syntheticProbe, sharePointFileOperation, oneDrive, azureActiveDirectory, azureActiveDirectoryAccountLogon, dataCenterSecurityCmdlet, complianceDLPSharePoint, sway, complianceDLPExchange, sharePointSharingOperation, azureActiveDirectoryStsLogon, skypeForBusinessPSTNUsage, skypeForBusinessUsersBlocked, securityComplianceCenterEOPCmdlet, exchangeAggregatedOperation, powerBIAudit, crm, yammer, skypeForBusinessCmdlets, discovery, microsoftTeams, threatIntelligence, mailSubmission, microsoftFlow, aeD, microsoftStream, complianceDLPSharePointClassification, threatFinder, project, sharePointListOperation, sharePointCommentOperation, dataGovernance, kaizala, securityComplianceAlerts, threatIntelligenceUrl, securityComplianceInsights, mipLabel, workplaceAnalytics, powerAppsApp, powerAppsPlan, threatIntelligenceAtpContent, labelContentExplorer, teamsHealthcare, exchangeItemAggregated, hygieneEvent, dataInsightsRestApiAudit, informationBarrierPolicyApplication, sharePointListItemOperation, sharePointContentTypeOperation, sharePointFieldOperation, microsoftTeamsAdmin, hrSignal, microsoftTeamsDevice, microsoftTeamsAnalytics, informationWorkerProtection, campaign, dlpEndpoint, airInvestigation, quarantine, microsoftForms, applicationAudit, complianceSupervisionExchange, customerKeyServiceEncryption, officeNative, mipAutoLabelSharePointItem, mipAutoLabelSharePointPolicyLocation, microsoftTeamsShifts, secureScore, mipAutoLabelExchangeItem, cortanaBriefing, search, wdatpAlerts, powerPlatformAdminDlp, powerPlatformAdminEnvironment, mdatpAudit, sensitivityLabelPolicyMatch, sensitivityLabelAction, sensitivityLabeledFileAction, attackSim, airManualInvestigation, securityComplianceRBAC, userTraining, airAdminActionInvestigation, mstic, physicalBadgingSignal, teamsEasyApprovals, aipDiscover, aipSensitivityLabelAction, aipProtectionAction, aipFileDeleted, aipHeartBeat, mcasAlerts, onPremisesFileShareScannerDlp, onPremisesSharePointScannerDlp, exchangeSearch, sharePointSearch, privacyDataMinimization, labelAnalyticsAggregate, myAnalyticsSettings, securityComplianceUserChange, complianceDLPExchangeClassification, complianceDLPEndpoint, mipExactDataMatch, msdeResponseActions, msdeGeneralSettings, msdeIndicatorsSettings, ms365DCustomDetection, msdeRolesSettings, mapgAlerts, mapgPolicy, mapgRemediation, privacyRemediationAction, privacyDigestEmail, mipAutoLabelSimulationProgress, mipAutoLabelSimulationCompletion, mipAutoLabelProgressFeedback, dlpSensitiveInformationType, mipAutoLabelSimulationStatistics, largeContentMetadata, microsoft365Group, cdpMlInferencingResult, filteringMailMetadata, cdpClassificationMailItem, cdpClassificationDocument, officeScriptsRunAction, filteringPostMailDeliveryAction, cdpUnifiedFeedback, tenantAllowBlockList, consumptionResource, healthcareSignal, dlpImportResult, cdpCompliancePolicyExecution, multiStageDisposition, privacyDataMatch, filteringDocMetadata, filteringEmailFeatures, powerBIDlp, filteringUrlInfo, filteringAttachmentInfo, coreReportingSettings, complianceConnector, powerPlatformLockboxResourceAccessRequest, powerPlatformLockboxResourceCommand, cdpPredictiveCodingLabel, cdpCompliancePolicyUserFeedback, webpageActivityEndpoint, omePortal, cmImprovementActionChange, filteringUrlClick, mipLabelAnalyticsAuditRecord, filteringEntityEvent, filteringRuleHits, filteringMailSubmission, labelExplorer, microsoftManagedServicePlatform, powerPlatformServiceActivity, scorePlatformGenericAuditRecord, filteringTimeTravelDocMetadata, alert, alertStatus, alertIncident, incidentStatus, case, caseInvestigation, recordsManagement, privacyRemediation, dataShareOperation, cdpDlpSensitive, ehrConnector, filteringMailGradingResult, publicFolder, privacyTenantAuditHistoryRecord, aipScannerDiscoverEvent, eduDataLakeDownloadOperation, m365ComplianceConnector, microsoftGraphDataConnectOperation, microsoftPurview, filteringEmailContentFeatures, powerPagesSite, powerAppsResource, plannerPlan, plannerCopyPlan, plannerTask, plannerRoster, plannerPlanList, plannerTaskList, plannerTenantSettings, projectForTheWebProject, projectForTheWebTask, projectForTheWebRoadmap, projectForTheWebRoadmapItem, projectForTheWebProjectSettings, projectForTheWebRoadmapSettings, quarantineMetadata, microsoftTodoAudit, timeTravelFilteringDocMetadata, teamsQuarantineMetadata, sharePointAppPermissionOperation, microsoftTeamsSensitivityLabelAction, filteringTeamsMetadata, filteringTeamsUrlInfo, filteringTeamsPostDeliveryAction, mdcAssessments, mdcRegulatoryComplianceStandards, mdcRegulatoryComplianceControls, mdcRegulatoryComplianceAssessments, mdcSecurityConnectors, mdaDataSecuritySignal, vivaGoals, filteringRuntimeInfo, attackSimAdmin, microsoftGraphDataConnectConsent, filteringAtpDetonationInfo, privacyPortal, managedTenants, unifiedSimulationMatchedItem, unifiedSimulationSummary, updateQuarantineMetadata, ms365DSuppressionRule, purviewDataMapOperation, filteringUrlPostClickAction, irmUserDefinedDetectionSignal, teamsUpdates, plannerRosterSensitivityLabel, ms365DIncident, filteringDelistingMetadata, complianceDLPSharePointClassificationExtended, microsoftDefenderForIdentityAudit, supervisoryReviewDayXInsight, defenderExpertsforXDRAdmin, cdpEdgeBlockedMessage, hostedRpa, cdpContentExplorerAggregateRecord, cdpHygieneAttachmentInfo, cdpHygieneSummary, cdpPostMailDeliveryAction, cdpEmailFeatures, cdpHygieneUrlInfo, cdpUrlClick, cdpPackageManagerHygieneEvent, filteringDocScan, timeTravelFilteringDocScan, mapgOnboard, unknownFutureValue. func (m *AuditLogQuery) SetRecordTypeFilters(value []AuditLogRecordType)() { err := m.GetBackingStore().Set("recordTypeFilters", value) if err != nil { diff --git a/models/shifts_role_definition.go b/models/shifts_role_definition.go index 7f90363c39b..aa0e126a35f 100644 --- a/models/shifts_role_definition.go +++ b/models/shifts_role_definition.go @@ -19,7 +19,7 @@ func NewShiftsRoleDefinition()(*ShiftsRoleDefinition) { func CreateShiftsRoleDefinitionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewShiftsRoleDefinition(), nil } -// GetDescription gets the description property value. The description property +// GetDescription gets the description property value. The description of the role. // returns a *string when successful func (m *ShiftsRoleDefinition) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -31,7 +31,7 @@ func (m *ShiftsRoleDefinition) GetDescription()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the role. // returns a *string when successful func (m *ShiftsRoleDefinition) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -85,7 +85,7 @@ func (m *ShiftsRoleDefinition) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetShiftsRolePermissions gets the shiftsRolePermissions property value. The shiftsRolePermissions property +// GetShiftsRolePermissions gets the shiftsRolePermissions property value. The collection of role permissions within the role. // returns a []ShiftsRolePermissionable when successful func (m *ShiftsRoleDefinition) GetShiftsRolePermissions()([]ShiftsRolePermissionable) { val, err := m.GetBackingStore().Get("shiftsRolePermissions") @@ -129,21 +129,21 @@ func (m *ShiftsRoleDefinition) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetDescription sets the description property value. The description property +// SetDescription sets the description property value. The description of the role. func (m *ShiftsRoleDefinition) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the role. func (m *ShiftsRoleDefinition) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetShiftsRolePermissions sets the shiftsRolePermissions property value. The shiftsRolePermissions property +// SetShiftsRolePermissions sets the shiftsRolePermissions property value. The collection of role permissions within the role. func (m *ShiftsRoleDefinition) SetShiftsRolePermissions(value []ShiftsRolePermissionable)() { err := m.GetBackingStore().Set("shiftsRolePermissions", value) if err != nil { diff --git a/models/shifts_role_permission.go b/models/shifts_role_permission.go index 3f40a02ee3a..1e887c95f53 100644 --- a/models/shifts_role_permission.go +++ b/models/shifts_role_permission.go @@ -35,7 +35,7 @@ func (m *ShiftsRolePermission) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowedResourceActions gets the allowedResourceActions property value. The allowedResourceActions property +// GetAllowedResourceActions gets the allowedResourceActions property value. The permissions that are allowed for a role. Permissions that aren't in this collection are disabled. // returns a []string when successful func (m *ShiftsRolePermission) GetAllowedResourceActions()([]string) { val, err := m.GetBackingStore().Get("allowedResourceActions") @@ -125,7 +125,7 @@ func (m *ShiftsRolePermission) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAllowedResourceActions sets the allowedResourceActions property value. The allowedResourceActions property +// SetAllowedResourceActions sets the allowedResourceActions property value. The permissions that are allowed for a role. Permissions that aren't in this collection are disabled. func (m *ShiftsRolePermission) SetAllowedResourceActions(value []string)() { err := m.GetBackingStore().Set("allowedResourceActions", value) if err != nil { diff --git a/models/sign_in_activity.go b/models/sign_in_activity.go index f237b988ff0..ee57eef5153 100644 --- a/models/sign_in_activity.go +++ b/models/sign_in_activity.go @@ -117,7 +117,7 @@ func (m *SignInActivity) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetLastNonInteractiveSignInDateTime gets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. +// GetLastNonInteractiveSignInDateTime gets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. // returns a *Time when successful func (m *SignInActivity) GetLastNonInteractiveSignInDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastNonInteractiveSignInDateTime") @@ -264,7 +264,7 @@ func (m *SignInActivity) SetAdditionalData(value map[string]any)() { func (m *SignInActivity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetLastNonInteractiveSignInDateTime sets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. +// SetLastNonInteractiveSignInDateTime sets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. func (m *SignInActivity) SetLastNonInteractiveSignInDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastNonInteractiveSignInDateTime", value) if err != nil { diff --git a/models/simulation_attack_technique.go b/models/simulation_attack_technique.go index d2c7afc4c90..b21467eca49 100644 --- a/models/simulation_attack_technique.go +++ b/models/simulation_attack_technique.go @@ -13,10 +13,11 @@ const ( LINKTOMALWAREFILE_SIMULATIONATTACKTECHNIQUE UNKNOWNFUTUREVALUE_SIMULATIONATTACKTECHNIQUE OAUTHCONSENTGRANT_SIMULATIONATTACKTECHNIQUE + PHISHTRAINING_SIMULATIONATTACKTECHNIQUE ) func (i SimulationAttackTechnique) String() string { - return []string{"unknown", "credentialHarvesting", "attachmentMalware", "driveByUrl", "linkInAttachment", "linkToMalwareFile", "unknownFutureValue", "oAuthConsentGrant"}[i] + return []string{"unknown", "credentialHarvesting", "attachmentMalware", "driveByUrl", "linkInAttachment", "linkToMalwareFile", "unknownFutureValue", "oAuthConsentGrant", "phishTraining"}[i] } func ParseSimulationAttackTechnique(v string) (any, error) { result := UNKNOWN_SIMULATIONATTACKTECHNIQUE @@ -37,6 +38,8 @@ func ParseSimulationAttackTechnique(v string) (any, error) { result = UNKNOWNFUTUREVALUE_SIMULATIONATTACKTECHNIQUE case "oAuthConsentGrant": result = OAUTHCONSENTGRANT_SIMULATIONATTACKTECHNIQUE + case "phishTraining": + result = PHISHTRAINING_SIMULATIONATTACKTECHNIQUE default: return 0, errors.New("Unknown SimulationAttackTechnique value: " + v) } diff --git a/models/training.go b/models/training.go index 0f087789243..ef52619f463 100644 --- a/models/training.go +++ b/models/training.go @@ -56,6 +56,18 @@ func (m *Training) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f307 } return nil } +// GetCustomUrl gets the customUrl property value. The customUrl property +// returns a *string when successful +func (m *Training) GetCustomUrl()(*string) { + val, err := m.GetBackingStore().Get("customUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetDescription gets the description property value. The description for the training. // returns a *string when successful func (m *Training) GetDescription()(*string) { @@ -126,6 +138,16 @@ func (m *Training) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["customUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomUrl(val) + } + return nil + } res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -377,6 +399,12 @@ func (m *Training) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("customUrl", m.GetCustomUrl()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("description", m.GetDescription()) if err != nil { @@ -474,6 +502,13 @@ func (m *Training) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6 panic(err) } } +// SetCustomUrl sets the customUrl property value. The customUrl property +func (m *Training) SetCustomUrl(value *string)() { + err := m.GetBackingStore().Set("customUrl", value) + if err != nil { + panic(err) + } +} // SetDescription sets the description property value. The description for the training. func (m *Training) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) @@ -557,6 +592,7 @@ type Trainingable interface { GetAvailabilityStatus()(*TrainingAvailabilityStatus) GetCreatedBy()(EmailIdentityable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomUrl()(*string) GetDescription()(*string) GetDisplayName()(*string) GetDurationInMinutes()(*int32) @@ -571,6 +607,7 @@ type Trainingable interface { SetAvailabilityStatus(value *TrainingAvailabilityStatus)() SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomUrl(value *string)() SetDescription(value *string)() SetDisplayName(value *string)() SetDurationInMinutes(value *int32)() diff --git a/models/training_campaign.go b/models/training_campaign.go new file mode 100644 index 00000000000..e29c282fe8b --- /dev/null +++ b/models/training_campaign.go @@ -0,0 +1,484 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TrainingCampaign struct { + Entity +} +// NewTrainingCampaign instantiates a new TrainingCampaign and sets the default values. +func NewTrainingCampaign()(*TrainingCampaign) { + m := &TrainingCampaign{ + Entity: *NewEntity(), + } + return m +} +// CreateTrainingCampaignFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTrainingCampaignFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTrainingCampaign(), nil +} +// GetCampaignSchedule gets the campaignSchedule property value. The campaignSchedule property +// returns a CampaignScheduleable when successful +func (m *TrainingCampaign) GetCampaignSchedule()(CampaignScheduleable) { + val, err := m.GetBackingStore().Get("campaignSchedule") + if err != nil { + panic(err) + } + if val != nil { + return val.(CampaignScheduleable) + } + return nil +} +// GetCreatedBy gets the createdBy property value. The createdBy property +// returns a EmailIdentityable when successful +func (m *TrainingCampaign) GetCreatedBy()(EmailIdentityable) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(EmailIdentityable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *TrainingCampaign) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDescription gets the description property value. The description property +// returns a *string when successful +func (m *TrainingCampaign) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *TrainingCampaign) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEndUserNotificationSetting gets the endUserNotificationSetting property value. The endUserNotificationSetting property +// returns a EndUserNotificationSettingable when successful +func (m *TrainingCampaign) GetEndUserNotificationSetting()(EndUserNotificationSettingable) { + val, err := m.GetBackingStore().Get("endUserNotificationSetting") + if err != nil { + panic(err) + } + if val != nil { + return val.(EndUserNotificationSettingable) + } + return nil +} +// GetExcludedAccountTarget gets the excludedAccountTarget property value. The excludedAccountTarget property +// returns a AccountTargetContentable when successful +func (m *TrainingCampaign) GetExcludedAccountTarget()(AccountTargetContentable) { + val, err := m.GetBackingStore().Get("excludedAccountTarget") + if err != nil { + panic(err) + } + if val != nil { + return val.(AccountTargetContentable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TrainingCampaign) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["campaignSchedule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCampaignScheduleFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCampaignSchedule(val.(CampaignScheduleable)) + } + return nil + } + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val.(EmailIdentityable)) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["endUserNotificationSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEndUserNotificationSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEndUserNotificationSetting(val.(EndUserNotificationSettingable)) + } + return nil + } + res["excludedAccountTarget"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAccountTargetContentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetExcludedAccountTarget(val.(AccountTargetContentable)) + } + return nil + } + res["includedAccountTarget"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAccountTargetContentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetIncludedAccountTarget(val.(AccountTargetContentable)) + } + return nil + } + res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedBy(val.(EmailIdentityable)) + } + return nil + } + res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedDateTime(val) + } + return nil + } + res["report"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTrainingCampaignReportFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetReport(val.(TrainingCampaignReportable)) + } + return nil + } + res["trainingSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTrainingSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTrainingSetting(val.(TrainingSettingable)) + } + return nil + } + return res +} +// GetIncludedAccountTarget gets the includedAccountTarget property value. The includedAccountTarget property +// returns a AccountTargetContentable when successful +func (m *TrainingCampaign) GetIncludedAccountTarget()(AccountTargetContentable) { + val, err := m.GetBackingStore().Get("includedAccountTarget") + if err != nil { + panic(err) + } + if val != nil { + return val.(AccountTargetContentable) + } + return nil +} +// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +// returns a EmailIdentityable when successful +func (m *TrainingCampaign) GetLastModifiedBy()(EmailIdentityable) { + val, err := m.GetBackingStore().Get("lastModifiedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(EmailIdentityable) + } + return nil +} +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// returns a *Time when successful +func (m *TrainingCampaign) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastModifiedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetReport gets the report property value. The report property +// returns a TrainingCampaignReportable when successful +func (m *TrainingCampaign) GetReport()(TrainingCampaignReportable) { + val, err := m.GetBackingStore().Get("report") + if err != nil { + panic(err) + } + if val != nil { + return val.(TrainingCampaignReportable) + } + return nil +} +// GetTrainingSetting gets the trainingSetting property value. The trainingSetting property +// returns a TrainingSettingable when successful +func (m *TrainingCampaign) GetTrainingSetting()(TrainingSettingable) { + val, err := m.GetBackingStore().Get("trainingSetting") + if err != nil { + panic(err) + } + if val != nil { + return val.(TrainingSettingable) + } + return nil +} +// Serialize serializes information the current object +func (m *TrainingCampaign) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("campaignSchedule", m.GetCampaignSchedule()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + 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("endUserNotificationSetting", m.GetEndUserNotificationSetting()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("excludedAccountTarget", m.GetExcludedAccountTarget()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("includedAccountTarget", m.GetIncludedAccountTarget()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("lastModifiedBy", m.GetLastModifiedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("report", m.GetReport()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("trainingSetting", m.GetTrainingSetting()) + if err != nil { + return err + } + } + return nil +} +// SetCampaignSchedule sets the campaignSchedule property value. The campaignSchedule property +func (m *TrainingCampaign) SetCampaignSchedule(value CampaignScheduleable)() { + err := m.GetBackingStore().Set("campaignSchedule", value) + if err != nil { + panic(err) + } +} +// SetCreatedBy sets the createdBy property value. The createdBy property +func (m *TrainingCampaign) SetCreatedBy(value EmailIdentityable)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *TrainingCampaign) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. The description property +func (m *TrainingCampaign) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *TrainingCampaign) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetEndUserNotificationSetting sets the endUserNotificationSetting property value. The endUserNotificationSetting property +func (m *TrainingCampaign) SetEndUserNotificationSetting(value EndUserNotificationSettingable)() { + err := m.GetBackingStore().Set("endUserNotificationSetting", value) + if err != nil { + panic(err) + } +} +// SetExcludedAccountTarget sets the excludedAccountTarget property value. The excludedAccountTarget property +func (m *TrainingCampaign) SetExcludedAccountTarget(value AccountTargetContentable)() { + err := m.GetBackingStore().Set("excludedAccountTarget", value) + if err != nil { + panic(err) + } +} +// SetIncludedAccountTarget sets the includedAccountTarget property value. The includedAccountTarget property +func (m *TrainingCampaign) SetIncludedAccountTarget(value AccountTargetContentable)() { + err := m.GetBackingStore().Set("includedAccountTarget", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +func (m *TrainingCampaign) SetLastModifiedBy(value EmailIdentityable)() { + err := m.GetBackingStore().Set("lastModifiedBy", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +func (m *TrainingCampaign) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastModifiedDateTime", value) + if err != nil { + panic(err) + } +} +// SetReport sets the report property value. The report property +func (m *TrainingCampaign) SetReport(value TrainingCampaignReportable)() { + err := m.GetBackingStore().Set("report", value) + if err != nil { + panic(err) + } +} +// SetTrainingSetting sets the trainingSetting property value. The trainingSetting property +func (m *TrainingCampaign) SetTrainingSetting(value TrainingSettingable)() { + err := m.GetBackingStore().Set("trainingSetting", value) + if err != nil { + panic(err) + } +} +type TrainingCampaignable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCampaignSchedule()(CampaignScheduleable) + GetCreatedBy()(EmailIdentityable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDescription()(*string) + GetDisplayName()(*string) + GetEndUserNotificationSetting()(EndUserNotificationSettingable) + GetExcludedAccountTarget()(AccountTargetContentable) + GetIncludedAccountTarget()(AccountTargetContentable) + GetLastModifiedBy()(EmailIdentityable) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetReport()(TrainingCampaignReportable) + GetTrainingSetting()(TrainingSettingable) + SetCampaignSchedule(value CampaignScheduleable)() + SetCreatedBy(value EmailIdentityable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDescription(value *string)() + SetDisplayName(value *string)() + SetEndUserNotificationSetting(value EndUserNotificationSettingable)() + SetExcludedAccountTarget(value AccountTargetContentable)() + SetIncludedAccountTarget(value AccountTargetContentable)() + SetLastModifiedBy(value EmailIdentityable)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetReport(value TrainingCampaignReportable)() + SetTrainingSetting(value TrainingSettingable)() +} diff --git a/models/training_campaign_collection_response.go b/models/training_campaign_collection_response.go new file mode 100644 index 00000000000..06e9b81d1cd --- /dev/null +++ b/models/training_campaign_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TrainingCampaignCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewTrainingCampaignCollectionResponse instantiates a new TrainingCampaignCollectionResponse and sets the default values. +func NewTrainingCampaignCollectionResponse()(*TrainingCampaignCollectionResponse) { + m := &TrainingCampaignCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTrainingCampaignCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTrainingCampaignCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTrainingCampaignCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TrainingCampaignCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTrainingCampaignFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TrainingCampaignable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TrainingCampaignable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []TrainingCampaignable when successful +func (m *TrainingCampaignCollectionResponse) GetValue()([]TrainingCampaignable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TrainingCampaignable) + } + return nil +} +// Serialize serializes information the current object +func (m *TrainingCampaignCollectionResponse) 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 *TrainingCampaignCollectionResponse) SetValue(value []TrainingCampaignable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TrainingCampaignCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]TrainingCampaignable) + SetValue(value []TrainingCampaignable)() +} diff --git a/models/training_campaign_report.go b/models/training_campaign_report.go new file mode 100644 index 00000000000..60ce0063597 --- /dev/null +++ b/models/training_campaign_report.go @@ -0,0 +1,199 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TrainingCampaignReport struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTrainingCampaignReport instantiates a new TrainingCampaignReport and sets the default values. +func NewTrainingCampaignReport()(*TrainingCampaignReport) { + m := &TrainingCampaignReport{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTrainingCampaignReportFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTrainingCampaignReportFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTrainingCampaignReport(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TrainingCampaignReport) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TrainingCampaignReport) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCampaignUsers gets the campaignUsers property value. The campaignUsers property +// returns a []UserSimulationDetailsable when successful +func (m *TrainingCampaignReport) GetCampaignUsers()([]UserSimulationDetailsable) { + val, err := m.GetBackingStore().Get("campaignUsers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]UserSimulationDetailsable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TrainingCampaignReport) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["campaignUsers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUserSimulationDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]UserSimulationDetailsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(UserSimulationDetailsable) + } + } + m.SetCampaignUsers(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["overview"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTrainingCampaignReportOverviewFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOverview(val.(TrainingCampaignReportOverviewable)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TrainingCampaignReport) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOverview gets the overview property value. The overview property +// returns a TrainingCampaignReportOverviewable when successful +func (m *TrainingCampaignReport) GetOverview()(TrainingCampaignReportOverviewable) { + val, err := m.GetBackingStore().Get("overview") + if err != nil { + panic(err) + } + if val != nil { + return val.(TrainingCampaignReportOverviewable) + } + return nil +} +// Serialize serializes information the current object +func (m *TrainingCampaignReport) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetCampaignUsers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCampaignUsers())) + for i, v := range m.GetCampaignUsers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("campaignUsers", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("overview", m.GetOverview()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TrainingCampaignReport) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TrainingCampaignReport) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCampaignUsers sets the campaignUsers property value. The campaignUsers property +func (m *TrainingCampaignReport) SetCampaignUsers(value []UserSimulationDetailsable)() { + err := m.GetBackingStore().Set("campaignUsers", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TrainingCampaignReport) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOverview sets the overview property value. The overview property +func (m *TrainingCampaignReport) SetOverview(value TrainingCampaignReportOverviewable)() { + err := m.GetBackingStore().Set("overview", value) + if err != nil { + panic(err) + } +} +type TrainingCampaignReportable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCampaignUsers()([]UserSimulationDetailsable) + GetOdataType()(*string) + GetOverview()(TrainingCampaignReportOverviewable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCampaignUsers(value []UserSimulationDetailsable)() + SetOdataType(value *string)() + SetOverview(value TrainingCampaignReportOverviewable)() +} diff --git a/models/training_campaign_report_overview.go b/models/training_campaign_report_overview.go new file mode 100644 index 00000000000..6235ecfec09 --- /dev/null +++ b/models/training_campaign_report_overview.go @@ -0,0 +1,224 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TrainingCampaignReportOverview struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTrainingCampaignReportOverview instantiates a new TrainingCampaignReportOverview and sets the default values. +func NewTrainingCampaignReportOverview()(*TrainingCampaignReportOverview) { + m := &TrainingCampaignReportOverview{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTrainingCampaignReportOverviewFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTrainingCampaignReportOverviewFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTrainingCampaignReportOverview(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TrainingCampaignReportOverview) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TrainingCampaignReportOverview) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TrainingCampaignReportOverview) 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["trainingModuleCompletion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTrainingEventsContentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTrainingModuleCompletion(val.(TrainingEventsContentable)) + } + return nil + } + res["trainingNotificationDeliveryStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTrainingNotificationDeliveryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTrainingNotificationDeliveryStatus(val.(TrainingNotificationDeliveryable)) + } + return nil + } + res["userCompletionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUserTrainingCompletionSummaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUserCompletionStatus(val.(UserTrainingCompletionSummaryable)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TrainingCampaignReportOverview) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTrainingModuleCompletion gets the trainingModuleCompletion property value. The trainingModuleCompletion property +// returns a TrainingEventsContentable when successful +func (m *TrainingCampaignReportOverview) GetTrainingModuleCompletion()(TrainingEventsContentable) { + val, err := m.GetBackingStore().Get("trainingModuleCompletion") + if err != nil { + panic(err) + } + if val != nil { + return val.(TrainingEventsContentable) + } + return nil +} +// GetTrainingNotificationDeliveryStatus gets the trainingNotificationDeliveryStatus property value. The trainingNotificationDeliveryStatus property +// returns a TrainingNotificationDeliveryable when successful +func (m *TrainingCampaignReportOverview) GetTrainingNotificationDeliveryStatus()(TrainingNotificationDeliveryable) { + val, err := m.GetBackingStore().Get("trainingNotificationDeliveryStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(TrainingNotificationDeliveryable) + } + return nil +} +// GetUserCompletionStatus gets the userCompletionStatus property value. The userCompletionStatus property +// returns a UserTrainingCompletionSummaryable when successful +func (m *TrainingCampaignReportOverview) GetUserCompletionStatus()(UserTrainingCompletionSummaryable) { + val, err := m.GetBackingStore().Get("userCompletionStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(UserTrainingCompletionSummaryable) + } + return nil +} +// Serialize serializes information the current object +func (m *TrainingCampaignReportOverview) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("trainingModuleCompletion", m.GetTrainingModuleCompletion()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("trainingNotificationDeliveryStatus", m.GetTrainingNotificationDeliveryStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("userCompletionStatus", m.GetUserCompletionStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TrainingCampaignReportOverview) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TrainingCampaignReportOverview) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TrainingCampaignReportOverview) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTrainingModuleCompletion sets the trainingModuleCompletion property value. The trainingModuleCompletion property +func (m *TrainingCampaignReportOverview) SetTrainingModuleCompletion(value TrainingEventsContentable)() { + err := m.GetBackingStore().Set("trainingModuleCompletion", value) + if err != nil { + panic(err) + } +} +// SetTrainingNotificationDeliveryStatus sets the trainingNotificationDeliveryStatus property value. The trainingNotificationDeliveryStatus property +func (m *TrainingCampaignReportOverview) SetTrainingNotificationDeliveryStatus(value TrainingNotificationDeliveryable)() { + err := m.GetBackingStore().Set("trainingNotificationDeliveryStatus", value) + if err != nil { + panic(err) + } +} +// SetUserCompletionStatus sets the userCompletionStatus property value. The userCompletionStatus property +func (m *TrainingCampaignReportOverview) SetUserCompletionStatus(value UserTrainingCompletionSummaryable)() { + err := m.GetBackingStore().Set("userCompletionStatus", value) + if err != nil { + panic(err) + } +} +type TrainingCampaignReportOverviewable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetTrainingModuleCompletion()(TrainingEventsContentable) + GetTrainingNotificationDeliveryStatus()(TrainingNotificationDeliveryable) + GetUserCompletionStatus()(UserTrainingCompletionSummaryable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetTrainingModuleCompletion(value TrainingEventsContentable)() + SetTrainingNotificationDeliveryStatus(value TrainingNotificationDeliveryable)() + SetUserCompletionStatus(value UserTrainingCompletionSummaryable)() +} diff --git a/models/training_notification_delivery.go b/models/training_notification_delivery.go new file mode 100644 index 00000000000..1f9aad47522 --- /dev/null +++ b/models/training_notification_delivery.go @@ -0,0 +1,224 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TrainingNotificationDelivery struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTrainingNotificationDelivery instantiates a new TrainingNotificationDelivery and sets the default values. +func NewTrainingNotificationDelivery()(*TrainingNotificationDelivery) { + m := &TrainingNotificationDelivery{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTrainingNotificationDeliveryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTrainingNotificationDeliveryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTrainingNotificationDelivery(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TrainingNotificationDelivery) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TrainingNotificationDelivery) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFailedMessageDeliveryCount gets the failedMessageDeliveryCount property value. The failedMessageDeliveryCount property +// returns a *int32 when successful +func (m *TrainingNotificationDelivery) GetFailedMessageDeliveryCount()(*int32) { + val, err := m.GetBackingStore().Get("failedMessageDeliveryCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TrainingNotificationDelivery) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["failedMessageDeliveryCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetFailedMessageDeliveryCount(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["resolvedTargetsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetResolvedTargetsCount(val) + } + return nil + } + res["successfulMessageDeliveryCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSuccessfulMessageDeliveryCount(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TrainingNotificationDelivery) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetResolvedTargetsCount gets the resolvedTargetsCount property value. The resolvedTargetsCount property +// returns a *int32 when successful +func (m *TrainingNotificationDelivery) GetResolvedTargetsCount()(*int32) { + val, err := m.GetBackingStore().Get("resolvedTargetsCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetSuccessfulMessageDeliveryCount gets the successfulMessageDeliveryCount property value. The successfulMessageDeliveryCount property +// returns a *int32 when successful +func (m *TrainingNotificationDelivery) GetSuccessfulMessageDeliveryCount()(*int32) { + val, err := m.GetBackingStore().Get("successfulMessageDeliveryCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *TrainingNotificationDelivery) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("failedMessageDeliveryCount", m.GetFailedMessageDeliveryCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("resolvedTargetsCount", m.GetResolvedTargetsCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("successfulMessageDeliveryCount", m.GetSuccessfulMessageDeliveryCount()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TrainingNotificationDelivery) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TrainingNotificationDelivery) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetFailedMessageDeliveryCount sets the failedMessageDeliveryCount property value. The failedMessageDeliveryCount property +func (m *TrainingNotificationDelivery) SetFailedMessageDeliveryCount(value *int32)() { + err := m.GetBackingStore().Set("failedMessageDeliveryCount", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TrainingNotificationDelivery) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetResolvedTargetsCount sets the resolvedTargetsCount property value. The resolvedTargetsCount property +func (m *TrainingNotificationDelivery) SetResolvedTargetsCount(value *int32)() { + err := m.GetBackingStore().Set("resolvedTargetsCount", value) + if err != nil { + panic(err) + } +} +// SetSuccessfulMessageDeliveryCount sets the successfulMessageDeliveryCount property value. The successfulMessageDeliveryCount property +func (m *TrainingNotificationDelivery) SetSuccessfulMessageDeliveryCount(value *int32)() { + err := m.GetBackingStore().Set("successfulMessageDeliveryCount", value) + if err != nil { + panic(err) + } +} +type TrainingNotificationDeliveryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFailedMessageDeliveryCount()(*int32) + GetOdataType()(*string) + GetResolvedTargetsCount()(*int32) + GetSuccessfulMessageDeliveryCount()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFailedMessageDeliveryCount(value *int32)() + SetOdataType(value *string)() + SetResolvedTargetsCount(value *int32)() + SetSuccessfulMessageDeliveryCount(value *int32)() +} diff --git a/models/unified_role_assignment_schedule.go b/models/unified_role_assignment_schedule.go index 6ff4c85f7e2..cafb4411dde 100644 --- a/models/unified_role_assignment_schedule.go +++ b/models/unified_role_assignment_schedule.go @@ -19,7 +19,7 @@ func NewUnifiedRoleAssignmentSchedule()(*UnifiedRoleAssignmentSchedule) { func CreateUnifiedRoleAssignmentScheduleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUnifiedRoleAssignmentSchedule(), nil } -// GetActivatedUsing gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// GetActivatedUsing gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a UnifiedRoleEligibilityScheduleable when successful func (m *UnifiedRoleAssignmentSchedule) GetActivatedUsing()(UnifiedRoleEligibilityScheduleable) { val, err := m.GetBackingStore().Get("activatedUsing") @@ -31,7 +31,7 @@ func (m *UnifiedRoleAssignmentSchedule) GetActivatedUsing()(UnifiedRoleEligibili } return nil } -// GetAssignmentType gets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). +// GetAssignmentType gets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). // returns a *string when successful func (m *UnifiedRoleAssignmentSchedule) GetAssignmentType()(*string) { val, err := m.GetBackingStore().Get("assignmentType") @@ -89,7 +89,7 @@ func (m *UnifiedRoleAssignmentSchedule) GetFieldDeserializers()(map[string]func( } return res } -// GetMemberType gets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). +// GetMemberType gets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). // returns a *string when successful func (m *UnifiedRoleAssignmentSchedule) GetMemberType()(*string) { val, err := m.GetBackingStore().Get("memberType") @@ -145,21 +145,21 @@ func (m *UnifiedRoleAssignmentSchedule) Serialize(writer i878a80d2330e89d2689638 } return nil } -// SetActivatedUsing sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// SetActivatedUsing sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. func (m *UnifiedRoleAssignmentSchedule) SetActivatedUsing(value UnifiedRoleEligibilityScheduleable)() { err := m.GetBackingStore().Set("activatedUsing", value) if err != nil { panic(err) } } -// SetAssignmentType sets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). +// SetAssignmentType sets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). func (m *UnifiedRoleAssignmentSchedule) SetAssignmentType(value *string)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { panic(err) } } -// SetMemberType sets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). +// SetMemberType sets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). func (m *UnifiedRoleAssignmentSchedule) SetMemberType(value *string)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { diff --git a/models/unified_role_assignment_schedule_instance.go b/models/unified_role_assignment_schedule_instance.go index eb2bcfc89b4..5ec4dfd324e 100644 --- a/models/unified_role_assignment_schedule_instance.go +++ b/models/unified_role_assignment_schedule_instance.go @@ -20,7 +20,7 @@ func NewUnifiedRoleAssignmentScheduleInstance()(*UnifiedRoleAssignmentScheduleIn func CreateUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUnifiedRoleAssignmentScheduleInstance(), nil } -// GetActivatedUsing gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// GetActivatedUsing gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleInstanceable when successful func (m *UnifiedRoleAssignmentScheduleInstance) GetActivatedUsing()(UnifiedRoleEligibilityScheduleInstanceable) { val, err := m.GetBackingStore().Get("activatedUsing") @@ -32,7 +32,7 @@ func (m *UnifiedRoleAssignmentScheduleInstance) GetActivatedUsing()(UnifiedRoleE } return nil } -// GetAssignmentType gets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). +// GetAssignmentType gets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). // returns a *string when successful func (m *UnifiedRoleAssignmentScheduleInstance) GetAssignmentType()(*string) { val, err := m.GetBackingStore().Get("assignmentType") @@ -132,7 +132,7 @@ func (m *UnifiedRoleAssignmentScheduleInstance) GetFieldDeserializers()(map[stri } return res } -// GetMemberType gets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). +// GetMemberType gets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). // returns a *string when successful func (m *UnifiedRoleAssignmentScheduleInstance) GetMemberType()(*string) { val, err := m.GetBackingStore().Get("memberType") @@ -144,7 +144,7 @@ func (m *UnifiedRoleAssignmentScheduleInstance) GetMemberType()(*string) { } return nil } -// GetRoleAssignmentOriginId gets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. +// GetRoleAssignmentOriginId gets the roleAssignmentOriginId property value. The identifier of the role assignment in Microsoft Entra ID. // returns a *string when successful func (m *UnifiedRoleAssignmentScheduleInstance) GetRoleAssignmentOriginId()(*string) { val, err := m.GetBackingStore().Get("roleAssignmentOriginId") @@ -230,14 +230,14 @@ func (m *UnifiedRoleAssignmentScheduleInstance) Serialize(writer i878a80d2330e89 } return nil } -// SetActivatedUsing sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// SetActivatedUsing sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. func (m *UnifiedRoleAssignmentScheduleInstance) SetActivatedUsing(value UnifiedRoleEligibilityScheduleInstanceable)() { err := m.GetBackingStore().Set("activatedUsing", value) if err != nil { panic(err) } } -// SetAssignmentType sets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). +// SetAssignmentType sets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne). func (m *UnifiedRoleAssignmentScheduleInstance) SetAssignmentType(value *string)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { @@ -251,14 +251,14 @@ func (m *UnifiedRoleAssignmentScheduleInstance) SetEndDateTime(value *i336074805 panic(err) } } -// SetMemberType sets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). +// SetMemberType sets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). func (m *UnifiedRoleAssignmentScheduleInstance) SetMemberType(value *string)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { panic(err) } } -// SetRoleAssignmentOriginId sets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. +// SetRoleAssignmentOriginId sets the roleAssignmentOriginId property value. The identifier of the role assignment in Microsoft Entra ID. func (m *UnifiedRoleAssignmentScheduleInstance) SetRoleAssignmentOriginId(value *string)() { err := m.GetBackingStore().Set("roleAssignmentOriginId", value) if err != nil { diff --git a/models/unified_role_assignment_schedule_request.go b/models/unified_role_assignment_schedule_request.go index 3390f689aab..63ed4df503e 100644 --- a/models/unified_role_assignment_schedule_request.go +++ b/models/unified_role_assignment_schedule_request.go @@ -33,7 +33,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) GetAction()(*string) { } return nil } -// GetActivatedUsing gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// GetActivatedUsing gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleable when successful func (m *UnifiedRoleAssignmentScheduleRequest) GetActivatedUsing()(UnifiedRoleEligibilityScheduleable) { val, err := m.GetBackingStore().Get("activatedUsing") @@ -283,7 +283,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) GetJustification()(*string) { } return nil } -// GetPrincipal gets the principal property value. The principal that's getting a role assignment through the request. Supports $expand. +// GetPrincipal gets the principal property value. The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful func (m *UnifiedRoleAssignmentScheduleRequest) GetPrincipal()(DirectoryObjectable) { val, err := m.GetBackingStore().Get("principal") @@ -307,7 +307,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) GetPrincipalId()(*string) { } return nil } -// GetRoleDefinition gets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// GetRoleDefinition gets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleDefinitionable when successful func (m *UnifiedRoleAssignmentScheduleRequest) GetRoleDefinition()(UnifiedRoleDefinitionable) { val, err := m.GetBackingStore().Get("roleDefinition") @@ -343,7 +343,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) GetScheduleInfo()(RequestSchedule } return nil } -// GetTargetSchedule gets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// GetTargetSchedule gets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleAssignmentScheduleable when successful func (m *UnifiedRoleAssignmentScheduleRequest) GetTargetSchedule()(UnifiedRoleAssignmentScheduleable) { val, err := m.GetBackingStore().Get("targetSchedule") @@ -490,7 +490,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) SetAction(value *string)() { panic(err) } } -// SetActivatedUsing sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// SetActivatedUsing sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. func (m *UnifiedRoleAssignmentScheduleRequest) SetActivatedUsing(value UnifiedRoleEligibilityScheduleable)() { err := m.GetBackingStore().Set("activatedUsing", value) if err != nil { @@ -539,7 +539,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) SetJustification(value *string)() panic(err) } } -// SetPrincipal sets the principal property value. The principal that's getting a role assignment through the request. Supports $expand. +// SetPrincipal sets the principal property value. The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. func (m *UnifiedRoleAssignmentScheduleRequest) SetPrincipal(value DirectoryObjectable)() { err := m.GetBackingStore().Set("principal", value) if err != nil { @@ -553,7 +553,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) SetPrincipalId(value *string)() { panic(err) } } -// SetRoleDefinition sets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// SetRoleDefinition sets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. func (m *UnifiedRoleAssignmentScheduleRequest) SetRoleDefinition(value UnifiedRoleDefinitionable)() { err := m.GetBackingStore().Set("roleDefinition", value) if err != nil { @@ -574,7 +574,7 @@ func (m *UnifiedRoleAssignmentScheduleRequest) SetScheduleInfo(value RequestSche panic(err) } } -// SetTargetSchedule sets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// SetTargetSchedule sets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. func (m *UnifiedRoleAssignmentScheduleRequest) SetTargetSchedule(value UnifiedRoleAssignmentScheduleable)() { err := m.GetBackingStore().Set("targetSchedule", value) if err != nil { diff --git a/models/user_training_completion_summary.go b/models/user_training_completion_summary.go new file mode 100644 index 00000000000..798bb58fc95 --- /dev/null +++ b/models/user_training_completion_summary.go @@ -0,0 +1,298 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type UserTrainingCompletionSummary struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewUserTrainingCompletionSummary instantiates a new UserTrainingCompletionSummary and sets the default values. +func NewUserTrainingCompletionSummary()(*UserTrainingCompletionSummary) { + m := &UserTrainingCompletionSummary{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateUserTrainingCompletionSummaryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUserTrainingCompletionSummaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUserTrainingCompletionSummary(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *UserTrainingCompletionSummary) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *UserTrainingCompletionSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCompletedUsersCount gets the completedUsersCount property value. The completedUsersCount property +// returns a *int32 when successful +func (m *UserTrainingCompletionSummary) GetCompletedUsersCount()(*int32) { + val, err := m.GetBackingStore().Get("completedUsersCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UserTrainingCompletionSummary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["completedUsersCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCompletedUsersCount(val) + } + return nil + } + res["inProgressUsersCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetInProgressUsersCount(val) + } + return nil + } + res["notCompletedUsersCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetNotCompletedUsersCount(val) + } + return nil + } + res["notStartedUsersCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetNotStartedUsersCount(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["previouslyAssignedUsersCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPreviouslyAssignedUsersCount(val) + } + return nil + } + return res +} +// GetInProgressUsersCount gets the inProgressUsersCount property value. The inProgressUsersCount property +// returns a *int32 when successful +func (m *UserTrainingCompletionSummary) GetInProgressUsersCount()(*int32) { + val, err := m.GetBackingStore().Get("inProgressUsersCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetNotCompletedUsersCount gets the notCompletedUsersCount property value. The notCompletedUsersCount property +// returns a *int32 when successful +func (m *UserTrainingCompletionSummary) GetNotCompletedUsersCount()(*int32) { + val, err := m.GetBackingStore().Get("notCompletedUsersCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetNotStartedUsersCount gets the notStartedUsersCount property value. The notStartedUsersCount property +// returns a *int32 when successful +func (m *UserTrainingCompletionSummary) GetNotStartedUsersCount()(*int32) { + val, err := m.GetBackingStore().Get("notStartedUsersCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *UserTrainingCompletionSummary) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPreviouslyAssignedUsersCount gets the previouslyAssignedUsersCount property value. The previouslyAssignedUsersCount property +// returns a *int32 when successful +func (m *UserTrainingCompletionSummary) GetPreviouslyAssignedUsersCount()(*int32) { + val, err := m.GetBackingStore().Get("previouslyAssignedUsersCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *UserTrainingCompletionSummary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("completedUsersCount", m.GetCompletedUsersCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("inProgressUsersCount", m.GetInProgressUsersCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("notCompletedUsersCount", m.GetNotCompletedUsersCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("notStartedUsersCount", m.GetNotStartedUsersCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("previouslyAssignedUsersCount", m.GetPreviouslyAssignedUsersCount()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *UserTrainingCompletionSummary) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *UserTrainingCompletionSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCompletedUsersCount sets the completedUsersCount property value. The completedUsersCount property +func (m *UserTrainingCompletionSummary) SetCompletedUsersCount(value *int32)() { + err := m.GetBackingStore().Set("completedUsersCount", value) + if err != nil { + panic(err) + } +} +// SetInProgressUsersCount sets the inProgressUsersCount property value. The inProgressUsersCount property +func (m *UserTrainingCompletionSummary) SetInProgressUsersCount(value *int32)() { + err := m.GetBackingStore().Set("inProgressUsersCount", value) + if err != nil { + panic(err) + } +} +// SetNotCompletedUsersCount sets the notCompletedUsersCount property value. The notCompletedUsersCount property +func (m *UserTrainingCompletionSummary) SetNotCompletedUsersCount(value *int32)() { + err := m.GetBackingStore().Set("notCompletedUsersCount", value) + if err != nil { + panic(err) + } +} +// SetNotStartedUsersCount sets the notStartedUsersCount property value. The notStartedUsersCount property +func (m *UserTrainingCompletionSummary) SetNotStartedUsersCount(value *int32)() { + err := m.GetBackingStore().Set("notStartedUsersCount", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserTrainingCompletionSummary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPreviouslyAssignedUsersCount sets the previouslyAssignedUsersCount property value. The previouslyAssignedUsersCount property +func (m *UserTrainingCompletionSummary) SetPreviouslyAssignedUsersCount(value *int32)() { + err := m.GetBackingStore().Set("previouslyAssignedUsersCount", value) + if err != nil { + panic(err) + } +} +type UserTrainingCompletionSummaryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCompletedUsersCount()(*int32) + GetInProgressUsersCount()(*int32) + GetNotCompletedUsersCount()(*int32) + GetNotStartedUsersCount()(*int32) + GetOdataType()(*string) + GetPreviouslyAssignedUsersCount()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCompletedUsersCount(value *int32)() + SetInProgressUsersCount(value *int32)() + SetNotCompletedUsersCount(value *int32)() + SetNotStartedUsersCount(value *int32)() + SetOdataType(value *string)() + SetPreviouslyAssignedUsersCount(value *int32)() +} diff --git a/models/windows_universal_app_x_app_assignment_settings.go b/models/windows_universal_app_x_app_assignment_settings.go index 98044527a48..fc347495bb4 100644 --- a/models/windows_universal_app_x_app_assignment_settings.go +++ b/models/windows_universal_app_x_app_assignment_settings.go @@ -38,7 +38,7 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) GetFieldDeserializers()(map[ } return res } -// GetUseDeviceContext gets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. +// GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. // returns a *bool when successful func (m *WindowsUniversalAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") @@ -64,7 +64,7 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) Serialize(writer i878a80d233 } return nil } -// SetUseDeviceContext sets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. +// SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. func (m *WindowsUniversalAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/models/windowsupdates/applicable_content.go b/models/windowsupdates/applicable_content.go index b2a6cc83393..b409c46c328 100644 --- a/models/windowsupdates/applicable_content.go +++ b/models/windowsupdates/applicable_content.go @@ -40,7 +40,7 @@ func (m *ApplicableContent) GetAdditionalData()(map[string]any) { func (m *ApplicableContent) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCatalogEntry gets the catalogEntry property value. The catalogEntry property +// GetCatalogEntry gets the catalogEntry property value. Catalog entry for the update or content. // returns a CatalogEntryable when successful func (m *ApplicableContent) GetCatalogEntry()(CatalogEntryable) { val, err := m.GetBackingStore().Get("catalogEntry") @@ -52,6 +52,18 @@ func (m *ApplicableContent) GetCatalogEntry()(CatalogEntryable) { } return nil } +// GetCatalogEntryId gets the catalogEntryId property value. ID of the catalog entry for the applicable content. +// returns a *string when successful +func (m *ApplicableContent) GetCatalogEntryId()(*string) { + val, err := m.GetBackingStore().Get("catalogEntryId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *ApplicableContent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -66,6 +78,16 @@ func (m *ApplicableContent) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["catalogEntryId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCatalogEntryId(val) + } + return nil + } res["matchedDevices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateApplicableContentDeviceMatchFromDiscriminatorValue) if err != nil { @@ -94,7 +116,7 @@ func (m *ApplicableContent) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetMatchedDevices gets the matchedDevices property value. The matchedDevices property +// GetMatchedDevices gets the matchedDevices property value. Collection of devices and recommendations for applicable catalog content. // returns a []ApplicableContentDeviceMatchable when successful func (m *ApplicableContent) GetMatchedDevices()([]ApplicableContentDeviceMatchable) { val, err := m.GetBackingStore().Get("matchedDevices") @@ -126,6 +148,12 @@ func (m *ApplicableContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err := writer.WriteStringValue("catalogEntryId", m.GetCatalogEntryId()) + if err != nil { + return err + } + } if m.GetMatchedDevices() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMatchedDevices())) for i, v := range m.GetMatchedDevices() { @@ -163,14 +191,21 @@ func (m *ApplicableContent) SetAdditionalData(value map[string]any)() { func (m *ApplicableContent) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCatalogEntry sets the catalogEntry property value. The catalogEntry property +// SetCatalogEntry sets the catalogEntry property value. Catalog entry for the update or content. func (m *ApplicableContent) SetCatalogEntry(value CatalogEntryable)() { err := m.GetBackingStore().Set("catalogEntry", value) if err != nil { panic(err) } } -// SetMatchedDevices sets the matchedDevices property value. The matchedDevices property +// SetCatalogEntryId sets the catalogEntryId property value. ID of the catalog entry for the applicable content. +func (m *ApplicableContent) SetCatalogEntryId(value *string)() { + err := m.GetBackingStore().Set("catalogEntryId", value) + if err != nil { + panic(err) + } +} +// SetMatchedDevices sets the matchedDevices property value. Collection of devices and recommendations for applicable catalog content. func (m *ApplicableContent) SetMatchedDevices(value []ApplicableContentDeviceMatchable)() { err := m.GetBackingStore().Set("matchedDevices", value) if err != nil { @@ -190,10 +225,12 @@ type ApplicableContentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCatalogEntry()(CatalogEntryable) + GetCatalogEntryId()(*string) GetMatchedDevices()([]ApplicableContentDeviceMatchable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCatalogEntry(value CatalogEntryable)() + SetCatalogEntryId(value *string)() SetMatchedDevices(value []ApplicableContentDeviceMatchable)() SetOdataType(value *string)() } diff --git a/models/windowsupdates/applicable_content_collection_response.go b/models/windowsupdates/applicable_content_collection_response.go new file mode 100644 index 00000000000..a98fc7b8cad --- /dev/null +++ b/models/windowsupdates/applicable_content_collection_response.go @@ -0,0 +1,89 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ApplicableContentCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewApplicableContentCollectionResponse instantiates a new ApplicableContentCollectionResponse and sets the default values. +func NewApplicableContentCollectionResponse()(*ApplicableContentCollectionResponse) { + m := &ApplicableContentCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApplicableContentCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApplicableContentCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApplicableContentCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApplicableContentCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApplicableContentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApplicableContentable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApplicableContentable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApplicableContentable when successful +func (m *ApplicableContentCollectionResponse) GetValue()([]ApplicableContentable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApplicableContentable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApplicableContentCollectionResponse) 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 *ApplicableContentCollectionResponse) SetValue(value []ApplicableContentable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApplicableContentCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApplicableContentable) + SetValue(value []ApplicableContentable)() +} diff --git a/models/windowsupdates/applicable_content_device_match_collection_response.go b/models/windowsupdates/applicable_content_device_match_collection_response.go new file mode 100644 index 00000000000..c325479b85e --- /dev/null +++ b/models/windowsupdates/applicable_content_device_match_collection_response.go @@ -0,0 +1,89 @@ +package windowsupdates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ApplicableContentDeviceMatchCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewApplicableContentDeviceMatchCollectionResponse instantiates a new ApplicableContentDeviceMatchCollectionResponse and sets the default values. +func NewApplicableContentDeviceMatchCollectionResponse()(*ApplicableContentDeviceMatchCollectionResponse) { + m := &ApplicableContentDeviceMatchCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApplicableContentDeviceMatchCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApplicableContentDeviceMatchCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApplicableContentDeviceMatchCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApplicableContentDeviceMatchCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApplicableContentDeviceMatchFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApplicableContentDeviceMatchable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApplicableContentDeviceMatchable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApplicableContentDeviceMatchable when successful +func (m *ApplicableContentDeviceMatchCollectionResponse) GetValue()([]ApplicableContentDeviceMatchable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApplicableContentDeviceMatchable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApplicableContentDeviceMatchCollectionResponse) 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 *ApplicableContentDeviceMatchCollectionResponse) SetValue(value []ApplicableContentDeviceMatchable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApplicableContentDeviceMatchCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApplicableContentDeviceMatchable) + SetValue(value []ApplicableContentDeviceMatchable)() +} diff --git a/models/windowsupdates/deployment_audience.go b/models/windowsupdates/deployment_audience.go index 15c403dfc70..ef9d2abe6a2 100644 --- a/models/windowsupdates/deployment_audience.go +++ b/models/windowsupdates/deployment_audience.go @@ -20,7 +20,7 @@ func NewDeploymentAudience()(*DeploymentAudience) { func CreateDeploymentAudienceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDeploymentAudience(), nil } -// GetApplicableContent gets the applicableContent property value. The applicableContent property +// GetApplicableContent gets the applicableContent property value. Content eligible to deploy to devices in the audience. Not nullable. Read-only. // returns a []ApplicableContentable when successful func (m *DeploymentAudience) GetApplicableContent()([]ApplicableContentable) { val, err := m.GetBackingStore().Get("applicableContent") @@ -154,7 +154,7 @@ func (m *DeploymentAudience) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetApplicableContent sets the applicableContent property value. The applicableContent property +// SetApplicableContent sets the applicableContent property value. Content eligible to deploy to devices in the audience. Not nullable. Read-only. func (m *DeploymentAudience) SetApplicableContent(value []ApplicableContentable)() { err := m.GetBackingStore().Set("applicableContent", value) if err != nil { diff --git a/monitoring/alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_change_alert_records_portal_notification_as_sent_post_request_body.go b/monitoring/alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_change_alert_records_portal_notification_as_sent_post_request_body.go new file mode 100644 index 00000000000..d1223de60b9 --- /dev/null +++ b/monitoring/alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_change_alert_records_portal_notification_as_sent_post_request_body.go @@ -0,0 +1,119 @@ +package monitoring + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody instantiates a new AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody and sets the default values. +func NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody()(*AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) { + m := &AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAlertRecordIds gets the alertRecordIds property value. The alertRecordIds property +// returns a []string when successful +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetAlertRecordIds()([]string) { + val, err := m.GetBackingStore().Get("alertRecordIds") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["alertRecordIds"] = 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.SetAlertRecordIds(res) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAlertRecordIds() != nil { + err := writer.WriteCollectionOfStringValues("alertRecordIds", m.GetAlertRecordIds()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAlertRecordIds sets the alertRecordIds property value. The alertRecordIds property +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) SetAlertRecordIds(value []string)() { + err := m.GetBackingStore().Set("alertRecordIds", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAlertRecordIds()([]string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAlertRecordIds(value []string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/monitoring/alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_request_builder.go b/monitoring/alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_request_builder.go new file mode 100644 index 00000000000..7bab1d2f93e --- /dev/null +++ b/monitoring/alert_records_microsoft_graph_device_management_change_alert_records_portal_notification_as_sent_request_builder.go @@ -0,0 +1,68 @@ +package monitoring + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder provides operations to call the changeAlertRecordsPortalNotificationAsSent method. +type AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal instantiates a new AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder and sets the default values. +func NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + m := &AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/monitoring/alertRecords/microsoft.graph.deviceManagement.changeAlertRecordsPortalNotificationAsSent", pathParameters), + } + return m +} +// NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder instantiates a new AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder and sets the default values. +func NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action changeAlertRecordsPortalNotificationAsSent +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) Post(ctx context.Context, body AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyable, requestConfiguration *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action changeAlertRecordsPortalNotificationAsSent +// returns a *RequestInformation when successful +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) ToPostRequestInformation(ctx context.Context, body AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentChangeAlertRecordsPortalNotificationAsSentPostRequestBodyable, requestConfiguration *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder when successful +func (m *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) WithUrl(rawUrl string)(*AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + return NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/monitoring/alert_records_request_builder.go b/monitoring/alert_records_request_builder.go index 0f16b4afc2d..3b47e0952aa 100644 --- a/monitoring/alert_records_request_builder.go +++ b/monitoring/alert_records_request_builder.go @@ -99,6 +99,11 @@ func (m *AlertRecordsRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(i2edb12705e6a63a8a0fb3f8c7a11f4ab12f4be764e61fa1094f401595fb171bf.AlertRecordCollectionResponseable), nil } +// MicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSent provides operations to call the changeAlertRecordsPortalNotificationAsSent method. +// returns a *AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder when successful +func (m *AlertRecordsRequestBuilder) MicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSent()(*AlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilder) { + return NewAlertRecordsMicrosoftGraphDeviceManagementChangeAlertRecordsPortalNotificationAsSentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MicrosoftGraphDeviceManagementGetPortalNotifications provides operations to call the getPortalNotifications method. // returns a *AlertRecordsMicrosoftGraphDeviceManagementGetPortalNotificationsRequestBuilder when successful func (m *AlertRecordsRequestBuilder) MicrosoftGraphDeviceManagementGetPortalNotifications()(*AlertRecordsMicrosoftGraphDeviceManagementGetPortalNotificationsRequestBuilder) { diff --git a/networkaccess/connectivity_branches_branch_site_item_request_builder.go b/networkaccess/connectivity_branches_branch_site_item_request_builder.go index 84c40f8bd3b..eb9af1fba8c 100644 --- a/networkaccess/connectivity_branches_branch_site_item_request_builder.go +++ b/networkaccess/connectivity_branches_branch_site_item_request_builder.go @@ -60,7 +60,7 @@ func NewConnectivityBranchesBranchSiteItemRequestBuilder(rawUrl string, requestA return NewConnectivityBranchesBranchSiteItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -90,7 +90,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ForwardingProfiles()( return NewConnectivityBranchesItemForwardingProfilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve information about a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a BranchSiteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -114,7 +114,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Get(ctx context.Conte return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable), nil } // Patch update the configuration or properties of a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a BranchSiteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -138,7 +138,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Patch(ctx context.Con return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable), nil } // ToDeleteRequestInformation delete a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}", m.BaseRequestBuilder.PathParameters) @@ -150,7 +150,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToDeleteRequestInform return requestInfo, nil } // ToGetRequestInformation retrieve information about a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -165,7 +165,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPatchRequestInformation update the configuration or properties of a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}", m.BaseRequestBuilder.PathParameters) @@ -181,7 +181,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToPatchRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesBranchSiteItemRequestBuilder when successful func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesBranchSiteItemRequestBuilder) { return NewConnectivityBranchesBranchSiteItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_count_request_builder.go b/networkaccess/connectivity_branches_count_request_builder.go index 5dcfc299343..7da6f269b14 100644 --- a/networkaccess/connectivity_branches_count_request_builder.go +++ b/networkaccess/connectivity_branches_count_request_builder.go @@ -40,7 +40,7 @@ func NewConnectivityBranchesCountRequestBuilder(rawUrl string, requestAdapter i2 return NewConnectivityBranchesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ConnectivityBranchesCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ConnectivityBranchesCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesCountRequestBuilder when successful func (m *ConnectivityBranchesCountRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesCountRequestBuilder) { return NewConnectivityBranchesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go index 1e76e60a4ad..b6e5b023738 100644 --- a/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_links_connectivity_configuration_link_item_request_builder.go @@ -55,7 +55,7 @@ func NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfig return NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property links for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfi return nil } // Get list of connectivity configurations for deviceLink objects. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ConnectivityConfigurationLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, error) { @@ -93,7 +93,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfi return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable), nil } // Patch update the navigation property links in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ConnectivityConfigurationLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, error) { @@ -114,7 +114,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfi return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable), nil } // ToDeleteRequestInformation delete navigation property links for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration/links/{connectivityConfigurationLink%2Did}", m.BaseRequestBuilder.PathParameters) @@ -126,7 +126,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfi return requestInfo, nil } // ToGetRequestInformation list of connectivity configurations for deviceLink objects. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,7 +141,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfi return requestInfo, nil } // ToPatchRequestInformation update the navigation property links in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration/links/{connectivityConfigurationLink%2Did}", m.BaseRequestBuilder.PathParameters) @@ -157,7 +157,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) { return NewConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go index c4d4fa46d6f..1f45c3c50c6 100644 --- a/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_links_count_request_builder.go @@ -40,7 +40,7 @@ func NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilde return NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder) { return NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go index 0ec05962fad..41a06a07261 100644 --- a/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_links_request_builder.go @@ -47,7 +47,7 @@ type ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostReq Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByConnectivityConfigurationLinkId provides operations to manage the links property of the microsoft.graph.networkaccess.branchConnectivityConfiguration entity. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) ByConnectivityConfigurationLinkId(connectivityConfigurationLinkId string)(*ConnectivityBranchesItemConnectivityConfigurationLinksConnectivityConfigurationLinkItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) C return NewConnectivityBranchesItemConnectivityConfigurationLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get list of connectivity configurations for deviceLink objects. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ConnectivityConfigurationLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) G return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkCollectionResponseable), nil } // Post create new navigation property to links for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ConnectivityConfigurationLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) Post(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, error) { @@ -120,7 +120,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) P return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable), nil } // ToGetRequestInformation list of connectivity configurations for deviceLink objects. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) T return requestInfo, nil } // ToPostRequestInformation create new navigation property to links for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConnectivityConfigurationLinkable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration/links", m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder when successful func (m *ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder) { return NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go b/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go index ae3e221d658..6117cd96506 100644 --- a/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go +++ b/networkaccess/connectivity_branches_item_connectivity_configuration_request_builder.go @@ -55,7 +55,7 @@ func NewConnectivityBranchesItemConnectivityConfigurationRequestBuilder(rawUrl s return NewConnectivityBranchesItemConnectivityConfigurationRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property connectivityConfiguration for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Delete return nil } // Get retrieve the IPSec tunnel configuration required to establish a bidirectional communication link between your organization's router and the Microsoft gateway. This information is vital for configuring your router (customer premise equipment) after creating a deviceLink. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a BranchConnectivityConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -101,7 +101,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Links( return NewConnectivityBranchesItemConnectivityConfigurationLinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property connectivityConfiguration in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a BranchConnectivityConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, error) { @@ -122,7 +122,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) Patch( return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable), nil } // ToDeleteRequestInformation delete navigation property connectivityConfiguration for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration", m.BaseRequestBuilder.PathParameters) @@ -134,7 +134,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToDele return requestInfo, nil } // ToGetRequestInformation retrieve the IPSec tunnel configuration required to establish a bidirectional communication link between your organization's router and the Microsoft gateway. This information is vital for configuring your router (customer premise equipment) after creating a deviceLink. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +149,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToGetR return requestInfo, nil } // ToPatchRequestInformation update the navigation property connectivityConfiguration in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchConnectivityConfigurationable, requestConfiguration *ConnectivityBranchesItemConnectivityConfigurationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/connectivityConfiguration", m.BaseRequestBuilder.PathParameters) @@ -165,7 +165,7 @@ func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) ToPatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder when successful func (m *ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemConnectivityConfigurationRequestBuilder) { return NewConnectivityBranchesItemConnectivityConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_device_links_count_request_builder.go b/networkaccess/connectivity_branches_item_device_links_count_request_builder.go index 2febc2198fc..dc1d74d4201 100644 --- a/networkaccess/connectivity_branches_item_device_links_count_request_builder.go +++ b/networkaccess/connectivity_branches_item_device_links_count_request_builder.go @@ -40,7 +40,7 @@ func NewConnectivityBranchesItemDeviceLinksCountRequestBuilder(rawUrl string, re return NewConnectivityBranchesItemDeviceLinksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemDeviceLinksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ConnectivityBranchesItemDeviceLinksCountRequestBuilder) Get(ctx context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemDeviceLinksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ConnectivityBranchesItemDeviceLinksCountRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemDeviceLinksCountRequestBuilder when successful func (m *ConnectivityBranchesItemDeviceLinksCountRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemDeviceLinksCountRequestBuilder) { return NewConnectivityBranchesItemDeviceLinksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go b/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go index cb59013fdf0..e81309fd33c 100644 --- a/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go @@ -55,7 +55,7 @@ func NewConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder(rawUrl s return NewConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete removes the link between the branch and the CPE device, effectively removing the connection and associated configuration between them. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -75,7 +75,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Delete return nil } // Get retrieve the device link associated with a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a DeviceLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Get(ct return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable), nil } // Patch update the device link associated with a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a DeviceLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -123,7 +123,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Patch( return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable), nil } // ToDeleteRequestInformation removes the link between the branch and the CPE device, effectively removing the connection and associated configuration between them. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/deviceLinks/{deviceLink%2Did}", m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToDele return requestInfo, nil } // ToGetRequestInformation retrieve the device link associated with a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -150,7 +150,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToGetR return requestInfo, nil } // ToPatchRequestInformation update the device link associated with a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/deviceLinks/{deviceLink%2Did}", m.BaseRequestBuilder.PathParameters) @@ -166,7 +166,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToPatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder when successful func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) { return NewConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_device_links_request_builder.go b/networkaccess/connectivity_branches_item_device_links_request_builder.go index 478fb69e108..cad006016ab 100644 --- a/networkaccess/connectivity_branches_item_device_links_request_builder.go +++ b/networkaccess/connectivity_branches_item_device_links_request_builder.go @@ -47,7 +47,7 @@ type ConnectivityBranchesItemDeviceLinksRequestBuilderPostRequestConfiguration s Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceLinkId provides operations to manage the deviceLinks property of the microsoft.graph.networkaccess.branchSite entity. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder when successful func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ByDeviceLinkId(deviceLinkId string)(*ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Count()(*Connectivit return NewConnectivityBranchesItemDeviceLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of device links associated with a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a DeviceLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,7 +102,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Get(ctx context.Cont return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkCollectionResponseable), nil } // Post create a branch site with associated device links. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a DeviceLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -126,7 +126,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Post(ctx context.Con return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable), nil } // ToGetRequestInformation retrieve a list of device links associated with a specific branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,7 +141,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPostRequestInformation create a branch site with associated device links. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, requestConfiguration *ConnectivityBranchesItemDeviceLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/deviceLinks", m.BaseRequestBuilder.PathParameters) @@ -157,7 +157,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemDeviceLinksRequestBuilder when successful func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemDeviceLinksRequestBuilder) { return NewConnectivityBranchesItemDeviceLinksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_count_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_count_request_builder.go index e09eeaa22eb..b8882e4370b 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_count_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_count_request_builder.go @@ -40,7 +40,7 @@ func NewConnectivityBranchesItemForwardingProfilesCountRequestBuilder(rawUrl str return NewConnectivityBranchesItemForwardingProfilesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesCountRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go index d686492db0b..519838c4b20 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go @@ -55,7 +55,7 @@ func NewConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBu return NewConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property forwardingProfiles for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB return nil } // Get each forwarding profile associated with a branch site is specified. Supports $expand. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ForwardingProfileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, error) { @@ -93,7 +93,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable), nil } // Patch update the navigation property forwardingProfiles in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ForwardingProfileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, error) { @@ -124,7 +124,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB return NewConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property forwardingProfiles for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}", m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB return requestInfo, nil } // ToGetRequestInformation each forwarding profile associated with a branch site is specified. Supports $expand. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB return requestInfo, nil } // ToPatchRequestInformation update the navigation property forwardingProfiles in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}", m.BaseRequestBuilder.PathParameters) @@ -167,7 +167,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_count_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_count_request_builder.go index 076ebbec152..2b1c11e3f62 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_count_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_count_request_builder.go @@ -40,7 +40,7 @@ func NewConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilde return NewConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go index dd0fde29da9..39717aea5f4 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go @@ -41,7 +41,7 @@ func NewConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestB return NewConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderInternal(urlParams, requestAdapter) } // Get policy. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a Policyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Policyable, error) { @@ -62,7 +62,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequest return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Policyable), nil } // ToGetRequestInformation policy. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -77,7 +77,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go index 1db6771a099..f234432126c 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go @@ -55,7 +55,7 @@ func NewConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequ return NewConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property policies for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq return nil } // Get traffic forwarding policies associated with this profile. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a PolicyLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, error) { @@ -93,7 +93,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable), nil } // Patch update the navigation property policies in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a PolicyLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, error) { @@ -119,7 +119,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq return NewConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property policies for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies/{policyLink%2Did}", m.BaseRequestBuilder.PathParameters) @@ -131,7 +131,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq return requestInfo, nil } // ToGetRequestInformation traffic forwarding policies associated with this profile. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,7 +146,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq return requestInfo, nil } // ToPatchRequestInformation update the navigation property policies in networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies/{policyLink%2Did}", m.BaseRequestBuilder.PathParameters) @@ -162,7 +162,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go index 2af89c17efa..5c6468e4bf6 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go @@ -47,7 +47,7 @@ type ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderPostReq Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPolicyLinkId provides operations to manage the policies property of the microsoft.graph.networkaccess.profile entity. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) ByPolicyLinkId(policyLinkId string)(*ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) C return NewConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get traffic forwarding policies associated with this profile. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a PolicyLinkCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) G return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkCollectionResponseable), nil } // Post create new navigation property to policies for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a PolicyLinkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) Post(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderPostRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, error) { @@ -120,7 +120,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) P return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable), nil } // ToGetRequestInformation traffic forwarding policies associated with this profile. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) T return requestInfo, nil } // ToPostRequestInformation create new navigation property to policies for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles/{forwardingProfile%2Did}/policies", m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_service_principal_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_service_principal_request_builder.go index 417561a9ec3..25483c4266e 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_service_principal_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_service_principal_request_builder.go @@ -41,7 +41,7 @@ func NewConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBui return NewConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilderInternal(urlParams, requestAdapter) } // Get get servicePrincipal from networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -62,7 +62,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get servicePrincipal from networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -77,7 +77,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesItemServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go index 7d01ada8658..0eb8d49c41e 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go @@ -47,7 +47,7 @@ type ConnectivityBranchesItemForwardingProfilesRequestBuilderPostRequestConfigur Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByForwardingProfileId provides operations to manage the forwardingProfiles property of the microsoft.graph.networkaccess.branchSite entity. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) ByForwardingProfileId(forwardingProfileId string)(*ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Count()(*Conn return NewConnectivityBranchesItemForwardingProfilesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of traffic forwarding profiles associated with a branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ForwardingProfileCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,7 +102,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Get(ctx conte return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileCollectionResponseable), nil } // Post create new navigation property to forwardingProfiles for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a ForwardingProfileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Post(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesRequestBuilderPostRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, error) { @@ -123,7 +123,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Post(ctx cont return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable), nil } // ToGetRequestInformation retrieve a list of traffic forwarding profiles associated with a branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -138,7 +138,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPostRequestInformation create new navigation property to forwardingProfiles for networkAccess -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, requestConfiguration *ConnectivityBranchesItemForwardingProfilesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/networkAccess/connectivity/branches/{branchSite%2Did}/forwardingProfiles", m.BaseRequestBuilder.PathParameters) @@ -154,7 +154,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesItemForwardingProfilesRequestBuilder when successful func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesItemForwardingProfilesRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/networkaccess/connectivity_branches_request_builder.go b/networkaccess/connectivity_branches_request_builder.go index fa3f82ce234..726a824d607 100644 --- a/networkaccess/connectivity_branches_request_builder.go +++ b/networkaccess/connectivity_branches_request_builder.go @@ -47,7 +47,7 @@ type ConnectivityBranchesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByBranchSiteId provides operations to manage the branches property of the microsoft.graph.networkaccess.connectivity entity. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesBranchSiteItemRequestBuilder when successful func (m *ConnectivityBranchesRequestBuilder) ByBranchSiteId(branchSiteId string)(*ConnectivityBranchesBranchSiteItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ConnectivityBranchesRequestBuilder) Count()(*ConnectivityBranchesCountR return NewConnectivityBranchesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of branches within a tenant connected to the Global Secure Access services. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a BranchSiteCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,7 +102,7 @@ func (m *ConnectivityBranchesRequestBuilder) Get(ctx context.Context, requestCon return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteCollectionResponseable), nil } // Post create a new branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a BranchSiteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -126,7 +126,7 @@ func (m *ConnectivityBranchesRequestBuilder) Post(ctx context.Context, body i43e return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable), nil } // ToGetRequestInformation retrieve a list of branches within a tenant connected to the Global Secure Access services. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,7 +141,7 @@ func (m *ConnectivityBranchesRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create a new branch. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *RequestInformation when successful func (m *ConnectivityBranchesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, requestConfiguration *ConnectivityBranchesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/networkAccess/connectivity/branches", m.BaseRequestBuilder.PathParameters) @@ -157,7 +157,7 @@ func (m *ConnectivityBranchesRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Branches API is deprecated and will stop returning data on January 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess +// Deprecated: The Branches API is deprecated and will stop returning data on March 20, 2024. Please use the new Remote Network API. as of 2022-06/PrivatePreview:NetworkAccess // returns a *ConnectivityBranchesRequestBuilder when successful func (m *ConnectivityBranchesRequestBuilder) WithUrl(rawUrl string)(*ConnectivityBranchesRequestBuilder) { return NewConnectivityBranchesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/onpremisespublishingprofiles/item_connector_groups_request_builder.go b/onpremisespublishingprofiles/item_connector_groups_request_builder.go index b5475d473b3..bdb92da0c8a 100644 --- a/onpremisespublishingprofiles/item_connector_groups_request_builder.go +++ b/onpremisespublishingprofiles/item_connector_groups_request_builder.go @@ -99,12 +99,12 @@ func (m *ItemConnectorGroupsRequestBuilder) Get(ctx context.Context, requestConf } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupCollectionResponseable), nil } -// Post create a new connectorGroup. +// Post create a connectorGroup object. // returns a ConnectorGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [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 { @@ -136,7 +136,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. // returns a *RequestInformation when successful func (m *ItemConnectorGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, requestConfiguration *ItemConnectorGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups", m.BaseRequestBuilder.PathParameters) diff --git a/policies/federated_token_validation_policy_request_builder.go b/policies/federated_token_validation_policy_request_builder.go index bf948a9b800..48409fe981a 100644 --- a/policies/federated_token_validation_policy_request_builder.go +++ b/policies/federated_token_validation_policy_request_builder.go @@ -18,7 +18,7 @@ type FederatedTokenValidationPolicyRequestBuilderDeleteRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// FederatedTokenValidationPolicyRequestBuilderGetQueryParameters get federatedTokenValidationPolicy from policies +// FederatedTokenValidationPolicyRequestBuilderGetQueryParameters get a list of the federatedTokenValidationPolicy objects and their properties. type FederatedTokenValidationPolicyRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,9 +70,12 @@ func (m *FederatedTokenValidationPolicyRequestBuilder) Delete(ctx context.Contex } return nil } -// Get get federatedTokenValidationPolicy from policies +// Get get a list of the federatedTokenValidationPolicy objects and their properties. // returns a FederatedTokenValidationPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/policyroot-list-federatedtokenvalidationpolicy?view=graph-rest-1.0 func (m *FederatedTokenValidationPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *FederatedTokenValidationPolicyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FederatedTokenValidationPolicyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -90,9 +93,12 @@ func (m *FederatedTokenValidationPolicyRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FederatedTokenValidationPolicyable), nil } -// Patch update the navigation property federatedTokenValidationPolicy in policies +// Patch update the properties of a federatedTokenValidationPolicy object. // returns a FederatedTokenValidationPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/federatedtokenvalidationpolicy-update?view=graph-rest-1.0 func (m *FederatedTokenValidationPolicyRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FederatedTokenValidationPolicyable, requestConfiguration *FederatedTokenValidationPolicyRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FederatedTokenValidationPolicyable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -121,7 +127,7 @@ func (m *FederatedTokenValidationPolicyRequestBuilder) ToDeleteRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get federatedTokenValidationPolicy from policies +// ToGetRequestInformation get a list of the federatedTokenValidationPolicy objects and their properties. // returns a *RequestInformation when successful func (m *FederatedTokenValidationPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FederatedTokenValidationPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +141,7 @@ func (m *FederatedTokenValidationPolicyRequestBuilder) ToGetRequestInformation(c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the navigation property federatedTokenValidationPolicy in policies +// ToPatchRequestInformation update the properties of a federatedTokenValidationPolicy object. // returns a *RequestInformation when successful func (m *FederatedTokenValidationPolicyRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FederatedTokenValidationPolicyable, requestConfiguration *FederatedTokenValidationPolicyRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/policies/federatedTokenValidationPolicy", m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/cloud_p_c_role_assignments_request_builder.go b/rolemanagement/cloud_p_c_role_assignments_request_builder.go index dbf471b0307..f6eeb95cc9c 100644 --- a/rolemanagement/cloud_p_c_role_assignments_request_builder.go +++ b/rolemanagement/cloud_p_c_role_assignments_request_builder.go @@ -81,7 +81,7 @@ func (m *CloudPCRoleAssignmentsRequestBuilder) Count()(*CloudPCRoleAssignmentsCo // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 func (m *CloudPCRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *CloudPCRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/rolemanagement/device_management_role_assignments_request_builder.go b/rolemanagement/device_management_role_assignments_request_builder.go index f7fe1c2d7e4..87bc3134784 100644 --- a/rolemanagement/device_management_role_assignments_request_builder.go +++ b/rolemanagement/device_management_role_assignments_request_builder.go @@ -81,7 +81,7 @@ func (m *DeviceManagementRoleAssignmentsRequestBuilder) Count()(*DeviceManagemen // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 func (m *DeviceManagementRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceManagementRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/rolemanagement/directory_role_assignment_schedule_instances_item_activated_using_request_builder.go b/rolemanagement/directory_role_assignment_schedule_instances_item_activated_using_request_builder.go index 54e21019a3a..8fc8ececd84 100644 --- a/rolemanagement/directory_role_assignment_schedule_instances_item_activated_using_request_builder.go +++ b/rolemanagement/directory_role_assignment_schedule_instances_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. type DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleInstanceable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleInstanceable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignment_schedule_requests_item_activated_using_request_builder.go b/rolemanagement/directory_role_assignment_schedule_requests_item_activated_using_request_builder.go index 91171bcb872..81c3c06f38d 100644 --- a/rolemanagement/directory_role_assignment_schedule_requests_item_activated_using_request_builder.go +++ b/rolemanagement/directory_role_assignment_schedule_requests_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. type DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignment_schedule_requests_item_principal_request_builder.go b/rolemanagement/directory_role_assignment_schedule_requests_item_principal_request_builder.go index acfa2c6c8df..755312e6b22 100644 --- a/rolemanagement/directory_role_assignment_schedule_requests_item_principal_request_builder.go +++ b/rolemanagement/directory_role_assignment_schedule_requests_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters the principal that's getting a role assignment through the request. Supports $expand. +// DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. type DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder(rawUr urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get the principal that's getting a role assignment through the request. Supports $expand. +// Get the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } -// ToGetRequestInformation the principal that's getting a role assignment through the request. Supports $expand. +// ToGetRequestInformation the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignment_schedule_requests_item_role_definition_request_builder.go b/rolemanagement/directory_role_assignment_schedule_requests_item_role_definition_request_builder.go index 2c5483bdf7c..876fdc5960b 100644 --- a/rolemanagement/directory_role_assignment_schedule_requests_item_role_definition_request_builder.go +++ b/rolemanagement/directory_role_assignment_schedule_requests_item_role_definition_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. type DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderInternal(urlParams, requestAdapter) } -// Get detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// Get detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleDefinitionable), nil } -// ToGetRequestInformation detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// ToGetRequestInformation detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignment_schedule_requests_item_target_schedule_request_builder.go b/rolemanagement/directory_role_assignment_schedule_requests_item_target_schedule_request_builder.go index b8c8a6ca682..20a86a53166 100644 --- a/rolemanagement/directory_role_assignment_schedule_requests_item_target_schedule_request_builder.go +++ b/rolemanagement/directory_role_assignment_schedule_requests_item_target_schedule_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. type DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderInternal(urlParams, requestAdapter) } -// Get the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// Get the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleAssignmentScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentScheduleable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentScheduleable), nil } -// ToGetRequestInformation the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// ToGetRequestInformation the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignment_schedules_item_activated_using_request_builder.go b/rolemanagement/directory_role_assignment_schedules_item_activated_using_request_builder.go index ea8f4538a46..21e796ffff8 100644 --- a/rolemanagement/directory_role_assignment_schedules_item_activated_using_request_builder.go +++ b/rolemanagement/directory_role_assignment_schedules_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. type DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a UnifiedRoleEligibilityScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) Get(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/enterprise_apps_item_role_assignment_schedule_instances_item_activated_using_request_builder.go b/rolemanagement/enterprise_apps_item_role_assignment_schedule_instances_item_activated_using_request_builder.go index 346f150f2cc..e45f487b8a6 100644 --- a/rolemanagement/enterprise_apps_item_role_assignment_schedule_instances_item_activated_using_request_builder.go +++ b/rolemanagement/enterprise_apps_item_role_assignment_schedule_instances_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. type EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingReque urlParams["request-raw-url"] = rawUrl return NewEnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleInstanceable, error) { @@ -60,7 +60,7 @@ func (m *EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleInstanceable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_activated_using_request_builder.go b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_activated_using_request_builder.go index 2bae5b1ea79..93fbabe8e22 100644 --- a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_activated_using_request_builder.go +++ b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingReques urlParams["request-raw-url"] = rawUrl return NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable, error) { @@ -60,7 +60,7 @@ func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingReque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_principal_request_builder.go b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_principal_request_builder.go index 655ebd2c098..b148a004c76 100644 --- a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_principal_request_builder.go +++ b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters the principal that's getting a role assignment through the request. Supports $expand. +// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuil urlParams["request-raw-url"] = rawUrl return NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get the principal that's getting a role assignment through the request. Supports $expand. +// Get the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } -// ToGetRequestInformation the principal that's getting a role assignment through the request. Supports $expand. +// ToGetRequestInformation the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a *RequestInformation when successful func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_role_definition_request_builder.go b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_role_definition_request_builder.go index 358e7bdcf6e..ed14b5d429e 100644 --- a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_role_definition_request_builder.go +++ b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_role_definition_request_builder.go @@ -11,7 +11,7 @@ import ( type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionReques urlParams["request-raw-url"] = rawUrl return NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderInternal(urlParams, requestAdapter) } -// Get detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// Get detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionReque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleDefinitionable), nil } -// ToGetRequestInformation detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// ToGetRequestInformation detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_target_schedule_request_builder.go b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_target_schedule_request_builder.go index 07f9caae842..a326c5dbbbc 100644 --- a/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_target_schedule_request_builder.go +++ b/rolemanagement/enterprise_apps_item_role_assignment_schedule_requests_item_target_schedule_request_builder.go @@ -11,7 +11,7 @@ import ( type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. type EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleReques urlParams["request-raw-url"] = rawUrl return NewEnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderInternal(urlParams, requestAdapter) } -// Get the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// Get the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleAssignmentScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder) Get(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentScheduleable, error) { @@ -60,7 +60,7 @@ func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleReque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentScheduleable), nil } -// ToGetRequestInformation the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// ToGetRequestInformation the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/enterprise_apps_item_role_assignment_schedules_item_activated_using_request_builder.go b/rolemanagement/enterprise_apps_item_role_assignment_schedules_item_activated_using_request_builder.go index d1b0fc570b7..22c90fe67d7 100644 --- a/rolemanagement/enterprise_apps_item_role_assignment_schedules_item_activated_using_request_builder.go +++ b/rolemanagement/enterprise_apps_item_role_assignment_schedules_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. type EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilde urlParams["request-raw-url"] = rawUrl return NewEnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a UnifiedRoleEligibilityScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable, error) { @@ -60,7 +60,7 @@ func (m *EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a *RequestInformation when successful func (m *EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EnterpriseAppsItemRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignment_schedule_instances_item_activated_using_request_builder.go b/rolemanagement/entitlement_management_role_assignment_schedule_instances_item_activated_using_request_builder.go index eea0b1dacfd..e85b81d2971 100644 --- a/rolemanagement/entitlement_management_role_assignment_schedule_instances_item_activated_using_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignment_schedule_instances_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. type EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRe urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleInstanceable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleInstanceable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleInstancesItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_activated_using_request_builder.go b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_activated_using_request_builder.go index 2f9eef3f5f7..bce2c1cf25c 100644 --- a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_activated_using_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. type EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingReq urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a UnifiedRoleEligibilityScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_principal_request_builder.go b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_principal_request_builder.go index ce1e7c42068..a74e5746ba5 100644 --- a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_principal_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters the principal that's getting a role assignment through the request. Supports $expand. +// EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. type EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestB urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get the principal that's getting a role assignment through the request. Supports $expand. +// Get the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } -// ToGetRequestInformation the principal that's getting a role assignment through the request. Supports $expand. +// ToGetRequestInformation the principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_role_definition_request_builder.go b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_role_definition_request_builder.go index be4220c7b1e..898f40b2643 100644 --- a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_role_definition_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_role_definition_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. type EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionReq urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderInternal(urlParams, requestAdapter) } -// Get detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// Get detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleDefinitionable), nil } -// ToGetRequestInformation detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand. +// ToGetRequestInformation detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_target_schedule_request_builder.go b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_target_schedule_request_builder.go index 3eb2ce18484..2d9728e78d7 100644 --- a/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_target_schedule_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignment_schedule_requests_item_target_schedule_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. type EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleReq urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderInternal(urlParams, requestAdapter) } -// Get the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// Get the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a UnifiedRoleAssignmentScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentScheduleable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentScheduleable), nil } -// ToGetRequestInformation the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand. +// ToGetRequestInformation the schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentScheduleRequestsItemTargetScheduleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignment_schedules_item_activated_using_request_builder.go b/rolemanagement/entitlement_management_role_assignment_schedules_item_activated_using_request_builder.go index 8f464d7b9c4..f150853f2c9 100644 --- a/rolemanagement/entitlement_management_role_assignment_schedules_item_activated_using_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignment_schedules_item_activated_using_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. type EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBui urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilderInternal(urlParams, requestAdapter) } -// Get if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// Get if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a UnifiedRoleEligibilityScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleEligibilityScheduleable), nil } -// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. +// ToGetRequestInformation if the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentSchedulesItemActivatedUsingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/attack_simulation_request_builder.go b/security/attack_simulation_request_builder.go index a3adde11405..d79978f87ab 100644 --- a/security/attack_simulation_request_builder.go +++ b/security/attack_simulation_request_builder.go @@ -185,6 +185,11 @@ func (m *AttackSimulationRequestBuilder) ToPatchRequestInformation(ctx context.C } return requestInfo, nil } +// TrainingCampaigns provides operations to manage the trainingCampaigns property of the microsoft.graph.attackSimulationRoot entity. +// returns a *AttackSimulationTrainingCampaignsRequestBuilder when successful +func (m *AttackSimulationRequestBuilder) TrainingCampaigns()(*AttackSimulationTrainingCampaignsRequestBuilder) { + return NewAttackSimulationTrainingCampaignsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Trainings provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity. // returns a *AttackSimulationTrainingsRequestBuilder when successful func (m *AttackSimulationRequestBuilder) Trainings()(*AttackSimulationTrainingsRequestBuilder) { diff --git a/security/attack_simulation_training_campaigns_count_request_builder.go b/security/attack_simulation_training_campaigns_count_request_builder.go new file mode 100644 index 00000000000..7d28a5ee55b --- /dev/null +++ b/security/attack_simulation_training_campaigns_count_request_builder.go @@ -0,0 +1,80 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// AttackSimulationTrainingCampaignsCountRequestBuilder provides operations to count the resources in the collection. +type AttackSimulationTrainingCampaignsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// AttackSimulationTrainingCampaignsCountRequestBuilderGetQueryParameters get the number of the resource +type AttackSimulationTrainingCampaignsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// AttackSimulationTrainingCampaignsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AttackSimulationTrainingCampaignsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *AttackSimulationTrainingCampaignsCountRequestBuilderGetQueryParameters +} +// NewAttackSimulationTrainingCampaignsCountRequestBuilderInternal instantiates a new AttackSimulationTrainingCampaignsCountRequestBuilder and sets the default values. +func NewAttackSimulationTrainingCampaignsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AttackSimulationTrainingCampaignsCountRequestBuilder) { + m := &AttackSimulationTrainingCampaignsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/attackSimulation/trainingCampaigns/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewAttackSimulationTrainingCampaignsCountRequestBuilder instantiates a new AttackSimulationTrainingCampaignsCountRequestBuilder and sets the default values. +func NewAttackSimulationTrainingCampaignsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AttackSimulationTrainingCampaignsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAttackSimulationTrainingCampaignsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AttackSimulationTrainingCampaignsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *AttackSimulationTrainingCampaignsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *AttackSimulationTrainingCampaignsCountRequestBuilder when successful +func (m *AttackSimulationTrainingCampaignsCountRequestBuilder) WithUrl(rawUrl string)(*AttackSimulationTrainingCampaignsCountRequestBuilder) { + return NewAttackSimulationTrainingCampaignsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/attack_simulation_training_campaigns_request_builder.go b/security/attack_simulation_training_campaigns_request_builder.go new file mode 100644 index 00000000000..27b3dd7f227 --- /dev/null +++ b/security/attack_simulation_training_campaigns_request_builder.go @@ -0,0 +1,152 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// AttackSimulationTrainingCampaignsRequestBuilder provides operations to manage the trainingCampaigns property of the microsoft.graph.attackSimulationRoot entity. +type AttackSimulationTrainingCampaignsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// AttackSimulationTrainingCampaignsRequestBuilderGetQueryParameters get trainingCampaigns from security +type AttackSimulationTrainingCampaignsRequestBuilderGetQueryParameters 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"` +} +// AttackSimulationTrainingCampaignsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AttackSimulationTrainingCampaignsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *AttackSimulationTrainingCampaignsRequestBuilderGetQueryParameters +} +// AttackSimulationTrainingCampaignsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AttackSimulationTrainingCampaignsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByTrainingCampaignId provides operations to manage the trainingCampaigns property of the microsoft.graph.attackSimulationRoot entity. +// returns a *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder when successful +func (m *AttackSimulationTrainingCampaignsRequestBuilder) ByTrainingCampaignId(trainingCampaignId string)(*AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if trainingCampaignId != "" { + urlTplParams["trainingCampaign%2Did"] = trainingCampaignId + } + return NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewAttackSimulationTrainingCampaignsRequestBuilderInternal instantiates a new AttackSimulationTrainingCampaignsRequestBuilder and sets the default values. +func NewAttackSimulationTrainingCampaignsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AttackSimulationTrainingCampaignsRequestBuilder) { + m := &AttackSimulationTrainingCampaignsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/attackSimulation/trainingCampaigns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewAttackSimulationTrainingCampaignsRequestBuilder instantiates a new AttackSimulationTrainingCampaignsRequestBuilder and sets the default values. +func NewAttackSimulationTrainingCampaignsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AttackSimulationTrainingCampaignsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAttackSimulationTrainingCampaignsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *AttackSimulationTrainingCampaignsCountRequestBuilder when successful +func (m *AttackSimulationTrainingCampaignsRequestBuilder) Count()(*AttackSimulationTrainingCampaignsCountRequestBuilder) { + return NewAttackSimulationTrainingCampaignsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get trainingCampaigns from security +// returns a TrainingCampaignCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AttackSimulationTrainingCampaignsRequestBuilder) Get(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTrainingCampaignCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignCollectionResponseable), nil +} +// Post create new navigation property to trainingCampaigns for security +// returns a TrainingCampaignable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AttackSimulationTrainingCampaignsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, requestConfiguration *AttackSimulationTrainingCampaignsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTrainingCampaignFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable), nil +} +// ToGetRequestInformation get trainingCampaigns from security +// returns a *RequestInformation when successful +func (m *AttackSimulationTrainingCampaignsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 trainingCampaigns for security +// returns a *RequestInformation when successful +func (m *AttackSimulationTrainingCampaignsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, requestConfiguration *AttackSimulationTrainingCampaignsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/security/attackSimulation/trainingCampaigns", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *AttackSimulationTrainingCampaignsRequestBuilder when successful +func (m *AttackSimulationTrainingCampaignsRequestBuilder) WithUrl(rawUrl string)(*AttackSimulationTrainingCampaignsRequestBuilder) { + return NewAttackSimulationTrainingCampaignsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/attack_simulation_training_campaigns_training_campaign_item_request_builder.go b/security/attack_simulation_training_campaigns_training_campaign_item_request_builder.go new file mode 100644 index 00000000000..e48b7a53d8e --- /dev/null +++ b/security/attack_simulation_training_campaigns_training_campaign_item_request_builder.go @@ -0,0 +1,157 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder provides operations to manage the trainingCampaigns property of the microsoft.graph.attackSimulationRoot entity. +type AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetQueryParameters get trainingCampaigns from security +type AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetQueryParameters +} +// AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderInternal instantiates a new AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder and sets the default values. +func NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) { + m := &AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/attackSimulation/trainingCampaigns/{trainingCampaign%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder instantiates a new AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder and sets the default values. +func NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property trainingCampaigns for security +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get trainingCampaigns from security +// returns a TrainingCampaignable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) Get(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTrainingCampaignFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable), nil +} +// Patch update the navigation property trainingCampaigns in security +// returns a TrainingCampaignable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, requestConfiguration *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTrainingCampaignFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable), nil +} +// ToDeleteRequestInformation delete navigation property trainingCampaigns for security +// returns a *RequestInformation when successful +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/security/attackSimulation/trainingCampaigns/{trainingCampaign%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get trainingCampaigns from security +// returns a *RequestInformation when successful +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 trainingCampaigns in security +// returns a *RequestInformation when successful +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrainingCampaignable, requestConfiguration *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/security/attackSimulation/trainingCampaigns/{trainingCampaign%2Did}", m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder when successful +func (m *AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) WithUrl(rawUrl string)(*AttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder) { + return NewAttackSimulationTrainingCampaignsTrainingCampaignItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_recycle_bin_items_request_builder.go b/sites/item_recycle_bin_items_request_builder.go index c81aacd4752..98938915cf8 100644 --- a/sites/item_recycle_bin_items_request_builder.go +++ b/sites/item_recycle_bin_items_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemRecycleBinItemsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemRecycleBinItemsRequestBuilderGetQueryParameters get a collection of recycleBinItem resources in the recyleBin of the specified SharePoint site. +// ItemRecycleBinItemsRequestBuilderGetQueryParameters get a collection of recycleBinItem resources in the recycleBin of the specified SharePoint site. type ItemRecycleBinItemsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemRecycleBinItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *ItemRecycleBinItemsRequestBuilder) Count()(*ItemRecycleBinItemsCountRequestBuilder) { return NewItemRecycleBinItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a collection of recycleBinItem resources in the recyleBin of the specified SharePoint site. +// Get get a collection of recycleBinItem resources in the recycleBin of the specified SharePoint site. // returns a RecycleBinItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -119,7 +119,7 @@ func (m *ItemRecycleBinItemsRequestBuilder) Post(ctx context.Context, body ie233 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RecycleBinItemable), nil } -// ToGetRequestInformation get a collection of recycleBinItem resources in the recyleBin of the specified SharePoint site. +// ToGetRequestInformation get a collection of recycleBinItem resources in the recycleBin of the specified SharePoint site. // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_sites_add_post_request_body.go b/sites/item_sites_add_post_request_body.go new file mode 100644 index 00000000000..9829cd9bb30 --- /dev/null +++ b/sites/item_sites_add_post_request_body.go @@ -0,0 +1,126 @@ +package sites + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemSitesAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemSitesAddPostRequestBody instantiates a new ItemSitesAddPostRequestBody and sets the default values. +func NewItemSitesAddPostRequestBody()(*ItemSitesAddPostRequestBody) { + m := &ItemSitesAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemSitesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemSitesAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemSitesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesAddPostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemSitesAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemSitesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemSitesAddPostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/sites/item_sites_add_post_response.go b/sites/item_sites_add_post_response.go new file mode 100644 index 00000000000..ffb8e579fa3 --- /dev/null +++ b/sites/item_sites_add_post_response.go @@ -0,0 +1,89 @@ +package sites + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemSitesAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemSitesAddPostResponse instantiates a new ItemSitesAddPostResponse and sets the default values. +func NewItemSitesAddPostResponse()(*ItemSitesAddPostResponse) { + m := &ItemSitesAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemSitesAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesAddPostResponse) 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 *ItemSitesAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/sites/item_sites_add_request_builder.go b/sites/item_sites_add_request_builder.go new file mode 100644 index 00000000000..4e3596d7b81 --- /dev/null +++ b/sites/item_sites_add_request_builder.go @@ -0,0 +1,99 @@ +package sites + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesAddRequestBuilder provides operations to call the add method. +type ItemSitesAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesAddRequestBuilderInternal instantiates a new ItemSitesAddRequestBuilder and sets the default values. +func NewItemSitesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesAddRequestBuilder) { + m := &ItemSitesAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/sites/add", pathParameters), + } + return m +} +// NewItemSitesAddRequestBuilder instantiates a new ItemSitesAddRequestBuilder and sets the default values. +func NewItemSitesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post follow a user's site or multiple sites. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemSitesAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 +func (m *ItemSitesAddRequestBuilder) Post(ctx context.Context, body ItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesAddResponseable), nil +} +// PostAsAddPostResponse follow a user's site or multiple sites. +// returns a ItemSitesAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 +func (m *ItemSitesAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesAddRequestBuilderPostRequestConfiguration)(ItemSitesAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesAddPostResponseable), nil +} +// ToPostRequestInformation follow a user's site or multiple sites. +// returns a *RequestInformation when successful +func (m *ItemSitesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesAddPostRequestBodyable, requestConfiguration *ItemSitesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesAddRequestBuilder when successful +func (m *ItemSitesAddRequestBuilder) WithUrl(rawUrl string)(*ItemSitesAddRequestBuilder) { + return NewItemSitesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_sites_add_response.go b/sites/item_sites_add_response.go new file mode 100644 index 00000000000..d1f3b96e3e7 --- /dev/null +++ b/sites/item_sites_add_response.go @@ -0,0 +1,27 @@ +package sites + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemSitesAddPostResponseable instead. +type ItemSitesAddResponse struct { + ItemSitesAddPostResponse +} +// NewItemSitesAddResponse instantiates a new ItemSitesAddResponse and sets the default values. +func NewItemSitesAddResponse()(*ItemSitesAddResponse) { + m := &ItemSitesAddResponse{ + ItemSitesAddPostResponse: *NewItemSitesAddPostResponse(), + } + return m +} +// CreateItemSitesAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemSitesAddPostResponseable instead. +type ItemSitesAddResponseable interface { + ItemSitesAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/sites/item_sites_remove_post_request_body.go b/sites/item_sites_remove_post_request_body.go new file mode 100644 index 00000000000..e4fd8e5f745 --- /dev/null +++ b/sites/item_sites_remove_post_request_body.go @@ -0,0 +1,126 @@ +package sites + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemSitesRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemSitesRemovePostRequestBody instantiates a new ItemSitesRemovePostRequestBody and sets the default values. +func NewItemSitesRemovePostRequestBody()(*ItemSitesRemovePostRequestBody) { + m := &ItemSitesRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemSitesRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemSitesRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemSitesRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesRemovePostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemSitesRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemSitesRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemSitesRemovePostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/sites/item_sites_remove_post_response.go b/sites/item_sites_remove_post_response.go new file mode 100644 index 00000000000..498520f7e1d --- /dev/null +++ b/sites/item_sites_remove_post_response.go @@ -0,0 +1,89 @@ +package sites + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemSitesRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemSitesRemovePostResponse instantiates a new ItemSitesRemovePostResponse and sets the default values. +func NewItemSitesRemovePostResponse()(*ItemSitesRemovePostResponse) { + m := &ItemSitesRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemSitesRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemSitesRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemSitesRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemSitesRemovePostResponse) 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 *ItemSitesRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemSitesRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/sites/item_sites_remove_request_builder.go b/sites/item_sites_remove_request_builder.go new file mode 100644 index 00000000000..e455b0bf7ae --- /dev/null +++ b/sites/item_sites_remove_request_builder.go @@ -0,0 +1,99 @@ +package sites + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSitesRemoveRequestBuilder provides operations to call the remove method. +type ItemSitesRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSitesRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSitesRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSitesRemoveRequestBuilderInternal instantiates a new ItemSitesRemoveRequestBuilder and sets the default values. +func NewItemSitesRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesRemoveRequestBuilder) { + m := &ItemSitesRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/sites/remove", pathParameters), + } + return m +} +// NewItemSitesRemoveRequestBuilder instantiates a new ItemSitesRemoveRequestBuilder and sets the default values. +func NewItemSitesRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSitesRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post unfollow a user's site or multiple sites. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemSitesRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 +func (m *ItemSitesRemoveRequestBuilder) Post(ctx context.Context, body ItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesRemoveResponseable), nil +} +// PostAsRemovePostResponse unfollow a user's site or multiple sites. +// returns a ItemSitesRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 +func (m *ItemSitesRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesRemoveRequestBuilderPostRequestConfiguration)(ItemSitesRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemSitesRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemSitesRemovePostResponseable), nil +} +// ToPostRequestInformation unfollow a user's site or multiple sites. +// returns a *RequestInformation when successful +func (m *ItemSitesRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSitesRemovePostRequestBodyable, requestConfiguration *ItemSitesRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSitesRemoveRequestBuilder when successful +func (m *ItemSitesRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemSitesRemoveRequestBuilder) { + return NewItemSitesRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/sites/item_sites_remove_response.go b/sites/item_sites_remove_response.go new file mode 100644 index 00000000000..c183b6524c5 --- /dev/null +++ b/sites/item_sites_remove_response.go @@ -0,0 +1,27 @@ +package sites + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemSitesRemovePostResponseable instead. +type ItemSitesRemoveResponse struct { + ItemSitesRemovePostResponse +} +// NewItemSitesRemoveResponse instantiates a new ItemSitesRemoveResponse and sets the default values. +func NewItemSitesRemoveResponse()(*ItemSitesRemoveResponse) { + m := &ItemSitesRemoveResponse{ + ItemSitesRemovePostResponse: *NewItemSitesRemovePostResponse(), + } + return m +} +// CreateItemSitesRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemSitesRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemSitesRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemSitesRemovePostResponseable instead. +type ItemSitesRemoveResponseable interface { + ItemSitesRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/sites/item_sites_request_builder.go b/sites/item_sites_request_builder.go index 373359d9467..bcd4e30443f 100644 --- a/sites/item_sites_request_builder.go +++ b/sites/item_sites_request_builder.go @@ -39,6 +39,11 @@ type ItemSitesRequestBuilderGetRequestConfiguration struct { // Request query parameters QueryParameters *ItemSitesRequestBuilderGetQueryParameters } +// Add provides operations to call the add method. +// returns a *ItemSitesAddRequestBuilder when successful +func (m *ItemSitesRequestBuilder) Add()(*ItemSitesAddRequestBuilder) { + return NewItemSitesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // BySiteId1 provides operations to manage the sites property of the microsoft.graph.site entity. // returns a *ItemSitesSiteItemRequestBuilder when successful func (m *ItemSitesRequestBuilder) BySiteId1(siteId1 string)(*ItemSitesSiteItemRequestBuilder) { @@ -92,6 +97,11 @@ func (m *ItemSitesRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable), nil } +// Remove provides operations to call the remove method. +// returns a *ItemSitesRemoveRequestBuilder when successful +func (m *ItemSitesRequestBuilder) Remove()(*ItemSitesRemoveRequestBuilder) { + return NewItemSitesRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation get a collection of subsites defined for a [site][]. // returns a *RequestInformation when successful func (m *ItemSitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/teams/item_channels_item_members_conversation_member_item_request_builder.go b/teams/item_channels_item_members_conversation_member_item_request_builder.go index e3c38b96b32..f8d86cd305b 100644 --- a/teams/item_channels_item_members_conversation_member_item_request_builder.go +++ b/teams/item_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToGetReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_messages_request_builder.go b/teams/item_channels_item_messages_request_builder.go index 3f12d134670..912a575c7ca 100644 --- a/teams/item_channels_item_messages_request_builder.go +++ b/teams/item_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemChannelsItemMessagesRequestBuilder) Get(ctx context.Context, reques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *ItemChannelsItemMessagesRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *ItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_primary_channel_members_conversation_member_item_request_builder.go b/teams/item_primary_channel_members_conversation_member_item_request_builder.go index 15d3ee464d4..5f57717c5cf 100644 --- a/teams/item_primary_channel_members_conversation_member_item_request_builder.go +++ b/teams/item_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_primary_channel_messages_request_builder.go b/teams/item_primary_channel_messages_request_builder.go index 1f4e6685c94..97a8cce0060 100644 --- a/teams/item_primary_channel_messages_request_builder.go +++ b/teams/item_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemPrimaryChannelMessagesRequestBuilder) Get(ctx context.Context, requ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *ItemPrimaryChannelMessagesRequestBuilder) ToGetRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *ItemPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_schedule_shifts_role_definitions_request_builder.go b/teams/item_schedule_shifts_role_definitions_request_builder.go index e044e4102e4..5f12f5ea51d 100644 --- a/teams/item_schedule_shifts_role_definitions_request_builder.go +++ b/teams/item_schedule_shifts_role_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemScheduleShiftsRoleDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters get shiftsRoleDefinitions from teams +// ItemScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type ItemScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemScheduleShiftsRoleDefinitionsRequestBuilder(rawUrl string, requestAd func (m *ItemScheduleShiftsRoleDefinitionsRequestBuilder) Count()(*ItemScheduleShiftsRoleDefinitionsCountRequestBuilder) { return NewItemScheduleShiftsRoleDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get shiftsRoleDefinitions from teams +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScheduleShiftsRoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemScheduleShiftsRoleDefinitionsRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable), nil } -// ToGetRequestInformation get shiftsRoleDefinitions from teams +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *ItemScheduleShiftsRoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go b/teams/item_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go index b59a0c72394..6e2090e28cc 100644 --- a/teams/item_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go +++ b/teams/item_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderDele // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters get shiftsRoleDefinitions from teams +// ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder } return nil } -// Get get shiftsRoleDefinitions from teams +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable, error) { @@ -121,7 +121,7 @@ func (m *ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get shiftsRoleDefinitions from teams +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go index 8cf71cc4f0d..b8754bc355d 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go index 24013e6ae98..590888e0672 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index 12529dd35f3..bb73a386135 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go index 2e0e9485ff8..b10d84392ae 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) Get(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToGetRequestInf requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_request_builder.go b/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_request_builder.go index 4608ad0b761..6914aa7b71d 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters get shiftsRoleDefinitions from teamTemplateDefinition +// ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder(rawUrl str func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) Count()(*ItemTeamDefinitionScheduleShiftsRoleDefinitionsCountRequestBuilder) { return NewItemTeamDefinitionScheduleShiftsRoleDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get shiftsRoleDefinitions from teamTemplateDefinition +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable), nil } -// ToGetRequestInformation get shiftsRoleDefinitions from teamTemplateDefinition +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go b/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go index 0b6847226a9..f68e2eade3a 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go @@ -18,7 +18,7 @@ type ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters get shiftsRoleDefinitions from teamTemplateDefinition +// ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItem } return nil } -// Get get shiftsRoleDefinitions from teamTemplateDefinition +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable, error) { @@ -121,7 +121,7 @@ func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItem requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get shiftsRoleDefinitions from teamTemplateDefinition +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_chats_item_undo_delete_request_builder.go b/teamwork/deleted_chats_item_undo_delete_request_builder.go index 448065dd080..71e6f242156 100644 --- a/teamwork/deleted_chats_item_undo_delete_request_builder.go +++ b/teamwork/deleted_chats_item_undo_delete_request_builder.go @@ -30,7 +30,7 @@ func NewDeletedChatsItemUndoDeleteRequestBuilder(rawUrl string, requestAdapter i urlParams["request-raw-url"] = rawUrl return NewDeletedChatsItemUndoDeleteRequestBuilderInternal(urlParams, requestAdapter) } -// Post restore a deletedChat to an active chat. +// Post restore a deletedChat to an active chat. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *DeletedChatsItemUndoDeleteRequestBuilder) Post(ctx context.Context, req } return nil } -// ToPostRequestInformation restore a deletedChat to an active chat. +// ToPostRequestInformation restore a deletedChat to an active chat. // returns a *RequestInformation when successful func (m *DeletedChatsItemUndoDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *DeletedChatsItemUndoDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go index 04770bbbf9e..d7c85bf663f 100644 --- a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/deleted_teams_item_channels_item_messages_request_builder.go b/teamwork/deleted_teams_item_channels_item_messages_request_builder.go index 8ce6c61ebbd..bb937301891 100644 --- a/teamwork/deleted_teams_item_channels_item_messages_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) Get(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) ToGetRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *DeletedTeamsItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *DeletedTeamsItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go index d4dcbe491ad..9cd650ec420 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go index 911490d392c..a3898b1d7d9 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesReque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index c33e6cb22bb..957bd25083d 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -96,12 +96,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/members/{conversationMember%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go index ebb0d8f88d9..f4422d9f12a 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -141,7 +141,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified channel. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages", m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_request_builder.go index 999fd6d72ae..1e490f51da9 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters get shiftsRoleDefinitions from teamwork +// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefiniti func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsCountRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get shiftsRoleDefinitions from teamwork +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinit } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable), nil } -// ToGetRequestInformation get shiftsRoleDefinitions from teamwork +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go index c1cc443a57c..43880642a6a 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_schedule_shifts_role_definitions_shifts_role_definition_item_request_builder.go @@ -18,7 +18,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitions // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters get shiftsRoleDefinitions from teamwork +// TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters the definitions of the roles in the schedule. type TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinit } return nil } -// Get get shiftsRoleDefinitions from teamwork +// Get the definitions of the roles in the schedule. // returns a ShiftsRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftsRoleDefinitionable, error) { @@ -121,7 +121,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinit requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get shiftsRoleDefinitions from teamwork +// ToGetRequestInformation the definitions of the roles in the schedule. // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionScheduleShiftsRoleDefinitionsShiftsRoleDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index d2f7c6d6112..fa438a93d67 100644 --- a/tenantrelationships/multi_tenant_organization_request_builder.go +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -75,12 +75,12 @@ func (m *MultiTenantOrganizationRequestBuilder) Get(ctx context.Context, request func (m *MultiTenantOrganizationRequestBuilder) JoinRequest()(*MultiTenantOrganizationJoinRequestRequestBuilder) { return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch 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. +// Patch update the properties of a multi-tenant organization. // returns a MultiTenantOrganizationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0 func (m *MultiTenantOrganizationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -117,7 +117,7 @@ func (m *MultiTenantOrganizationRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation 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. +// ToPatchRequestInformation update the properties of a multi-tenant organization. // returns a *RequestInformation when successful func (m *MultiTenantOrganizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/tenantRelationships/multiTenantOrganization", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_followed_sites_add_post_request_body.go b/users/item_followed_sites_add_post_request_body.go new file mode 100644 index 00000000000..2f33be813b1 --- /dev/null +++ b/users/item_followed_sites_add_post_request_body.go @@ -0,0 +1,126 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemFollowedSitesAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemFollowedSitesAddPostRequestBody instantiates a new ItemFollowedSitesAddPostRequestBody and sets the default values. +func NewItemFollowedSitesAddPostRequestBody()(*ItemFollowedSitesAddPostRequestBody) { + m := &ItemFollowedSitesAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemFollowedSitesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemFollowedSitesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemFollowedSitesAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemFollowedSitesAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemFollowedSitesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemFollowedSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemFollowedSitesAddPostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemFollowedSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemFollowedSitesAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemFollowedSitesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemFollowedSitesAddPostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemFollowedSitesAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/users/item_followed_sites_add_post_response.go b/users/item_followed_sites_add_post_response.go new file mode 100644 index 00000000000..66fba11f76f --- /dev/null +++ b/users/item_followed_sites_add_post_response.go @@ -0,0 +1,89 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemFollowedSitesAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemFollowedSitesAddPostResponse instantiates a new ItemFollowedSitesAddPostResponse and sets the default values. +func NewItemFollowedSitesAddPostResponse()(*ItemFollowedSitesAddPostResponse) { + m := &ItemFollowedSitesAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemFollowedSitesAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemFollowedSitesAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemFollowedSitesAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemFollowedSitesAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemFollowedSitesAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemFollowedSitesAddPostResponse) 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 *ItemFollowedSitesAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemFollowedSitesAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/users/item_followed_sites_add_request_builder.go b/users/item_followed_sites_add_request_builder.go new file mode 100644 index 00000000000..85fcdc9f3f0 --- /dev/null +++ b/users/item_followed_sites_add_request_builder.go @@ -0,0 +1,99 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemFollowedSitesAddRequestBuilder provides operations to call the add method. +type ItemFollowedSitesAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemFollowedSitesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemFollowedSitesAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemFollowedSitesAddRequestBuilderInternal instantiates a new ItemFollowedSitesAddRequestBuilder and sets the default values. +func NewItemFollowedSitesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemFollowedSitesAddRequestBuilder) { + m := &ItemFollowedSitesAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites/add", pathParameters), + } + return m +} +// NewItemFollowedSitesAddRequestBuilder instantiates a new ItemFollowedSitesAddRequestBuilder and sets the default values. +func NewItemFollowedSitesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemFollowedSitesAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemFollowedSitesAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post follow a user's site or multiple sites. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemFollowedSitesAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 +func (m *ItemFollowedSitesAddRequestBuilder) Post(ctx context.Context, body ItemFollowedSitesAddPostRequestBodyable, requestConfiguration *ItemFollowedSitesAddRequestBuilderPostRequestConfiguration)(ItemFollowedSitesAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemFollowedSitesAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemFollowedSitesAddResponseable), nil +} +// PostAsAddPostResponse follow a user's site or multiple sites. +// returns a ItemFollowedSitesAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0 +func (m *ItemFollowedSitesAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemFollowedSitesAddPostRequestBodyable, requestConfiguration *ItemFollowedSitesAddRequestBuilderPostRequestConfiguration)(ItemFollowedSitesAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemFollowedSitesAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemFollowedSitesAddPostResponseable), nil +} +// ToPostRequestInformation follow a user's site or multiple sites. +// returns a *RequestInformation when successful +func (m *ItemFollowedSitesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemFollowedSitesAddPostRequestBodyable, requestConfiguration *ItemFollowedSitesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemFollowedSitesAddRequestBuilder when successful +func (m *ItemFollowedSitesAddRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesAddRequestBuilder) { + return NewItemFollowedSitesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_followed_sites_add_response.go b/users/item_followed_sites_add_response.go new file mode 100644 index 00000000000..687b0830214 --- /dev/null +++ b/users/item_followed_sites_add_response.go @@ -0,0 +1,27 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemFollowedSitesAddPostResponseable instead. +type ItemFollowedSitesAddResponse struct { + ItemFollowedSitesAddPostResponse +} +// NewItemFollowedSitesAddResponse instantiates a new ItemFollowedSitesAddResponse and sets the default values. +func NewItemFollowedSitesAddResponse()(*ItemFollowedSitesAddResponse) { + m := &ItemFollowedSitesAddResponse{ + ItemFollowedSitesAddPostResponse: *NewItemFollowedSitesAddPostResponse(), + } + return m +} +// CreateItemFollowedSitesAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemFollowedSitesAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemFollowedSitesAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemFollowedSitesAddPostResponseable instead. +type ItemFollowedSitesAddResponseable interface { + ItemFollowedSitesAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/users/item_followed_sites_remove_post_request_body.go b/users/item_followed_sites_remove_post_request_body.go new file mode 100644 index 00000000000..a3f57fd7bce --- /dev/null +++ b/users/item_followed_sites_remove_post_request_body.go @@ -0,0 +1,126 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemFollowedSitesRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemFollowedSitesRemovePostRequestBody instantiates a new ItemFollowedSitesRemovePostRequestBody and sets the default values. +func NewItemFollowedSitesRemovePostRequestBody()(*ItemFollowedSitesRemovePostRequestBody) { + m := &ItemFollowedSitesRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemFollowedSitesRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemFollowedSitesRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemFollowedSitesRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemFollowedSitesRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemFollowedSitesRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemFollowedSitesRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemFollowedSitesRemovePostRequestBody) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemFollowedSitesRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemFollowedSitesRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemFollowedSitesRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *ItemFollowedSitesRemovePostRequestBody) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemFollowedSitesRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/users/item_followed_sites_remove_post_response.go b/users/item_followed_sites_remove_post_response.go new file mode 100644 index 00000000000..558b28f7d27 --- /dev/null +++ b/users/item_followed_sites_remove_post_response.go @@ -0,0 +1,89 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemFollowedSitesRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemFollowedSitesRemovePostResponse instantiates a new ItemFollowedSitesRemovePostResponse and sets the default values. +func NewItemFollowedSitesRemovePostResponse()(*ItemFollowedSitesRemovePostResponse) { + m := &ItemFollowedSitesRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemFollowedSitesRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemFollowedSitesRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemFollowedSitesRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemFollowedSitesRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Siteable when successful +func (m *ItemFollowedSitesRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemFollowedSitesRemovePostResponse) 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 *ItemFollowedSitesRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemFollowedSitesRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable)() +} diff --git a/users/item_followed_sites_remove_request_builder.go b/users/item_followed_sites_remove_request_builder.go new file mode 100644 index 00000000000..8eddba84b7b --- /dev/null +++ b/users/item_followed_sites_remove_request_builder.go @@ -0,0 +1,99 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemFollowedSitesRemoveRequestBuilder provides operations to call the remove method. +type ItemFollowedSitesRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemFollowedSitesRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemFollowedSitesRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemFollowedSitesRemoveRequestBuilderInternal instantiates a new ItemFollowedSitesRemoveRequestBuilder and sets the default values. +func NewItemFollowedSitesRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemFollowedSitesRemoveRequestBuilder) { + m := &ItemFollowedSitesRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites/remove", pathParameters), + } + return m +} +// NewItemFollowedSitesRemoveRequestBuilder instantiates a new ItemFollowedSitesRemoveRequestBuilder and sets the default values. +func NewItemFollowedSitesRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemFollowedSitesRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemFollowedSitesRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post unfollow a user's site or multiple sites. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemFollowedSitesRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 +func (m *ItemFollowedSitesRemoveRequestBuilder) Post(ctx context.Context, body ItemFollowedSitesRemovePostRequestBodyable, requestConfiguration *ItemFollowedSitesRemoveRequestBuilderPostRequestConfiguration)(ItemFollowedSitesRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemFollowedSitesRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemFollowedSitesRemoveResponseable), nil +} +// PostAsRemovePostResponse unfollow a user's site or multiple sites. +// returns a ItemFollowedSitesRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0 +func (m *ItemFollowedSitesRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemFollowedSitesRemovePostRequestBodyable, requestConfiguration *ItemFollowedSitesRemoveRequestBuilderPostRequestConfiguration)(ItemFollowedSitesRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemFollowedSitesRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemFollowedSitesRemovePostResponseable), nil +} +// ToPostRequestInformation unfollow a user's site or multiple sites. +// returns a *RequestInformation when successful +func (m *ItemFollowedSitesRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemFollowedSitesRemovePostRequestBodyable, requestConfiguration *ItemFollowedSitesRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemFollowedSitesRemoveRequestBuilder when successful +func (m *ItemFollowedSitesRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesRemoveRequestBuilder) { + return NewItemFollowedSitesRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_followed_sites_remove_response.go b/users/item_followed_sites_remove_response.go new file mode 100644 index 00000000000..e387c419e9e --- /dev/null +++ b/users/item_followed_sites_remove_response.go @@ -0,0 +1,27 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemFollowedSitesRemovePostResponseable instead. +type ItemFollowedSitesRemoveResponse struct { + ItemFollowedSitesRemovePostResponse +} +// NewItemFollowedSitesRemoveResponse instantiates a new ItemFollowedSitesRemoveResponse and sets the default values. +func NewItemFollowedSitesRemoveResponse()(*ItemFollowedSitesRemoveResponse) { + m := &ItemFollowedSitesRemoveResponse{ + ItemFollowedSitesRemovePostResponse: *NewItemFollowedSitesRemovePostResponse(), + } + return m +} +// CreateItemFollowedSitesRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemFollowedSitesRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemFollowedSitesRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemFollowedSitesRemovePostResponseable instead. +type ItemFollowedSitesRemoveResponseable interface { + ItemFollowedSitesRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/users/item_followed_sites_request_builder.go b/users/item_followed_sites_request_builder.go index 7b4466d607c..10c4c4c984a 100644 --- a/users/item_followed_sites_request_builder.go +++ b/users/item_followed_sites_request_builder.go @@ -39,6 +39,11 @@ type ItemFollowedSitesRequestBuilderGetRequestConfiguration struct { // Request query parameters QueryParameters *ItemFollowedSitesRequestBuilderGetQueryParameters } +// Add provides operations to call the add method. +// returns a *ItemFollowedSitesAddRequestBuilder when successful +func (m *ItemFollowedSitesRequestBuilder) Add()(*ItemFollowedSitesAddRequestBuilder) { + return NewItemFollowedSitesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // BySiteId provides operations to manage the followedSites property of the microsoft.graph.user entity. // returns a *ItemFollowedSitesSiteItemRequestBuilder when successful func (m *ItemFollowedSitesRequestBuilder) BySiteId(siteId string)(*ItemFollowedSitesSiteItemRequestBuilder) { @@ -92,6 +97,11 @@ func (m *ItemFollowedSitesRequestBuilder) Get(ctx context.Context, requestConfig } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable), nil } +// Remove provides operations to call the remove method. +// returns a *ItemFollowedSitesRemoveRequestBuilder when successful +func (m *ItemFollowedSitesRequestBuilder) Remove()(*ItemFollowedSitesRemoveRequestBuilder) { + return NewItemFollowedSitesRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation list the sites that have been followed by the signed in user. // returns a *RequestInformation when successful func (m *ItemFollowedSitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowedSitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { 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 e850cb18064..6903b644244 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go @@ -98,12 +98,12 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to 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. // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -135,7 +135,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. // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_mail_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_request_builder.go index 6a9ddb849ad..9fc5af30a68 100644 --- a/users/item_mail_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_request_builder.go @@ -98,12 +98,12 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to 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. // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -135,7 +135,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. // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index 3da1a7b5773..267352429e6 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -98,12 +98,12 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to 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. // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -135,7 +135,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. // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index 52af28ef8dc..8dbdfcdf7c0 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -86,11 +86,11 @@ 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. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-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 { @@ -120,7 +120,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Forward()(*ItemMessagesItemForwa // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-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 { @@ -196,7 +196,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. // returns a *RequestInformation when successful func (m *ItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index 88e4d169525..67a6501ca43 100644 --- a/users/item_messages_request_builder.go +++ b/users/item_messages_request_builder.go @@ -106,12 +106,12 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable), 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 draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-post-messages?view=graph-rest-1.0 func (m *ItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -143,7 +143,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create 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 draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. // returns a *RequestInformation when successful func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/messages", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_online_meetings_item_meeting_attendance_report_request_builder.go b/users/item_online_meetings_item_meeting_attendance_report_request_builder.go index 122a217246c..84d54d45c55 100644 --- a/users/item_online_meetings_item_meeting_attendance_report_request_builder.go +++ b/users/item_online_meetings_item_meeting_attendance_report_request_builder.go @@ -18,7 +18,7 @@ type ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. type ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Delete(ctx } return nil } -// Get get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// Get get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -129,7 +129,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToDeleteRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. +// ToGetRequestInformation get the meetingAttendanceReport for an onlineMeeting or a virtualEvent. Each time an online meeting ends, an attendance report is generated for that session. // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_online_meetings_item_registration_request_builder.go b/users/item_online_meetings_item_registration_request_builder.go index 82cfb0a2560..bcb39a5d3ec 100644 --- a/users/item_online_meetings_item_registration_request_builder.go +++ b/users/item_online_meetings_item_registration_request_builder.go @@ -59,11 +59,11 @@ func NewItemOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestA func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. +// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Con func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. +// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/registration", m.BaseRequestBuilder.PathParameters) diff --git a/users/item_presence_request_builder.go b/users/item_presence_request_builder.go index a3b22fe8c53..f3f426cdfcd 100644 --- a/users/item_presence_request_builder.go +++ b/users/item_presence_request_builder.go @@ -18,7 +18,7 @@ type ItemPresenceRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPresenceRequestBuilderGetQueryParameters get a user's presence information. +// ItemPresenceRequestBuilderGetQueryParameters set a presence status message for a user. An optional expiration date and time can be supplied. type ItemPresenceRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,12 +80,12 @@ func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get get a user's presence information. +// Get set a presence status message for a user. An optional expiration date and time can be supplied. // returns a Presenceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -149,7 +149,7 @@ func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a user's presence information. +// ToGetRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. // returns a *RequestInformation when successful func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/user_item_request_builder.go b/users/user_item_request_builder.go index 190be726b0f..908fda801a8 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -18,7 +18,7 @@ type UserItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// UserItemRequestBuilderGetQueryParameters retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. +// UserItemRequestBuilderGetQueryParameters retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. type UserItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -283,7 +283,7 @@ func (m *UserItemRequestBuilder) FindRoomsWithRoomList(roomList *string)(*ItemFi func (m *UserItemRequestBuilder) FollowedSites()(*ItemFollowedSitesRequestBuilder) { return NewItemFollowedSitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. +// Get retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -481,7 +481,7 @@ func (m *UserItemRequestBuilder) OwnedDevices()(*ItemOwnedDevicesRequestBuilder) func (m *UserItemRequestBuilder) OwnedObjects()(*ItemOwnedObjectsRequestBuilder) { return NewItemOwnedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. +// Patch update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -630,7 +630,7 @@ func (m *UserItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, func (m *UserItemRequestBuilder) Todo()(*ItemTodoRequestBuilder) { return NewItemTodoRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. +// ToGetRequestInformation retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -644,7 +644,7 @@ func (m *UserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, re requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. +// ToPatchRequestInformation update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, requestConfiguration *UserItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/users/{user%2Did}", m.BaseRequestBuilder.PathParameters)