diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f8a3375f86..ab17f443185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.22.0] - 2022-04-28 + +### Changed + +- Weekly generation + ## [0.21.0] - 2022-04-19 ### Changed diff --git a/app/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go b/app/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go index 621a8039acf..389d1397df7 100644 --- a/app/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go +++ b/app/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go @@ -27,7 +27,7 @@ type ContentSharingSessionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// ContentSharingSessionsRequestBuilderGetQueryParameters get contentSharingSessions from app +// ContentSharingSessionsRequestBuilderGetQueryParameters read-only. Nullable. type ContentSharingSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewContentSharingSessionsRequestBuilder(rawUrl string, requestAdapter i2ae4 func (m *ContentSharingSessionsRequestBuilder) Count()(*i68341c8bce89cd129fe768442df3396b0d82f6a0aed9f38f83498fec363f4003.CountRequestBuilder) { return i68341c8bce89cd129fe768442df3396b0d82f6a0aed9f38f83498fec363f4003.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get contentSharingSessions from app +// CreateGetRequestInformation read-only. Nullable. func (m *ContentSharingSessionsRequestBuilder) CreateGetRequestInformation(options *ContentSharingSessionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *ContentSharingSessionsRequestBuilder) CreatePostRequestInformation(opti } return requestInfo, nil } -// Get get contentSharingSessions from app +// Get read-only. Nullable. func (m *ContentSharingSessionsRequestBuilder) Get(options *ContentSharingSessionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentSharingSessionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/app/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go b/app/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go index f80f0a090e9..576217d1c5d 100644 --- a/app/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go +++ b/app/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go @@ -35,7 +35,7 @@ type ContentSharingSessionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// ContentSharingSessionItemRequestBuilderGetQueryParameters get contentSharingSessions from app +// ContentSharingSessionItemRequestBuilderGetQueryParameters read-only. Nullable. type ContentSharingSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -89,7 +89,7 @@ func (m *ContentSharingSessionItemRequestBuilder) CreateDeleteRequestInformation } return requestInfo, nil } -// CreateGetRequestInformation get contentSharingSessions from app +// CreateGetRequestInformation read-only. Nullable. func (m *ContentSharingSessionItemRequestBuilder) CreateGetRequestInformation(options *ContentSharingSessionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -143,7 +143,7 @@ func (m *ContentSharingSessionItemRequestBuilder) Delete(options *ContentSharing } return nil } -// Get get contentSharingSessions from app +// Get read-only. Nullable. func (m *ContentSharingSessionItemRequestBuilder) Get(options *ContentSharingSessionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentSharingSessionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/communications/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go b/communications/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go index 930d4389ca2..32c76850b73 100644 --- a/communications/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go +++ b/communications/calls/item/contentsharingsessions/content_sharing_sessions_request_builder.go @@ -27,7 +27,7 @@ type ContentSharingSessionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// ContentSharingSessionsRequestBuilderGetQueryParameters get contentSharingSessions from communications +// ContentSharingSessionsRequestBuilderGetQueryParameters read-only. Nullable. type ContentSharingSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewContentSharingSessionsRequestBuilder(rawUrl string, requestAdapter i2ae4 func (m *ContentSharingSessionsRequestBuilder) Count()(*i0c7c4dfe07faf8e6230d5b1fdc9f521191eafb6e86cdb42da14c799e06007805.CountRequestBuilder) { return i0c7c4dfe07faf8e6230d5b1fdc9f521191eafb6e86cdb42da14c799e06007805.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get contentSharingSessions from communications +// CreateGetRequestInformation read-only. Nullable. func (m *ContentSharingSessionsRequestBuilder) CreateGetRequestInformation(options *ContentSharingSessionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *ContentSharingSessionsRequestBuilder) CreatePostRequestInformation(opti } return requestInfo, nil } -// Get get contentSharingSessions from communications +// Get read-only. Nullable. func (m *ContentSharingSessionsRequestBuilder) Get(options *ContentSharingSessionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentSharingSessionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/communications/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go b/communications/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go index d25799eba66..f7576376f9b 100644 --- a/communications/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go +++ b/communications/calls/item/contentsharingsessions/item/content_sharing_session_item_request_builder.go @@ -35,7 +35,7 @@ type ContentSharingSessionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// ContentSharingSessionItemRequestBuilderGetQueryParameters get contentSharingSessions from communications +// ContentSharingSessionItemRequestBuilderGetQueryParameters read-only. Nullable. type ContentSharingSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -89,7 +89,7 @@ func (m *ContentSharingSessionItemRequestBuilder) CreateDeleteRequestInformation } return requestInfo, nil } -// CreateGetRequestInformation get contentSharingSessions from communications +// CreateGetRequestInformation read-only. Nullable. func (m *ContentSharingSessionItemRequestBuilder) CreateGetRequestInformation(options *ContentSharingSessionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -143,7 +143,7 @@ func (m *ContentSharingSessionItemRequestBuilder) Delete(options *ContentSharing } return nil } -// Get get contentSharingSessions from communications +// Get read-only. Nullable. func (m *ContentSharingSessionItemRequestBuilder) Get(options *ContentSharingSessionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContentSharingSessionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/domains/item/federationconfiguration/federation_configuration_request_builder.go b/domains/item/federationconfiguration/federation_configuration_request_builder.go index a476a7f0a47..ecc8208da3b 100644 --- a/domains/item/federationconfiguration/federation_configuration_request_builder.go +++ b/domains/item/federationconfiguration/federation_configuration_request_builder.go @@ -27,7 +27,7 @@ type FederationConfigurationRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// FederationConfigurationRequestBuilderGetQueryParameters get federationConfiguration from domains +// FederationConfigurationRequestBuilderGetQueryParameters domain settings configured by customer when federated with Azure AD. type FederationConfigurationRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewFederationConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae func (m *FederationConfigurationRequestBuilder) Count()(*id870850ef5174af71604f883c640b113e53dfa198c6c5b449840479873c6d825.CountRequestBuilder) { return id870850ef5174af71604f883c640b113e53dfa198c6c5b449840479873c6d825.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get federationConfiguration from domains +// CreateGetRequestInformation domain settings configured by customer when federated with Azure AD. func (m *FederationConfigurationRequestBuilder) CreateGetRequestInformation(options *FederationConfigurationRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *FederationConfigurationRequestBuilder) CreatePostRequestInformation(opt } return requestInfo, nil } -// Get get federationConfiguration from domains +// Get domain settings configured by customer when federated with Azure AD. func (m *FederationConfigurationRequestBuilder) Get(options *FederationConfigurationRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InternalDomainFederationCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/domains/item/federationconfiguration/item/internal_domain_federation_item_request_builder.go b/domains/item/federationconfiguration/item/internal_domain_federation_item_request_builder.go index 9fa53a340af..18d791b8771 100644 --- a/domains/item/federationconfiguration/item/internal_domain_federation_item_request_builder.go +++ b/domains/item/federationconfiguration/item/internal_domain_federation_item_request_builder.go @@ -35,7 +35,7 @@ type InternalDomainFederationItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// InternalDomainFederationItemRequestBuilderGetQueryParameters get federationConfiguration from domains +// InternalDomainFederationItemRequestBuilderGetQueryParameters domain settings configured by customer when federated with Azure AD. type InternalDomainFederationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -89,7 +89,7 @@ func (m *InternalDomainFederationItemRequestBuilder) CreateDeleteRequestInformat } return requestInfo, nil } -// CreateGetRequestInformation get federationConfiguration from domains +// CreateGetRequestInformation domain settings configured by customer when federated with Azure AD. func (m *InternalDomainFederationItemRequestBuilder) CreateGetRequestInformation(options *InternalDomainFederationItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -143,7 +143,7 @@ func (m *InternalDomainFederationItemRequestBuilder) Delete(options *InternalDom } return nil } -// Get get federationConfiguration from domains +// Get domain settings configured by customer when federated with Azure AD. func (m *InternalDomainFederationItemRequestBuilder) Get(options *InternalDomainFederationItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InternalDomainFederationable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drive/items/item/listitem/documentsetversions/document_set_versions_request_builder.go b/drive/items/item/listitem/documentsetversions/document_set_versions_request_builder.go index a18d6458e86..0a64473473e 100644 --- a/drive/items/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/drive/items/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from drive +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i3ff1187af1a54efa456a12124d3765ac7090db5610d3cf74032618ffd7accc1b.CountRequestBuilder) { return i3ff1187af1a54efa456a12124d3765ac7090db5610d3cf74032618ffd7accc1b.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from drive +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from drive +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drive/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/drive/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index d6e3e16cd1e..9dbeb99059c 100644 --- a/drive/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/drive/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from drive +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from drive +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from drive +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drive/list/items/item/documentsetversions/document_set_versions_request_builder.go b/drive/list/items/item/documentsetversions/document_set_versions_request_builder.go index 5d089879069..386afa98766 100644 --- a/drive/list/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/drive/list/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from drive +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i7aa29ab45664c0d393a9508475d098e67a4b04bb7c2ad06664628a8dc6b332c9.CountRequestBuilder) { return i7aa29ab45664c0d393a9508475d098e67a4b04bb7c2ad06664628a8dc6b332c9.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from drive +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from drive +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drive/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/drive/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go index 21baf6526e8..123a4eb0326 100644 --- a/drive/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/drive/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from drive +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from drive +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from drive +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drive/root/listitem/documentsetversions/document_set_versions_request_builder.go b/drive/root/listitem/documentsetversions/document_set_versions_request_builder.go index 955cc04c861..b75116fe248 100644 --- a/drive/root/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/drive/root/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from drive +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*idef2071149053979eeaa8b64ac5f060748714742820a313e6f14825c578e1d2d.CountRequestBuilder) { return idef2071149053979eeaa8b64ac5f060748714742820a313e6f14825c578e1d2d.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from drive +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from drive +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drive/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/drive/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 50fbf3ad832..71a06f360fc 100644 --- a/drive/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/drive/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from drive +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from drive +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from drive +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go b/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go index ab12669a7cf..d452dd082f0 100644 --- a/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from drives +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*idb6a8e5a5105d67ba5020b4ccbb336f3445a5b6f6ddaa0f235b30c4976d4c19e.CountRequestBuilder) { return idb6a8e5a5105d67ba5020b4ccbb336f3445a5b6f6ddaa0f235b30c4976d4c19e.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from drives +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from drives +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 287a9b6f432..a587298d950 100644 --- a/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from drives +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from drives +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from drives +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go b/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go index c29b6e7948e..a7087a22fa5 100644 --- a/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from drives +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i830d4aa7bcfd9f49e3f7651c34146d6f8d0937bc53f33d631c3f54fa69b15582.CountRequestBuilder) { return i830d4aa7bcfd9f49e3f7651c34146d6f8d0937bc53f33d631c3f54fa69b15582.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from drives +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from drives +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go index 2a8b5e8866e..422b5b6d6c3 100644 --- a/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from drives +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from drives +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from drives +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go b/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go index 50dfa4cb603..cab6303bef2 100644 --- a/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from drives +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i384f1141511bb893c405272e210513a4e1bbf6282cb9f011cb0d7139e196ab22.CountRequestBuilder) { return i384f1141511bb893c405272e210513a4e1bbf6282cb9f011cb0d7139e196ab22.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from drives +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from drives +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 59ae792f22d..7229fadebcd 100644 --- a/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from drives +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from drives +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from drives +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/graph_request_adapter.go b/graph_request_adapter.go index b47e4c3f19b..8c9a504b11d 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.21.0", + GraphServiceLibraryVersion: "0.22.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -94,5 +94,6 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go b/groups/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go index 049fcad4065..dc5013f9816 100644 --- a/groups/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/groups/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*ia893fd532f219de08e286e2f754d51dbd9ade86821c686a9f3f36c6784166313.CountRequestBuilder) { return ia893fd532f219de08e286e2f754d51dbd9ade86821c686a9f3f36c6784166313.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/groups/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index e711d785764..cb8da83f043 100644 --- a/groups/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/groups/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go b/groups/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go index eb7436f898f..c2acc92b8d1 100644 --- a/groups/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/groups/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i4a15388952785d667abda5a32271670c41c1fae69a97715f51ad240b63139ac7.CountRequestBuilder) { return i4a15388952785d667abda5a32271670c41c1fae69a97715f51ad240b63139ac7.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/groups/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go index fc89bd83d04..394f77fc453 100644 --- a/groups/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/groups/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go b/groups/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go index b64b98e440a..8ab4c4baed7 100644 --- a/groups/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/groups/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*ibb58fc2e2f0dd678716cf73eec5f5e04334e6dc16779602a4d261addb8e1e014.CountRequestBuilder) { return ibb58fc2e2f0dd678716cf73eec5f5e04334e6dc16779602a4d261addb8e1e014.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/groups/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go index d09a04bd5cc..bc614253691 100644 --- a/groups/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/groups/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go b/groups/item/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go index ae68edc7b1f..b76efd1a55d 100644 --- a/groups/item/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/groups/item/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i2b353e475970cb661c4c02fa52ab51ed5721d6e9d8bcf67cca531d75441a243f.CountRequestBuilder) { return i2b353e475970cb661c4c02fa52ab51ed5721d6e9d8bcf67cca531d75441a243f.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/groups/item/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go index b284eaf55c6..81d54ec1f71 100644 --- a/groups/item/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/groups/item/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from groups +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from groups +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from groups +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/team/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go b/groups/item/team/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go index 2878a92e05c..23f2659b2ce 100644 --- a/groups/item/team/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go +++ b/groups/item/team/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go @@ -37,7 +37,7 @@ type SharedWithChannelTeamInfoItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -106,7 +106,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateDeleteRequestInforma } return requestInfo, nil } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateGetRequestInformation(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -160,7 +160,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) Delete(options *SharedWith } return nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) Get(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/team/channels/item/sharedwithteams/shared_with_teams_request_builder.go b/groups/item/team/channels/item/sharedwithteams/shared_with_teams_request_builder.go index a7a0fcb989f..351159aaf46 100644 --- a/groups/item/team/channels/item/sharedwithteams/shared_with_teams_request_builder.go +++ b/groups/item/team/channels/item/sharedwithteams/shared_with_teams_request_builder.go @@ -27,7 +27,7 @@ type SharedWithTeamsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithTeamsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewSharedWithTeamsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *SharedWithTeamsRequestBuilder) Count()(*i7d72d92a2997418889d1e4fe67659b814282c65ab03a1f577001cb5560c8f8dd.CountRequestBuilder) { return i7d72d92a2997418889d1e4fe67659b814282c65ab03a1f577001cb5560c8f8dd.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) CreateGetRequestInformation(options *SharedWithTeamsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *SharedWithTeamsRequestBuilder) CreatePostRequestInformation(options *Sh } return requestInfo, nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) Get(options *SharedWithTeamsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/team/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go b/groups/item/team/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go index 95ad09fe70b..055452b6830 100644 --- a/groups/item/team/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go +++ b/groups/item/team/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go @@ -37,7 +37,7 @@ type SharedWithChannelTeamInfoItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -106,7 +106,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateDeleteRequestInforma } return requestInfo, nil } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateGetRequestInformation(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -160,7 +160,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) Delete(options *SharedWith } return nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) Get(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/groups/item/team/primarychannel/sharedwithteams/shared_with_teams_request_builder.go b/groups/item/team/primarychannel/sharedwithteams/shared_with_teams_request_builder.go index 3693e77f9aa..d9717e58cbe 100644 --- a/groups/item/team/primarychannel/sharedwithteams/shared_with_teams_request_builder.go +++ b/groups/item/team/primarychannel/sharedwithteams/shared_with_teams_request_builder.go @@ -27,7 +27,7 @@ type SharedWithTeamsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithTeamsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewSharedWithTeamsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *SharedWithTeamsRequestBuilder) Count()(*iaee3cc7285ad2bc5104b2e489acd65a92632d1fe2e7ce7e382780e84b01d4c40.CountRequestBuilder) { return iaee3cc7285ad2bc5104b2e489acd65a92632d1fe2e7ce7e382780e84b01d4c40.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) CreateGetRequestInformation(options *SharedWithTeamsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *SharedWithTeamsRequestBuilder) CreatePostRequestInformation(options *Sh } return requestInfo, nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) Get(options *SharedWithTeamsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/access_package_assignments_request_builder.go b/identitygovernance/entitlementmanagement/accesspackageassignments/access_package_assignments_request_builder.go index 1b50a6f2e0d..367ae9414bf 100644 --- a/identitygovernance/entitlementmanagement/accesspackageassignments/access_package_assignments_request_builder.go +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/access_package_assignments_request_builder.go @@ -4,6 +4,9 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i049626d45b2c2e5eba3958e778c106587f9ea12daffa6af0f49d44162d7f7757 "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid" + i2610e8d5a79e56e9671744795aeb6b914715da0e0d5ebe2f35403e5076d2f3e2 "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid" + i3fee9b70f56659fe1b99e4947654ed4f9a91b0f0dff2009051251b4b2fadde3e "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess" i4ca4402d2a675564f16e1906c3258cbb280823aba29ac5775bd16baed3dcc0b9 "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance/entitlementmanagement/accesspackageassignments/count" i5eeef1e921b924c9513db6945b3258fc213c1751887b288911ad4009a8138495 "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance/entitlementmanagement/accesspackageassignments/filterbycurrentuserwithon" ) @@ -58,6 +61,18 @@ type AccessPackageAssignmentsRequestBuilderPostOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } +// AdditionalAccess provides operations to call the additionalAccess method. +func (m *AccessPackageAssignmentsRequestBuilder) AdditionalAccess()(*i3fee9b70f56659fe1b99e4947654ed4f9a91b0f0dff2009051251b4b2fadde3e.AdditionalAccessRequestBuilder) { + return i3fee9b70f56659fe1b99e4947654ed4f9a91b0f0dff2009051251b4b2fadde3e.NewAdditionalAccessRequestBuilderInternal(m.pathParameters, m.requestAdapter); +} +// AdditionalAccessWithAccessPackageId provides operations to call the additionalAccess method. +func (m *AccessPackageAssignmentsRequestBuilder) AdditionalAccessWithAccessPackageId(accessPackageId *string)(*i049626d45b2c2e5eba3958e778c106587f9ea12daffa6af0f49d44162d7f7757.AdditionalAccessWithAccessPackageIdRequestBuilder) { + return i049626d45b2c2e5eba3958e778c106587f9ea12daffa6af0f49d44162d7f7757.NewAdditionalAccessWithAccessPackageIdRequestBuilderInternal(m.pathParameters, m.requestAdapter, accessPackageId); +} +// AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId provides operations to call the additionalAccess method. +func (m *AccessPackageAssignmentsRequestBuilder) AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId(accessPackageId *string, incompatibleAccessPackageId *string)(*i2610e8d5a79e56e9671744795aeb6b914715da0e0d5ebe2f35403e5076d2f3e2.AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder) { + return i2610e8d5a79e56e9671744795aeb6b914715da0e0d5ebe2f35403e5076d2f3e2.NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderInternal(m.pathParameters, m.requestAdapter, accessPackageId, incompatibleAccessPackageId); +} // NewAccessPackageAssignmentsRequestBuilderInternal instantiates a new AccessPackageAssignmentsRequestBuilder and sets the default values. func NewAccessPackageAssignmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AccessPackageAssignmentsRequestBuilder) { m := &AccessPackageAssignmentsRequestBuilder{ diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_request_builder.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_request_builder.go new file mode 100644 index 00000000000..76677015954 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_request_builder.go @@ -0,0 +1,72 @@ +package additionalaccess + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// AdditionalAccessRequestBuilder provides operations to call the additionalAccess method. +type AdditionalAccessRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// AdditionalAccessRequestBuilderGetOptions options for Get +type AdditionalAccessRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewAdditionalAccessRequestBuilderInternal instantiates a new AdditionalAccessRequestBuilder and sets the default values. +func NewAdditionalAccessRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AdditionalAccessRequestBuilder) { + m := &AdditionalAccessRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/microsoft.graph.additionalAccess()"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewAdditionalAccessRequestBuilder instantiates a new AdditionalAccessRequestBuilder and sets the default values. +func NewAdditionalAccessRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AdditionalAccessRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAdditionalAccessRequestBuilderInternal(urlParams, requestAdapter) +} +// CreateGetRequestInformation invoke function additionalAccess +func (m *AdditionalAccessRequestBuilder) CreateGetRequestInformation(options *AdditionalAccessRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get invoke function additionalAccess +func (m *AdditionalAccessRequestBuilder) Get(options *AdditionalAccessRequestBuilderGetOptions)(AdditionalAccessResponseable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendAsync(requestInfo, CreateAdditionalAccessResponseFromDiscriminatorValue, nil, nil) + if err != nil { + return nil, err + } + return res.(AdditionalAccessResponseable), nil +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_response.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_response.go new file mode 100644 index 00000000000..71ba516a188 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_response.go @@ -0,0 +1,92 @@ +package additionalaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// AdditionalAccessResponse provides operations to call the additionalAccess method. +type AdditionalAccessResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // The value property + value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable +} +// NewAdditionalAccessResponse instantiates a new additionalAccessResponse and sets the default values. +func NewAdditionalAccessResponse()(*AdditionalAccessResponse) { + m := &AdditionalAccessResponse{ + } + m.SetAdditionalData(make(map[string]interface{})); + return m +} +// CreateAdditionalAccessResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdditionalAccessResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdditionalAccessResponse(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AdditionalAccessResponse) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdditionalAccessResponse) 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.CreateAccessPackageAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable, len(val)) + for i, v := range val { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *AdditionalAccessResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) { + if m == nil { + return nil + } else { + return m.value + } +} +// Serialize serializes information the current object +func (m *AdditionalAccessResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + 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 *AdditionalAccessResponse) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetValue sets the value property value. The value property +func (m *AdditionalAccessResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable)() { + if m != nil { + m.value = value + } +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_responseable.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_responseable.go new file mode 100644 index 00000000000..2c0a500bab2 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccess/additional_access_responseable.go @@ -0,0 +1,14 @@ +package additionalaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// AdditionalAccessResponseable +type AdditionalAccessResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable)() +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_request_builder.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_request_builder.go new file mode 100644 index 00000000000..8cbb0c8a22b --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_request_builder.go @@ -0,0 +1,75 @@ +package additionalaccesswithaccesspackageid + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// AdditionalAccessWithAccessPackageIdRequestBuilder provides operations to call the additionalAccess method. +type AdditionalAccessWithAccessPackageIdRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// AdditionalAccessWithAccessPackageIdRequestBuilderGetOptions options for Get +type AdditionalAccessWithAccessPackageIdRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewAdditionalAccessWithAccessPackageIdRequestBuilderInternal instantiates a new AdditionalAccessWithAccessPackageIdRequestBuilder and sets the default values. +func NewAdditionalAccessWithAccessPackageIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, accessPackageId *string)(*AdditionalAccessWithAccessPackageIdRequestBuilder) { + m := &AdditionalAccessWithAccessPackageIdRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/microsoft.graph.additionalAccess(accessPackageId='{accessPackageId}')"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + if accessPackageId != nil { + urlTplParams[""] = *accessPackageId + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewAdditionalAccessWithAccessPackageIdRequestBuilder instantiates a new AdditionalAccessWithAccessPackageIdRequestBuilder and sets the default values. +func NewAdditionalAccessWithAccessPackageIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AdditionalAccessWithAccessPackageIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAdditionalAccessWithAccessPackageIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// CreateGetRequestInformation invoke function additionalAccess +func (m *AdditionalAccessWithAccessPackageIdRequestBuilder) CreateGetRequestInformation(options *AdditionalAccessWithAccessPackageIdRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get invoke function additionalAccess +func (m *AdditionalAccessWithAccessPackageIdRequestBuilder) Get(options *AdditionalAccessWithAccessPackageIdRequestBuilderGetOptions)(AdditionalAccessWithAccessPackageIdResponseable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendAsync(requestInfo, CreateAdditionalAccessWithAccessPackageIdResponseFromDiscriminatorValue, nil, nil) + if err != nil { + return nil, err + } + return res.(AdditionalAccessWithAccessPackageIdResponseable), nil +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_response.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_response.go new file mode 100644 index 00000000000..58e14454cd0 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_response.go @@ -0,0 +1,92 @@ +package additionalaccesswithaccesspackageid + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// AdditionalAccessWithAccessPackageIdResponse provides operations to call the additionalAccess method. +type AdditionalAccessWithAccessPackageIdResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // The value property + value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable +} +// NewAdditionalAccessWithAccessPackageIdResponse instantiates a new additionalAccessWithAccessPackageIdResponse and sets the default values. +func NewAdditionalAccessWithAccessPackageIdResponse()(*AdditionalAccessWithAccessPackageIdResponse) { + m := &AdditionalAccessWithAccessPackageIdResponse{ + } + m.SetAdditionalData(make(map[string]interface{})); + return m +} +// CreateAdditionalAccessWithAccessPackageIdResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdditionalAccessWithAccessPackageIdResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdditionalAccessWithAccessPackageIdResponse(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AdditionalAccessWithAccessPackageIdResponse) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdditionalAccessWithAccessPackageIdResponse) 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.CreateAccessPackageAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable, len(val)) + for i, v := range val { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *AdditionalAccessWithAccessPackageIdResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) { + if m == nil { + return nil + } else { + return m.value + } +} +// Serialize serializes information the current object +func (m *AdditionalAccessWithAccessPackageIdResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + 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 *AdditionalAccessWithAccessPackageIdResponse) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetValue sets the value property value. The value property +func (m *AdditionalAccessWithAccessPackageIdResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable)() { + if m != nil { + m.value = value + } +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_responseable.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_responseable.go new file mode 100644 index 00000000000..6bdfe691627 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageid/additional_access_with_access_package_id_responseable.go @@ -0,0 +1,14 @@ +package additionalaccesswithaccesspackageid + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// AdditionalAccessWithAccessPackageIdResponseable +type AdditionalAccessWithAccessPackageIdResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable)() +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.go new file mode 100644 index 00000000000..27a00843387 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_request_builder.go @@ -0,0 +1,78 @@ +package additionalaccesswithaccesspackageidwithincompatibleaccesspackageid + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder provides operations to call the additionalAccess method. +type AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderGetOptions options for Get +type AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderInternal instantiates a new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder and sets the default values. +func NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, accessPackageId *string, incompatibleAccessPackageId *string)(*AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder) { + m := &AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/microsoft.graph.additionalAccess(accessPackageId='{accessPackageId}',incompatibleAccessPackageId='{incompatibleAccessPackageId}')"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + if accessPackageId != nil { + urlTplParams[""] = *accessPackageId + } + if incompatibleAccessPackageId != nil { + urlTplParams[""] = *incompatibleAccessPackageId + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder instantiates a new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder and sets the default values. +func NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// CreateGetRequestInformation invoke function additionalAccess +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder) CreateGetRequestInformation(options *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get invoke function additionalAccess +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder) Get(options *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderGetOptions)(AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + res, err := m.requestAdapter.SendAsync(requestInfo, CreateAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseFromDiscriminatorValue, nil, nil) + if err != nil { + return nil, err + } + return res.(AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseable), nil +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_response.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_response.go new file mode 100644 index 00000000000..e471bd77914 --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_response.go @@ -0,0 +1,92 @@ +package additionalaccesswithaccesspackageidwithincompatibleaccesspackageid + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse provides operations to call the additionalAccess method. +type AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // The value property + value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable +} +// NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse instantiates a new additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse and sets the default values. +func NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse()(*AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) { + m := &AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse{ + } + m.SetAdditionalData(make(map[string]interface{})); + return m +} +// CreateAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) 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.CreateAccessPackageAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable, len(val)) + for i, v := range val { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) { + if m == nil { + return nil + } else { + return m.value + } +} +// Serialize serializes information the current object +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + 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 *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetValue sets the value property value. The value property +func (m *AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable)() { + if m != nil { + m.value = value + } +} diff --git a/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_responseable.go b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_responseable.go new file mode 100644 index 00000000000..049bb655baa --- /dev/null +++ b/identitygovernance/entitlementmanagement/accesspackageassignments/additionalaccesswithaccesspackageidwithincompatibleaccesspackageid/additional_access_with_access_package_id_with_incompatible_access_package_id_responseable.go @@ -0,0 +1,14 @@ +package additionalaccesswithaccesspackageidwithincompatibleaccesspackageid + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +// AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseable +type AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentable)() +} diff --git a/me/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go b/me/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go index 69a39296940..0a10895f297 100644 --- a/me/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/me/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from me +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i96a925a15fa42d0a8aa19cabd34321a6d9194b093338280cd16bda1e332658cc.CountRequestBuilder) { return i96a925a15fa42d0a8aa19cabd34321a6d9194b093338280cd16bda1e332658cc.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from me +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from me +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/me/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/me/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 0c30ac6843d..b8568f17af4 100644 --- a/me/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/me/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from me +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from me +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from me +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/me/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go b/me/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go index 4680f903197..7869188cfe2 100644 --- a/me/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/me/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from me +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*id27f080e6a13759f9c5c2cd6df0f317eed1b00918454abd1eafd77d1a1e3efc3.CountRequestBuilder) { return id27f080e6a13759f9c5c2cd6df0f317eed1b00918454abd1eafd77d1a1e3efc3.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from me +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from me +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/me/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/me/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go index f49d7a3e22e..8b3d58f67e2 100644 --- a/me/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/me/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from me +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from me +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from me +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/me/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go b/me/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go index 064c00f966c..d42b111cc85 100644 --- a/me/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/me/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from me +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*ie6d11af174ea57a00dbccaca764386942436c70494cf71128932cb98cb847f5c.CountRequestBuilder) { return ie6d11af174ea57a00dbccaca764386942436c70494cf71128932cb98cb847f5c.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from me +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from me +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/me/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/me/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 10e5735bee5..2a96ece99dd 100644 --- a/me/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/me/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from me +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from me +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from me +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/me/todo/lists/item/tasks/item/checklistitems/checklist_items_request_builder.go b/me/todo/lists/item/tasks/item/checklistitems/checklist_items_request_builder.go new file mode 100644 index 00000000000..fe0a46013cb --- /dev/null +++ b/me/todo/lists/item/tasks/item/checklistitems/checklist_items_request_builder.go @@ -0,0 +1,152 @@ +package checklistitems + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i914e6f99843460d783aa04426d39d68b59f939e80f3c93381b4c80dc456f1e30 "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/checklistitems/count" +) + +// ChecklistItemsRequestBuilder provides operations to manage the checklistItems property of the microsoft.graph.todoTask entity. +type ChecklistItemsRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// ChecklistItemsRequestBuilderGetOptions options for Get +type ChecklistItemsRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ChecklistItemsRequestBuilderGetQueryParameters + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// ChecklistItemsRequestBuilderGetQueryParameters get checklistItems from me +type ChecklistItemsRequestBuilderGetQueryParameters 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"` +} +// ChecklistItemsRequestBuilderPostOptions options for Post +type ChecklistItemsRequestBuilderPostOptions struct { + // + Body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewChecklistItemsRequestBuilderInternal instantiates a new ChecklistItemsRequestBuilder and sets the default values. +func NewChecklistItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemsRequestBuilder) { + m := &ChecklistItemsRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewChecklistItemsRequestBuilder instantiates a new ChecklistItemsRequestBuilder and sets the default values. +func NewChecklistItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewChecklistItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count the count property +func (m *ChecklistItemsRequestBuilder) Count()(*i914e6f99843460d783aa04426d39d68b59f939e80f3c93381b4c80dc456f1e30.CountRequestBuilder) { + return i914e6f99843460d783aa04426d39d68b59f939e80f3c93381b4c80dc456f1e30.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); +} +// CreateGetRequestInformation get checklistItems from me +func (m *ChecklistItemsRequestBuilder) CreateGetRequestInformation(options *ChecklistItemsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.QueryParameters != nil { + requestInfo.AddQueryParameters(*(options.QueryParameters)) + } + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// CreatePostRequestInformation create new navigation property to checklistItems for me +func (m *ChecklistItemsRequestBuilder) CreatePostRequestInformation(options *ChecklistItemsRequestBuilderPostOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get get checklistItems from me +func (m *ChecklistItemsRequestBuilder) Get(options *ChecklistItemsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemCollectionResponseable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateChecklistItemCollectionResponseFromDiscriminatorValue, nil, errorMapping) + if err != nil { + return nil, err + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemCollectionResponseable), nil +} +// Post create new navigation property to checklistItems for me +func (m *ChecklistItemsRequestBuilder) Post(options *ChecklistItemsRequestBuilderPostOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { + requestInfo, err := m.CreatePostRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateChecklistItemFromDiscriminatorValue, nil, errorMapping) + if err != nil { + return nil, err + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil +} diff --git a/me/todo/lists/item/tasks/item/checklistitems/count/count_request_builder.go b/me/todo/lists/item/tasks/item/checklistitems/count/count_request_builder.go new file mode 100644 index 00000000000..2de57586896 --- /dev/null +++ b/me/todo/lists/item/tasks/item/checklistitems/count/count_request_builder.go @@ -0,0 +1,77 @@ +package count + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CountRequestBuilder provides operations to count the resources in the collection. +type CountRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// CountRequestBuilderGetOptions options for Get +type CountRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) { + m := &CountRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems/$count"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCountRequestBuilderInternal(urlParams, requestAdapter) +} +// CreateGetRequestInformation get the number of the resource +func (m *CountRequestBuilder) CreateGetRequestInformation(options *CountRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get get the number of the resource +func (m *CountRequestBuilder) Get(options *CountRequestBuilderGetOptions)(*int32, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "int32", nil, errorMapping) + if err != nil { + return nil, err + } + return res.(*int32), nil +} diff --git a/me/todo/lists/item/tasks/item/checklistitems/item/checklist_item_item_request_builder.go b/me/todo/lists/item/tasks/item/checklistitems/item/checklist_item_item_request_builder.go new file mode 100644 index 00000000000..91abb2e6fd3 --- /dev/null +++ b/me/todo/lists/item/tasks/item/checklistitems/item/checklist_item_item_request_builder.go @@ -0,0 +1,177 @@ +package item + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ChecklistItemItemRequestBuilder provides operations to manage the checklistItems property of the microsoft.graph.todoTask entity. +type ChecklistItemItemRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// ChecklistItemItemRequestBuilderDeleteOptions options for Delete +type ChecklistItemItemRequestBuilderDeleteOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// ChecklistItemItemRequestBuilderGetOptions options for Get +type ChecklistItemItemRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ChecklistItemItemRequestBuilderGetQueryParameters + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// ChecklistItemItemRequestBuilderGetQueryParameters get checklistItems from me +type ChecklistItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ChecklistItemItemRequestBuilderPatchOptions options for Patch +type ChecklistItemItemRequestBuilderPatchOptions struct { + // + Body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewChecklistItemItemRequestBuilderInternal instantiates a new ChecklistItemItemRequestBuilder and sets the default values. +func NewChecklistItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemItemRequestBuilder) { + m := &ChecklistItemItemRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems/{checklistItem%2Did}{?%24select,%24expand}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewChecklistItemItemRequestBuilder instantiates a new ChecklistItemItemRequestBuilder and sets the default values. +func NewChecklistItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewChecklistItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// CreateDeleteRequestInformation delete navigation property checklistItems for me +func (m *ChecklistItemItemRequestBuilder) CreateDeleteRequestInformation(options *ChecklistItemItemRequestBuilderDeleteOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// CreateGetRequestInformation get checklistItems from me +func (m *ChecklistItemItemRequestBuilder) CreateGetRequestInformation(options *ChecklistItemItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.QueryParameters != nil { + requestInfo.AddQueryParameters(*(options.QueryParameters)) + } + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// CreatePatchRequestInformation update the navigation property checklistItems in me +func (m *ChecklistItemItemRequestBuilder) CreatePatchRequestInformation(options *ChecklistItemItemRequestBuilderPatchOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Delete delete navigation property checklistItems for me +func (m *ChecklistItemItemRequestBuilder) Delete(options *ChecklistItemItemRequestBuilderDeleteOptions)(error) { + requestInfo, err := m.CreateDeleteRequestInformation(options); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.requestAdapter.SendNoContentAsync(requestInfo, nil, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get checklistItems from me +func (m *ChecklistItemItemRequestBuilder) Get(options *ChecklistItemItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateChecklistItemFromDiscriminatorValue, nil, errorMapping) + if err != nil { + return nil, err + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil +} +// Patch update the navigation property checklistItems in me +func (m *ChecklistItemItemRequestBuilder) Patch(options *ChecklistItemItemRequestBuilderPatchOptions)(error) { + requestInfo, err := m.CreatePatchRequestInformation(options); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.requestAdapter.SendNoContentAsync(requestInfo, nil, errorMapping) + if err != nil { + return err + } + return nil +} diff --git a/me/todo/lists/item/tasks/item/todo_task_item_request_builder.go b/me/todo/lists/item/tasks/item/todo_task_item_request_builder.go index 09efbb9fba6..e8a4f607a46 100644 --- a/me/todo/lists/item/tasks/item/todo_task_item_request_builder.go +++ b/me/todo/lists/item/tasks/item/todo_task_item_request_builder.go @@ -4,8 +4,10 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i3adc90057c795befd8028e54019c8fc8d20d74d0cdd16cef85704caf4cba6c78 "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/checklistitems" i4b453bade987cdc7d78bf2dbba94d4dbc45a5e405d3622a58a4d26c09b49e08a "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/linkedresources" ie7794ee0bc0caebd554d994f150a0b208c084c890b7636d17ca1336d19fff68c "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/extensions" + i18fbd397aecd69882835c79225e981ebfe516d7af8083583884fb5e571c16f72 "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/checklistitems/item" i6918a4356d3d8463417391beae7e08e9b5cea2610411228e7577257cbc0e08e8 "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/extensions/item" i6ffb4522698e1ae7e78c00250910de6f003132aa52ac20af42871bdf610bd8fa "github.com/microsoftgraph/msgraph-beta-sdk-go/me/todo/lists/item/tasks/item/linkedresources/item" ) @@ -57,6 +59,21 @@ type TodoTaskItemRequestBuilderPatchOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } +// ChecklistItems the checklistItems property +func (m *TodoTaskItemRequestBuilder) ChecklistItems()(*i3adc90057c795befd8028e54019c8fc8d20d74d0cdd16cef85704caf4cba6c78.ChecklistItemsRequestBuilder) { + return i3adc90057c795befd8028e54019c8fc8d20d74d0cdd16cef85704caf4cba6c78.NewChecklistItemsRequestBuilderInternal(m.pathParameters, m.requestAdapter); +} +// ChecklistItemsById gets an item from the github.com/microsoftgraph/msgraph-beta-sdk-go/.me.todo.lists.item.tasks.item.checklistItems.item collection +func (m *TodoTaskItemRequestBuilder) ChecklistItemsById(id string)(*i18fbd397aecd69882835c79225e981ebfe516d7af8083583884fb5e571c16f72.ChecklistItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.pathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["checklistItem%2Did"] = id + } + return i18fbd397aecd69882835c79225e981ebfe516d7af8083583884fb5e571c16f72.NewChecklistItemItemRequestBuilderInternal(urlTplParams, m.requestAdapter); +} // NewTodoTaskItemRequestBuilderInternal instantiates a new TodoTaskItemRequestBuilder and sets the default values. func NewTodoTaskItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TodoTaskItemRequestBuilder) { m := &TodoTaskItemRequestBuilder{ diff --git a/models/action_state.go b/models/action_state.go index 510c8978925..0b02ca06e9b 100644 --- a/models/action_state.go +++ b/models/action_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ActionState int const ( diff --git a/models/administrative_unit.go b/models/administrative_unit.go index 419471fa4e9..533cd845b6e 100644 --- a/models/administrative_unit.go +++ b/models/administrative_unit.go @@ -13,6 +13,8 @@ type AdministrativeUnit struct { displayName *string // The collection of open extensions defined for this administrative unit. Nullable. extensions []Extensionable + // The isMemberManagementRestricted property + isMemberManagementRestricted *bool // Users and groups that are members of this administrative unit. Supports $expand. members []DirectoryObjectable // Scoped-role members of this administrative unit. @@ -92,6 +94,16 @@ func (m *AdministrativeUnit) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["isMemberManagementRestricted"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMemberManagementRestricted(val) + } + return nil + } res["members"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateDirectoryObjectFromDiscriminatorValue) if err != nil { @@ -132,6 +144,14 @@ func (m *AdministrativeUnit) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetIsMemberManagementRestricted gets the isMemberManagementRestricted property value. The isMemberManagementRestricted property +func (m *AdministrativeUnit) GetIsMemberManagementRestricted()(*bool) { + if m == nil { + return nil + } else { + return m.isMemberManagementRestricted + } +} // GetMembers gets the members property value. Users and groups that are members of this administrative unit. Supports $expand. func (m *AdministrativeUnit) GetMembers()([]DirectoryObjectable) { if m == nil { @@ -184,6 +204,12 @@ func (m *AdministrativeUnit) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteBoolValue("isMemberManagementRestricted", m.GetIsMemberManagementRestricted()) + if err != nil { + return err + } + } if m.GetMembers() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMembers())) for i, v := range m.GetMembers() { @@ -230,6 +256,12 @@ func (m *AdministrativeUnit) SetExtensions(value []Extensionable)() { m.extensions = value } } +// SetIsMemberManagementRestricted sets the isMemberManagementRestricted property value. The isMemberManagementRestricted property +func (m *AdministrativeUnit) SetIsMemberManagementRestricted(value *bool)() { + if m != nil { + m.isMemberManagementRestricted = value + } +} // SetMembers sets the members property value. Users and groups that are members of this administrative unit. Supports $expand. func (m *AdministrativeUnit) SetMembers(value []DirectoryObjectable)() { if m != nil { diff --git a/models/administrative_unitable.go b/models/administrative_unitable.go index 83ecbec6ed7..dc61a37203f 100644 --- a/models/administrative_unitable.go +++ b/models/administrative_unitable.go @@ -11,12 +11,14 @@ type AdministrativeUnitable interface { GetDescription()(*string) GetDisplayName()(*string) GetExtensions()([]Extensionable) + GetIsMemberManagementRestricted()(*bool) GetMembers()([]DirectoryObjectable) GetScopedRoleMembers()([]ScopedRoleMembershipable) GetVisibility()(*string) SetDescription(value *string)() SetDisplayName(value *string)() SetExtensions(value []Extensionable)() + SetIsMemberManagementRestricted(value *bool)() SetMembers(value []DirectoryObjectable)() SetScopedRoleMembers(value []ScopedRoleMembershipable)() SetVisibility(value *string)() diff --git a/models/app_log_upload_state.go b/models/app_log_upload_state.go index 75631f6c8a1..2a6d2097a17 100644 --- a/models/app_log_upload_state.go +++ b/models/app_log_upload_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type AppLogUploadState int const ( diff --git a/models/application_mode.go b/models/application_mode.go index 3aff073a12f..5e1344b2a8b 100644 --- a/models/application_mode.go +++ b/models/application_mode.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the dataClassificationService singleton. +// Provides operations to manage the compliance singleton. type ApplicationMode int const ( diff --git a/models/call.go b/models/call.go index 8f249afe142..ca08353ebc6 100644 --- a/models/call.go +++ b/models/call.go @@ -17,13 +17,13 @@ type Call struct { callbackUri *string // A unique identifier for all the participant calls in a conference or a unique identifier for two participant calls in a P2P call. This needs to be copied over from Microsoft.Graph.Call.CallChainId. callChainId *string - // The callOptions property + // Contains the optional features for the call. callOptions CallOptionsable // The routing information on how the call was retargeted. Read-only. callRoutes []CallRouteable // The chat information. Required information for joining a meeting. chatInfo ChatInfoable - // The contentSharingSessions property + // Read-only. Nullable. contentSharingSessions []ContentSharingSessionable // The direction of the call. The possible value are incoming or outgoing. Read-only. direction *CallDirection @@ -119,7 +119,7 @@ func (m *Call) GetCallChainId()(*string) { return m.callChainId } } -// GetCallOptions gets the callOptions property value. The callOptions property +// GetCallOptions gets the callOptions property value. Contains the optional features for the call. func (m *Call) GetCallOptions()(CallOptionsable) { if m == nil { return nil @@ -143,7 +143,7 @@ func (m *Call) GetChatInfo()(ChatInfoable) { return m.chatInfo } } -// GetContentSharingSessions gets the contentSharingSessions property value. The contentSharingSessions property +// GetContentSharingSessions gets the contentSharingSessions property value. Read-only. Nullable. func (m *Call) GetContentSharingSessions()([]ContentSharingSessionable) { if m == nil { return nil @@ -904,7 +904,7 @@ func (m *Call) SetCallChainId(value *string)() { m.callChainId = value } } -// SetCallOptions sets the callOptions property value. The callOptions property +// SetCallOptions sets the callOptions property value. Contains the optional features for the call. func (m *Call) SetCallOptions(value CallOptionsable)() { if m != nil { m.callOptions = value @@ -922,7 +922,7 @@ func (m *Call) SetChatInfo(value ChatInfoable)() { m.chatInfo = value } } -// SetContentSharingSessions sets the contentSharingSessions property value. The contentSharingSessions property +// SetContentSharingSessions sets the contentSharingSessions property value. Read-only. Nullable. func (m *Call) SetContentSharingSessions(value []ContentSharingSessionable)() { if m != nil { m.contentSharingSessions = value diff --git a/models/call_options.go b/models/call_options.go index 80939eee122..89f669692b1 100644 --- a/models/call_options.go +++ b/models/call_options.go @@ -10,7 +10,7 @@ type CallOptions struct { additionalData map[string]interface{} // The hideBotAfterEscalation property hideBotAfterEscalation *bool - // The isContentSharingNotificationEnabled property + // Indicates whether content sharing notifications should be enabled for the call. isContentSharingNotificationEnabled *bool } // NewCallOptions instantiates a new callOptions and sets the default values. @@ -65,7 +65,7 @@ func (m *CallOptions) GetHideBotAfterEscalation()(*bool) { return m.hideBotAfterEscalation } } -// GetIsContentSharingNotificationEnabled gets the isContentSharingNotificationEnabled property value. The isContentSharingNotificationEnabled property +// GetIsContentSharingNotificationEnabled gets the isContentSharingNotificationEnabled property value. Indicates whether content sharing notifications should be enabled for the call. func (m *CallOptions) GetIsContentSharingNotificationEnabled()(*bool) { if m == nil { return nil @@ -107,7 +107,7 @@ func (m *CallOptions) SetHideBotAfterEscalation(value *bool)() { m.hideBotAfterEscalation = value } } -// SetIsContentSharingNotificationEnabled sets the isContentSharingNotificationEnabled property value. The isContentSharingNotificationEnabled property +// SetIsContentSharingNotificationEnabled sets the isContentSharingNotificationEnabled property value. Indicates whether content sharing notifications should be enabled for the call. func (m *CallOptions) SetIsContentSharingNotificationEnabled(value *bool)() { if m != nil { m.isContentSharingNotificationEnabled = value diff --git a/models/channel.go b/models/channel.go index 9e0de73b261..34704c13a40 100644 --- a/models/channel.go +++ b/models/channel.go @@ -28,7 +28,7 @@ type Channel struct { messages []ChatMessageable // Settings to configure channel moderation to control who can start new posts and reply to posts in that channel. moderationSettings ChannelModerationSettingsable - // A collection of teams shared with the channel. + // A collection of teams with which a channel is shared. sharedWithTeams []SharedWithChannelTeamInfoable // A collection of all the tabs in the channel. A navigation property. tabs []TeamsTabable @@ -289,7 +289,7 @@ func (m *Channel) GetModerationSettings()(ChannelModerationSettingsable) { return m.moderationSettings } } -// GetSharedWithTeams gets the sharedWithTeams property value. A collection of teams shared with the channel. +// GetSharedWithTeams gets the sharedWithTeams property value. A collection of teams with which a channel is shared. func (m *Channel) GetSharedWithTeams()([]SharedWithChannelTeamInfoable) { if m == nil { return nil @@ -490,7 +490,7 @@ func (m *Channel) SetModerationSettings(value ChannelModerationSettingsable)() { m.moderationSettings = value } } -// SetSharedWithTeams sets the sharedWithTeams property value. A collection of teams shared with the channel. +// SetSharedWithTeams sets the sharedWithTeams property value. A collection of teams with which a channel is shared. func (m *Channel) SetSharedWithTeams(value []SharedWithChannelTeamInfoable)() { if m != nil { m.sharedWithTeams = value diff --git a/models/chassis_type.go b/models/chassis_type.go index 04357c28040..96e79ca683d 100644 --- a/models/chassis_type.go +++ b/models/chassis_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ChassisType int const ( diff --git a/models/chat_message_attachment.go b/models/chat_message_attachment.go index 581c96a771e..a3855a51615 100644 --- a/models/chat_message_attachment.go +++ b/models/chat_message_attachment.go @@ -18,7 +18,7 @@ type ChatMessageAttachment struct { id *string // Name of the attachment. name *string - // The teamsAppId property + // The ID of the Teams app that is associated with the attachment. The property is specifically used to attribute a Teams message card to the specified app. teamsAppId *string // URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user clicks the image, the channel would open the document. thumbnailUrl *string @@ -157,7 +157,7 @@ func (m *ChatMessageAttachment) GetName()(*string) { return m.name } } -// GetTeamsAppId gets the teamsAppId property value. The teamsAppId property +// GetTeamsAppId gets the teamsAppId property value. The ID of the Teams app that is associated with the attachment. The property is specifically used to attribute a Teams message card to the specified app. func (m *ChatMessageAttachment) GetTeamsAppId()(*string) { if m == nil { return nil @@ -261,7 +261,7 @@ func (m *ChatMessageAttachment) SetName(value *string)() { m.name = value } } -// SetTeamsAppId sets the teamsAppId property value. The teamsAppId property +// SetTeamsAppId sets the teamsAppId property value. The ID of the Teams app that is associated with the attachment. The property is specifically used to attribute a Teams message card to the specified app. func (m *ChatMessageAttachment) SetTeamsAppId(value *string)() { if m != nil { m.teamsAppId = value diff --git a/models/cloud_app_security_session_control_type.go b/models/cloud_app_security_session_control_type.go index db7c0f6edfb..271c3a930be 100644 --- a/models/cloud_app_security_session_control_type.go +++ b/models/cloud_app_security_session_control_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type CloudAppSecuritySessionControlType int const ( diff --git a/models/cloud_pc_operating_system.go b/models/cloud_pc_operating_system.go index d4f3fe72b9c..b8e608e3212 100644 --- a/models/cloud_pc_operating_system.go +++ b/models/cloud_pc_operating_system.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type CloudPcOperatingSystem int const ( diff --git a/models/cloud_pc_service_plan_type.go b/models/cloud_pc_service_plan_type.go index 1f7114d2c53..e2bd12289ae 100644 --- a/models/cloud_pc_service_plan_type.go +++ b/models/cloud_pc_service_plan_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type CloudPcServicePlanType int const ( diff --git a/models/cloud_pc_status.go b/models/cloud_pc_status.go index b5d30d51871..f8e5cc69bf4 100644 --- a/models/cloud_pc_status.go +++ b/models/cloud_pc_status.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type CloudPcStatus int const ( diff --git a/models/cloud_pc_user_account_type.go b/models/cloud_pc_user_account_type.go index 9d77f663340..873f2f46c9b 100644 --- a/models/cloud_pc_user_account_type.go +++ b/models/cloud_pc_user_account_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type CloudPcUserAccountType int const ( diff --git a/models/compliance_state.go b/models/compliance_state.go index 1b910b03c28..d5e10a8cac3 100644 --- a/models/compliance_state.go +++ b/models/compliance_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ComplianceState int const ( diff --git a/models/compliance_status.go b/models/compliance_status.go index 64ff91d1b43..04f71a3ac9f 100644 --- a/models/compliance_status.go +++ b/models/compliance_status.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceAppManagement singleton. +// Provides operations to manage the compliance singleton. type ComplianceStatus int const ( diff --git a/models/conditional_access_client_app.go b/models/conditional_access_client_app.go index 0ad64bfd6d3..8af433622e5 100644 --- a/models/conditional_access_client_app.go +++ b/models/conditional_access_client_app.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type ConditionalAccessClientApp int const ( diff --git a/models/conditional_access_device_platform.go b/models/conditional_access_device_platform.go index 55e9b25a89c..1b87bbb9df1 100644 --- a/models/conditional_access_device_platform.go +++ b/models/conditional_access_device_platform.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type ConditionalAccessDevicePlatform int const ( diff --git a/models/conditional_access_grant_control.go b/models/conditional_access_grant_control.go index 3b4083b7e48..051b836cbdc 100644 --- a/models/conditional_access_grant_control.go +++ b/models/conditional_access_grant_control.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type ConditionalAccessGrantControl int const ( diff --git a/models/conditional_access_policy_state.go b/models/conditional_access_policy_state.go index fb2cead9eb0..23507bcff8e 100644 --- a/models/conditional_access_policy_state.go +++ b/models/conditional_access_policy_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type ConditionalAccessPolicyState int const ( diff --git a/models/configuration_manager_client_state.go b/models/configuration_manager_client_state.go index 93e736bb61a..d1010b07ec8 100644 --- a/models/configuration_manager_client_state.go +++ b/models/configuration_manager_client_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ConfigurationManagerClientState int const ( diff --git a/models/continuous_access_evaluation_mode.go b/models/continuous_access_evaluation_mode.go index db3bee03b64..a6619ba1855 100644 --- a/models/continuous_access_evaluation_mode.go +++ b/models/continuous_access_evaluation_mode.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type ContinuousAccessEvaluationMode int const ( diff --git a/models/cors_configuration.go b/models/cors_configuration.go new file mode 100644 index 00000000000..1e84c75d056 --- /dev/null +++ b/models/cors_configuration.go @@ -0,0 +1,223 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CorsConfiguration +type CorsConfiguration struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // The allowedHeaders property + allowedHeaders []string + // The allowedMethods property + allowedMethods []string + // The allowedOrigins property + allowedOrigins []string + // The maxAgeInSeconds property + maxAgeInSeconds *int32 + // The resource property + resource *string +} +// NewCorsConfiguration instantiates a new corsConfiguration and sets the default values. +func NewCorsConfiguration()(*CorsConfiguration) { + m := &CorsConfiguration{ + } + m.SetAdditionalData(make(map[string]interface{})); + return m +} +// CreateCorsConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCorsConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCorsConfiguration(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CorsConfiguration) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetAllowedHeaders gets the allowedHeaders property value. The allowedHeaders property +func (m *CorsConfiguration) GetAllowedHeaders()([]string) { + if m == nil { + return nil + } else { + return m.allowedHeaders + } +} +// GetAllowedMethods gets the allowedMethods property value. The allowedMethods property +func (m *CorsConfiguration) GetAllowedMethods()([]string) { + if m == nil { + return nil + } else { + return m.allowedMethods + } +} +// GetAllowedOrigins gets the allowedOrigins property value. The allowedOrigins property +func (m *CorsConfiguration) GetAllowedOrigins()([]string) { + if m == nil { + return nil + } else { + return m.allowedOrigins + } +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CorsConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["allowedHeaders"] = 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 { + res[i] = *(v.(*string)) + } + m.SetAllowedHeaders(res) + } + return nil + } + res["allowedMethods"] = 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 { + res[i] = *(v.(*string)) + } + m.SetAllowedMethods(res) + } + return nil + } + res["allowedOrigins"] = 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 { + res[i] = *(v.(*string)) + } + m.SetAllowedOrigins(res) + } + return nil + } + res["maxAgeInSeconds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetMaxAgeInSeconds(val) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResource(val) + } + return nil + } + return res +} +// GetMaxAgeInSeconds gets the maxAgeInSeconds property value. The maxAgeInSeconds property +func (m *CorsConfiguration) GetMaxAgeInSeconds()(*int32) { + if m == nil { + return nil + } else { + return m.maxAgeInSeconds + } +} +// GetResource gets the resource property value. The resource property +func (m *CorsConfiguration) GetResource()(*string) { + if m == nil { + return nil + } else { + return m.resource + } +} +// Serialize serializes information the current object +func (m *CorsConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAllowedHeaders() != nil { + err := writer.WriteCollectionOfStringValues("allowedHeaders", m.GetAllowedHeaders()) + if err != nil { + return err + } + } + if m.GetAllowedMethods() != nil { + err := writer.WriteCollectionOfStringValues("allowedMethods", m.GetAllowedMethods()) + if err != nil { + return err + } + } + if m.GetAllowedOrigins() != nil { + err := writer.WriteCollectionOfStringValues("allowedOrigins", m.GetAllowedOrigins()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("maxAgeInSeconds", m.GetMaxAgeInSeconds()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CorsConfiguration) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetAllowedHeaders sets the allowedHeaders property value. The allowedHeaders property +func (m *CorsConfiguration) SetAllowedHeaders(value []string)() { + if m != nil { + m.allowedHeaders = value + } +} +// SetAllowedMethods sets the allowedMethods property value. The allowedMethods property +func (m *CorsConfiguration) SetAllowedMethods(value []string)() { + if m != nil { + m.allowedMethods = value + } +} +// SetAllowedOrigins sets the allowedOrigins property value. The allowedOrigins property +func (m *CorsConfiguration) SetAllowedOrigins(value []string)() { + if m != nil { + m.allowedOrigins = value + } +} +// SetMaxAgeInSeconds sets the maxAgeInSeconds property value. The maxAgeInSeconds property +func (m *CorsConfiguration) SetMaxAgeInSeconds(value *int32)() { + if m != nil { + m.maxAgeInSeconds = value + } +} +// SetResource sets the resource property value. The resource property +func (m *CorsConfiguration) SetResource(value *string)() { + if m != nil { + m.resource = value + } +} diff --git a/models/cors_configurationable.go b/models/cors_configurationable.go new file mode 100644 index 00000000000..bef54225e55 --- /dev/null +++ b/models/cors_configurationable.go @@ -0,0 +1,21 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CorsConfigurationable +type CorsConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowedHeaders()([]string) + GetAllowedMethods()([]string) + GetAllowedOrigins()([]string) + GetMaxAgeInSeconds()(*int32) + GetResource()(*string) + SetAllowedHeaders(value []string)() + SetAllowedMethods(value []string)() + SetAllowedOrigins(value []string)() + SetMaxAgeInSeconds(value *int32)() + SetResource(value *string)() +} diff --git a/models/cross_tenant_access_policy_configuration_base.go b/models/cross_tenant_access_policy_configuration_base.go deleted file mode 100644 index 67ce5455368..00000000000 --- a/models/cross_tenant_access_policy_configuration_base.go +++ /dev/null @@ -1,194 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CrossTenantAccessPolicyConfigurationBase -type CrossTenantAccessPolicyConfigurationBase struct { - Entity - // Defines your configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. - b2bCollaborationInbound CrossTenantAccessPolicyB2BSettingable - // Defines your configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. - b2bCollaborationOutbound CrossTenantAccessPolicyB2BSettingable - // Defines your configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. - b2bDirectConnectInbound CrossTenantAccessPolicyB2BSettingable - // Defines your configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. - b2bDirectConnectOutbound CrossTenantAccessPolicyB2BSettingable - // Determines the configuration for trusting other Conditional Access claims from external Azure AD organizations. - inboundTrust CrossTenantAccessPolicyInboundTrustable -} -// NewCrossTenantAccessPolicyConfigurationBase instantiates a new crossTenantAccessPolicyConfigurationBase and sets the default values. -func NewCrossTenantAccessPolicyConfigurationBase()(*CrossTenantAccessPolicyConfigurationBase) { - m := &CrossTenantAccessPolicyConfigurationBase{ - Entity: *NewEntity(), - } - return m -} -// CreateCrossTenantAccessPolicyConfigurationBaseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateCrossTenantAccessPolicyConfigurationBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewCrossTenantAccessPolicyConfigurationBase(), nil -} -// GetB2bCollaborationInbound gets the b2bCollaborationInbound property value. Defines your configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. -func (m *CrossTenantAccessPolicyConfigurationBase) GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) { - if m == nil { - return nil - } else { - return m.b2bCollaborationInbound - } -} -// GetB2bCollaborationOutbound gets the b2bCollaborationOutbound property value. Defines your configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. -func (m *CrossTenantAccessPolicyConfigurationBase) GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) { - if m == nil { - return nil - } else { - return m.b2bCollaborationOutbound - } -} -// GetB2bDirectConnectInbound gets the b2bDirectConnectInbound property value. Defines your configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. -func (m *CrossTenantAccessPolicyConfigurationBase) GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) { - if m == nil { - return nil - } else { - return m.b2bDirectConnectInbound - } -} -// GetB2bDirectConnectOutbound gets the b2bDirectConnectOutbound property value. Defines your configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. -func (m *CrossTenantAccessPolicyConfigurationBase) GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) { - if m == nil { - return nil - } else { - return m.b2bDirectConnectOutbound - } -} -// GetFieldDeserializers the deserialization information for the current model -func (m *CrossTenantAccessPolicyConfigurationBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["b2bCollaborationInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetB2bCollaborationInbound(val.(CrossTenantAccessPolicyB2BSettingable)) - } - return nil - } - res["b2bCollaborationOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetB2bCollaborationOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) - } - return nil - } - res["b2bDirectConnectInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetB2bDirectConnectInbound(val.(CrossTenantAccessPolicyB2BSettingable)) - } - return nil - } - res["b2bDirectConnectOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetB2bDirectConnectOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) - } - return nil - } - res["inboundTrust"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyInboundTrustFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInboundTrust(val.(CrossTenantAccessPolicyInboundTrustable)) - } - return nil - } - return res -} -// GetInboundTrust gets the inboundTrust property value. Determines the configuration for trusting other Conditional Access claims from external Azure AD organizations. -func (m *CrossTenantAccessPolicyConfigurationBase) GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) { - if m == nil { - return nil - } else { - return m.inboundTrust - } -} -// Serialize serializes information the current object -func (m *CrossTenantAccessPolicyConfigurationBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteObjectValue("b2bCollaborationInbound", m.GetB2bCollaborationInbound()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("b2bCollaborationOutbound", m.GetB2bCollaborationOutbound()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("b2bDirectConnectInbound", m.GetB2bDirectConnectInbound()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("b2bDirectConnectOutbound", m.GetB2bDirectConnectOutbound()) - if err != nil { - return err - } - } - { - err = writer.WriteObjectValue("inboundTrust", m.GetInboundTrust()) - if err != nil { - return err - } - } - return nil -} -// SetB2bCollaborationInbound sets the b2bCollaborationInbound property value. Defines your configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. -func (m *CrossTenantAccessPolicyConfigurationBase) SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() { - if m != nil { - m.b2bCollaborationInbound = value - } -} -// SetB2bCollaborationOutbound sets the b2bCollaborationOutbound property value. Defines your configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. -func (m *CrossTenantAccessPolicyConfigurationBase) SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() { - if m != nil { - m.b2bCollaborationOutbound = value - } -} -// SetB2bDirectConnectInbound sets the b2bDirectConnectInbound property value. Defines your configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. -func (m *CrossTenantAccessPolicyConfigurationBase) SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() { - if m != nil { - m.b2bDirectConnectInbound = value - } -} -// SetB2bDirectConnectOutbound sets the b2bDirectConnectOutbound property value. Defines your configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. -func (m *CrossTenantAccessPolicyConfigurationBase) SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() { - if m != nil { - m.b2bDirectConnectOutbound = value - } -} -// SetInboundTrust sets the inboundTrust property value. Determines the configuration for trusting other Conditional Access claims from external Azure AD organizations. -func (m *CrossTenantAccessPolicyConfigurationBase) SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() { - if m != nil { - m.inboundTrust = value - } -} diff --git a/models/cross_tenant_access_policy_configuration_baseable.go b/models/cross_tenant_access_policy_configuration_baseable.go deleted file mode 100644 index 7e267881f9a..00000000000 --- a/models/cross_tenant_access_policy_configuration_baseable.go +++ /dev/null @@ -1,21 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// CrossTenantAccessPolicyConfigurationBaseable -type CrossTenantAccessPolicyConfigurationBaseable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) - GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) - GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) - GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) - GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) - SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() - SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() - SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() - SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() - SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() -} diff --git a/models/cross_tenant_access_policy_configuration_default.go b/models/cross_tenant_access_policy_configuration_default.go index 8da5210bc0b..45e061b5acb 100644 --- a/models/cross_tenant_access_policy_configuration_default.go +++ b/models/cross_tenant_access_policy_configuration_default.go @@ -6,14 +6,24 @@ import ( // CrossTenantAccessPolicyConfigurationDefault type CrossTenantAccessPolicyConfigurationDefault struct { - CrossTenantAccessPolicyConfigurationBase + Entity + // Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + b2bCollaborationInbound CrossTenantAccessPolicyB2BSettingable + // Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + b2bCollaborationOutbound CrossTenantAccessPolicyB2BSettingable + // Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. + b2bDirectConnectInbound CrossTenantAccessPolicyB2BSettingable + // Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + b2bDirectConnectOutbound CrossTenantAccessPolicyB2BSettingable + // Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. + inboundTrust CrossTenantAccessPolicyInboundTrustable // If true, the default configuration is set to the system default configuration. If false, the default settings have been customized. isServiceDefault *bool } // NewCrossTenantAccessPolicyConfigurationDefault instantiates a new crossTenantAccessPolicyConfigurationDefault and sets the default values. func NewCrossTenantAccessPolicyConfigurationDefault()(*CrossTenantAccessPolicyConfigurationDefault) { m := &CrossTenantAccessPolicyConfigurationDefault{ - CrossTenantAccessPolicyConfigurationBase: *NewCrossTenantAccessPolicyConfigurationBase(), + Entity: *NewEntity(), } return m } @@ -21,9 +31,91 @@ func NewCrossTenantAccessPolicyConfigurationDefault()(*CrossTenantAccessPolicyCo func CreateCrossTenantAccessPolicyConfigurationDefaultFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCrossTenantAccessPolicyConfigurationDefault(), nil } +// GetB2bCollaborationInbound gets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationDefault) GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bCollaborationInbound + } +} +// GetB2bCollaborationOutbound gets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationDefault) GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bCollaborationOutbound + } +} +// GetB2bDirectConnectInbound gets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationDefault) GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bDirectConnectInbound + } +} +// GetB2bDirectConnectOutbound gets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationDefault) GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bDirectConnectOutbound + } +} // GetFieldDeserializers the deserialization information for the current model func (m *CrossTenantAccessPolicyConfigurationDefault) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.CrossTenantAccessPolicyConfigurationBase.GetFieldDeserializers() + res := m.Entity.GetFieldDeserializers() + res["b2bCollaborationInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bCollaborationInbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bCollaborationOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bCollaborationOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bDirectConnectInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bDirectConnectInbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bDirectConnectOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bDirectConnectOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["inboundTrust"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyInboundTrustFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInboundTrust(val.(CrossTenantAccessPolicyInboundTrustable)) + } + return nil + } res["isServiceDefault"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,6 +128,14 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) GetFieldDeserializers()(ma } return res } +// GetInboundTrust gets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. +func (m *CrossTenantAccessPolicyConfigurationDefault) GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) { + if m == nil { + return nil + } else { + return m.inboundTrust + } +} // GetIsServiceDefault gets the isServiceDefault property value. If true, the default configuration is set to the system default configuration. If false, the default settings have been customized. func (m *CrossTenantAccessPolicyConfigurationDefault) GetIsServiceDefault()(*bool) { if m == nil { @@ -46,10 +146,40 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) GetIsServiceDefault()(*boo } // Serialize serializes information the current object func (m *CrossTenantAccessPolicyConfigurationDefault) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.CrossTenantAccessPolicyConfigurationBase.Serialize(writer) + err := m.Entity.Serialize(writer) if err != nil { return err } + { + err = writer.WriteObjectValue("b2bCollaborationInbound", m.GetB2bCollaborationInbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bCollaborationOutbound", m.GetB2bCollaborationOutbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bDirectConnectInbound", m.GetB2bDirectConnectInbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("b2bDirectConnectOutbound", m.GetB2bDirectConnectOutbound()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("inboundTrust", m.GetInboundTrust()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isServiceDefault", m.GetIsServiceDefault()) if err != nil { @@ -58,6 +188,36 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) Serialize(writer i878a80d2 } return nil } +// SetB2bCollaborationInbound sets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationDefault) SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bCollaborationInbound = value + } +} +// SetB2bCollaborationOutbound sets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationDefault) SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bCollaborationOutbound = value + } +} +// SetB2bDirectConnectInbound sets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationDefault) SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bDirectConnectInbound = value + } +} +// SetB2bDirectConnectOutbound sets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationDefault) SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bDirectConnectOutbound = value + } +} +// SetInboundTrust sets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. +func (m *CrossTenantAccessPolicyConfigurationDefault) SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() { + if m != nil { + m.inboundTrust = value + } +} // SetIsServiceDefault sets the isServiceDefault property value. If true, the default configuration is set to the system default configuration. If false, the default settings have been customized. func (m *CrossTenantAccessPolicyConfigurationDefault) SetIsServiceDefault(value *bool)() { if m != nil { diff --git a/models/cross_tenant_access_policy_configuration_defaultable.go b/models/cross_tenant_access_policy_configuration_defaultable.go index 57bcb19e9c5..320e0f2117a 100644 --- a/models/cross_tenant_access_policy_configuration_defaultable.go +++ b/models/cross_tenant_access_policy_configuration_defaultable.go @@ -6,8 +6,18 @@ import ( // CrossTenantAccessPolicyConfigurationDefaultable type CrossTenantAccessPolicyConfigurationDefaultable interface { - CrossTenantAccessPolicyConfigurationBaseable + Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) + GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) GetIsServiceDefault()(*bool) + SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() + SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() SetIsServiceDefault(value *bool)() } diff --git a/models/cross_tenant_access_policy_configuration_partner.go b/models/cross_tenant_access_policy_configuration_partner.go index 78f83e52a1f..1063e7899ca 100644 --- a/models/cross_tenant_access_policy_configuration_partner.go +++ b/models/cross_tenant_access_policy_configuration_partner.go @@ -6,7 +6,18 @@ import ( // CrossTenantAccessPolicyConfigurationPartner type CrossTenantAccessPolicyConfigurationPartner struct { - CrossTenantAccessPolicyConfigurationBase + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + b2bCollaborationInbound CrossTenantAccessPolicyB2BSettingable + // Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + b2bCollaborationOutbound CrossTenantAccessPolicyB2BSettingable + // Defines your partner-specific configuration for users from other organizations accessing your resources via Azure B2B direct connect. + b2bDirectConnectInbound CrossTenantAccessPolicyB2BSettingable + // Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + b2bDirectConnectOutbound CrossTenantAccessPolicyB2BSettingable + // Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. + inboundTrust CrossTenantAccessPolicyInboundTrustable // Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. isServiceProvider *bool // The tenant identifier for the partner Azure AD organization. Read-only. Key. @@ -15,17 +26,107 @@ type CrossTenantAccessPolicyConfigurationPartner struct { // NewCrossTenantAccessPolicyConfigurationPartner instantiates a new crossTenantAccessPolicyConfigurationPartner and sets the default values. func NewCrossTenantAccessPolicyConfigurationPartner()(*CrossTenantAccessPolicyConfigurationPartner) { m := &CrossTenantAccessPolicyConfigurationPartner{ - CrossTenantAccessPolicyConfigurationBase: *NewCrossTenantAccessPolicyConfigurationBase(), } + m.SetAdditionalData(make(map[string]interface{})); return m } // CreateCrossTenantAccessPolicyConfigurationPartnerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value func CreateCrossTenantAccessPolicyConfigurationPartnerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCrossTenantAccessPolicyConfigurationPartner(), nil } +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CrossTenantAccessPolicyConfigurationPartner) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetB2bCollaborationInbound gets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationPartner) GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bCollaborationInbound + } +} +// GetB2bCollaborationOutbound gets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationPartner) GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bCollaborationOutbound + } +} +// GetB2bDirectConnectInbound gets the b2bDirectConnectInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationPartner) GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bDirectConnectInbound + } +} +// GetB2bDirectConnectOutbound gets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationPartner) GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) { + if m == nil { + return nil + } else { + return m.b2bDirectConnectOutbound + } +} // GetFieldDeserializers the deserialization information for the current model func (m *CrossTenantAccessPolicyConfigurationPartner) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.CrossTenantAccessPolicyConfigurationBase.GetFieldDeserializers() + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["b2bCollaborationInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bCollaborationInbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bCollaborationOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bCollaborationOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bDirectConnectInbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bDirectConnectInbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["b2bDirectConnectOutbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetB2bDirectConnectOutbound(val.(CrossTenantAccessPolicyB2BSettingable)) + } + return nil + } + res["inboundTrust"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyInboundTrustFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInboundTrust(val.(CrossTenantAccessPolicyInboundTrustable)) + } + return nil + } res["isServiceProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -48,6 +149,14 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetFieldDeserializers()(ma } return res } +// GetInboundTrust gets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. +func (m *CrossTenantAccessPolicyConfigurationPartner) GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) { + if m == nil { + return nil + } else { + return m.inboundTrust + } +} // GetIsServiceProvider gets the isServiceProvider property value. Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. func (m *CrossTenantAccessPolicyConfigurationPartner) GetIsServiceProvider()(*bool) { if m == nil { @@ -66,24 +175,92 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetTenantId()(*string) { } // Serialize serializes information the current object func (m *CrossTenantAccessPolicyConfigurationPartner) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.CrossTenantAccessPolicyConfigurationBase.Serialize(writer) - if err != nil { - return err + { + err := writer.WriteObjectValue("b2bCollaborationInbound", m.GetB2bCollaborationInbound()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("b2bCollaborationOutbound", m.GetB2bCollaborationOutbound()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("b2bDirectConnectInbound", m.GetB2bDirectConnectInbound()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("b2bDirectConnectOutbound", m.GetB2bDirectConnectOutbound()) + if err != nil { + return err + } } { - err = writer.WriteBoolValue("isServiceProvider", m.GetIsServiceProvider()) + err := writer.WriteObjectValue("inboundTrust", m.GetInboundTrust()) if err != nil { return err } } { - err = writer.WriteStringValue("tenantId", m.GetTenantId()) + err := writer.WriteBoolValue("isServiceProvider", m.GetIsServiceProvider()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { return err } } return nil } +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetB2bCollaborationInbound sets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bCollaborationInbound = value + } +} +// SetB2bCollaborationOutbound sets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bCollaborationOutbound = value + } +} +// SetB2bDirectConnectInbound sets the b2bDirectConnectInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bDirectConnectInbound = value + } +} +// SetB2bDirectConnectOutbound sets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() { + if m != nil { + m.b2bDirectConnectOutbound = value + } +} +// SetInboundTrust sets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() { + if m != nil { + m.inboundTrust = value + } +} // SetIsServiceProvider sets the isServiceProvider property value. Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. func (m *CrossTenantAccessPolicyConfigurationPartner) SetIsServiceProvider(value *bool)() { if m != nil { diff --git a/models/cross_tenant_access_policy_configuration_partnerable.go b/models/cross_tenant_access_policy_configuration_partnerable.go index cdbd3eb0440..ca5612e2ad6 100644 --- a/models/cross_tenant_access_policy_configuration_partnerable.go +++ b/models/cross_tenant_access_policy_configuration_partnerable.go @@ -6,10 +6,20 @@ import ( // CrossTenantAccessPolicyConfigurationPartnerable type CrossTenantAccessPolicyConfigurationPartnerable interface { - CrossTenantAccessPolicyConfigurationBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetB2bCollaborationInbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bCollaborationOutbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bDirectConnectInbound()(CrossTenantAccessPolicyB2BSettingable) + GetB2bDirectConnectOutbound()(CrossTenantAccessPolicyB2BSettingable) + GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) GetIsServiceProvider()(*bool) GetTenantId()(*string) + SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bDirectConnectInbound(value CrossTenantAccessPolicyB2BSettingable)() + SetB2bDirectConnectOutbound(value CrossTenantAccessPolicyB2BSettingable)() + SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() SetIsServiceProvider(value *bool)() SetTenantId(value *string)() } diff --git a/models/data_subject_type.go b/models/data_subject_type.go index 625c20475f2..bfb30336387 100644 --- a/models/data_subject_type.go +++ b/models/data_subject_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the privacy singleton. +// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. type DataSubjectType int const ( diff --git a/models/device.go b/models/device.go index 8fb59d12fc1..7999f725e40 100644 --- a/models/device.go +++ b/models/device.go @@ -46,6 +46,8 @@ type Device struct { isCompliant *bool // true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not). isManaged *bool + // The isManagementRestricted property + isManagementRestricted *bool // true if device is rooted; false if device is jail-broken. This can only be updated by Intune. isRooted *bool // Form factor of device. Only returned if user signs in with a Microsoft account as part of Project Rome. @@ -441,6 +443,16 @@ func (m *Device) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return nil } + res["isManagementRestricted"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsManagementRestricted(val) + } + return nil + } res["isRooted"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -725,6 +737,14 @@ func (m *Device) GetIsManaged()(*bool) { return m.isManaged } } +// GetIsManagementRestricted gets the isManagementRestricted property value. The isManagementRestricted property +func (m *Device) GetIsManagementRestricted()(*bool) { + if m == nil { + return nil + } else { + return m.isManagementRestricted + } +} // GetIsRooted gets the isRooted property value. true if device is rooted; false if device is jail-broken. This can only be updated by Intune. func (m *Device) GetIsRooted()(*bool) { if m == nil { @@ -1041,6 +1061,12 @@ func (m *Device) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c return err } } + { + err = writer.WriteBoolValue("isManagementRestricted", m.GetIsManagementRestricted()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isRooted", m.GetIsRooted()) if err != nil { @@ -1315,6 +1341,12 @@ func (m *Device) SetIsManaged(value *bool)() { m.isManaged = value } } +// SetIsManagementRestricted sets the isManagementRestricted property value. The isManagementRestricted property +func (m *Device) SetIsManagementRestricted(value *bool)() { + if m != nil { + m.isManagementRestricted = value + } +} // SetIsRooted sets the isRooted property value. true if device is rooted; false if device is jail-broken. This can only be updated by Intune. func (m *Device) SetIsRooted(value *bool)() { if m != nil { diff --git a/models/device_and_app_management_assignment_filter_type.go b/models/device_and_app_management_assignment_filter_type.go index 41aa4edea40..54ce2fd4414 100644 --- a/models/device_and_app_management_assignment_filter_type.go +++ b/models/device_and_app_management_assignment_filter_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceAppManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceAndAppManagementAssignmentFilterType int const ( diff --git a/models/device_and_app_management_assignment_source.go b/models/device_and_app_management_assignment_source.go index 6e7b1d1be14..2565f1e123f 100644 --- a/models/device_and_app_management_assignment_source.go +++ b/models/device_and_app_management_assignment_source.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceAppManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceAndAppManagementAssignmentSource int const ( diff --git a/models/device_enrollment_configuration_type.go b/models/device_enrollment_configuration_type.go index 518dc041ccb..d64a45b696c 100644 --- a/models/device_enrollment_configuration_type.go +++ b/models/device_enrollment_configuration_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceEnrollmentConfigurationType int const ( diff --git a/models/device_enrollment_type.go b/models/device_enrollment_type.go index b0502bbec3d..29dd7586f91 100644 --- a/models/device_enrollment_type.go +++ b/models/device_enrollment_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceEnrollmentType int const ( diff --git a/models/device_guard_local_system_authority_credential_guard_state.go b/models/device_guard_local_system_authority_credential_guard_state.go index a346bd23d6b..50954ae1e24 100644 --- a/models/device_guard_local_system_authority_credential_guard_state.go +++ b/models/device_guard_local_system_authority_credential_guard_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceGuardLocalSystemAuthorityCredentialGuardState int const ( diff --git a/models/device_guard_virtualization_based_security_hardware_requirement_state.go b/models/device_guard_virtualization_based_security_hardware_requirement_state.go index 9719c381f26..e7ebbce3166 100644 --- a/models/device_guard_virtualization_based_security_hardware_requirement_state.go +++ b/models/device_guard_virtualization_based_security_hardware_requirement_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceGuardVirtualizationBasedSecurityHardwareRequirementState int const ( diff --git a/models/device_guard_virtualization_based_security_state.go b/models/device_guard_virtualization_based_security_state.go index 0a3488506bd..97e53c8e40d 100644 --- a/models/device_guard_virtualization_based_security_state.go +++ b/models/device_guard_virtualization_based_security_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceGuardVirtualizationBasedSecurityState int const ( diff --git a/models/device_management_exchange_access_state.go b/models/device_management_exchange_access_state.go index 1830430df7d..accc534ac0b 100644 --- a/models/device_management_exchange_access_state.go +++ b/models/device_management_exchange_access_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceManagementExchangeAccessState int const ( diff --git a/models/device_management_exchange_access_state_reason.go b/models/device_management_exchange_access_state_reason.go index c4364cdc8db..f387e0c17b8 100644 --- a/models/device_management_exchange_access_state_reason.go +++ b/models/device_management_exchange_access_state_reason.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceManagementExchangeAccessStateReason int const ( diff --git a/models/device_registration_state.go b/models/device_registration_state.go index 6a0965f8667..f9bcd37e4eb 100644 --- a/models/device_registration_state.go +++ b/models/device_registration_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceRegistrationState int const ( diff --git a/models/device_type.go b/models/device_type.go index 38709581f8f..0e301199459 100644 --- a/models/device_type.go +++ b/models/device_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type DeviceType int const ( diff --git a/models/deviceable.go b/models/deviceable.go index 1c03cc8084e..fdcfb6e7ea6 100644 --- a/models/deviceable.go +++ b/models/deviceable.go @@ -28,6 +28,7 @@ type Deviceable interface { GetHostnames()([]string) GetIsCompliant()(*bool) GetIsManaged()(*bool) + GetIsManagementRestricted()(*bool) GetIsRooted()(*bool) GetKind()(*string) GetManagementType()(*string) @@ -70,6 +71,7 @@ type Deviceable interface { SetHostnames(value []string)() SetIsCompliant(value *bool)() SetIsManaged(value *bool)() + SetIsManagementRestricted(value *bool)() SetIsRooted(value *bool)() SetKind(value *string)() SetManagementType(value *string)() diff --git a/models/directory_audit.go b/models/directory_audit.go index ee091f81278..0aa62610047 100644 --- a/models/directory_audit.go +++ b/models/directory_audit.go @@ -22,7 +22,7 @@ type DirectoryAudit struct { initiatedBy AuditActivityInitiatorable // Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. loggedByService *string - // The operationType property + // Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete. operationType *string // Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue. result *OperationResult @@ -233,7 +233,7 @@ func (m *DirectoryAudit) GetLoggedByService()(*string) { return m.loggedByService } } -// GetOperationType gets the operationType property value. The operationType property +// GetOperationType gets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete. func (m *DirectoryAudit) GetOperationType()(*string) { if m == nil { return nil @@ -404,7 +404,7 @@ func (m *DirectoryAudit) SetLoggedByService(value *string)() { m.loggedByService = value } } -// SetOperationType sets the operationType property value. The operationType property +// SetOperationType sets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete. func (m *DirectoryAudit) SetOperationType(value *string)() { if m != nil { m.operationType = value diff --git a/models/document_set_version.go b/models/document_set_version.go index f05bd51c8fc..b8a3c6f724b 100644 --- a/models/document_set_version.go +++ b/models/document_set_version.go @@ -8,15 +8,15 @@ import ( // DocumentSetVersion type DocumentSetVersion struct { ListItemVersion - // The comment property + // Comment about the captured version. comment *string - // The createdBy property + // User who captured the version. createdBy IdentitySetable - // The createdDateTime property + // Date and time when this version was created. createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time - // The items property + // Items within the document set that are captured as part of this version. items []DocumentSetVersionItemable - // The shouldCaptureMinorVersion property + // If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false. shouldCaptureMinorVersion *bool } // NewDocumentSetVersion instantiates a new documentSetVersion and sets the default values. @@ -30,7 +30,7 @@ func NewDocumentSetVersion()(*DocumentSetVersion) { func CreateDocumentSetVersionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDocumentSetVersion(), nil } -// GetComment gets the comment property value. The comment property +// GetComment gets the comment property value. Comment about the captured version. func (m *DocumentSetVersion) GetComment()(*string) { if m == nil { return nil @@ -38,7 +38,7 @@ func (m *DocumentSetVersion) GetComment()(*string) { return m.comment } } -// GetCreatedBy gets the createdBy property value. The createdBy property +// GetCreatedBy gets the createdBy property value. User who captured the version. func (m *DocumentSetVersion) GetCreatedBy()(IdentitySetable) { if m == nil { return nil @@ -46,7 +46,7 @@ func (m *DocumentSetVersion) GetCreatedBy()(IdentitySetable) { return m.createdBy } } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Date and time when this version was created. func (m *DocumentSetVersion) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { if m == nil { return nil @@ -113,7 +113,7 @@ func (m *DocumentSetVersion) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetItems gets the items property value. The items property +// GetItems gets the items property value. Items within the document set that are captured as part of this version. func (m *DocumentSetVersion) GetItems()([]DocumentSetVersionItemable) { if m == nil { return nil @@ -121,7 +121,7 @@ func (m *DocumentSetVersion) GetItems()([]DocumentSetVersionItemable) { return m.items } } -// GetShouldCaptureMinorVersion gets the shouldCaptureMinorVersion property value. The shouldCaptureMinorVersion property +// GetShouldCaptureMinorVersion gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false. func (m *DocumentSetVersion) GetShouldCaptureMinorVersion()(*bool) { if m == nil { return nil @@ -171,31 +171,31 @@ func (m *DocumentSetVersion) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetComment sets the comment property value. The comment property +// SetComment sets the comment property value. Comment about the captured version. func (m *DocumentSetVersion) SetComment(value *string)() { if m != nil { m.comment = value } } -// SetCreatedBy sets the createdBy property value. The createdBy property +// SetCreatedBy sets the createdBy property value. User who captured the version. func (m *DocumentSetVersion) SetCreatedBy(value IdentitySetable)() { if m != nil { m.createdBy = value } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Date and time when this version was created. func (m *DocumentSetVersion) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { if m != nil { m.createdDateTime = value } } -// SetItems sets the items property value. The items property +// SetItems sets the items property value. Items within the document set that are captured as part of this version. func (m *DocumentSetVersion) SetItems(value []DocumentSetVersionItemable)() { if m != nil { m.items = value } } -// SetShouldCaptureMinorVersion sets the shouldCaptureMinorVersion property value. The shouldCaptureMinorVersion property +// SetShouldCaptureMinorVersion sets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false. func (m *DocumentSetVersion) SetShouldCaptureMinorVersion(value *bool)() { if m != nil { m.shouldCaptureMinorVersion = value diff --git a/models/document_set_version_item.go b/models/document_set_version_item.go index fdf6a9ec99b..63cfadd2240 100644 --- a/models/document_set_version_item.go +++ b/models/document_set_version_item.go @@ -8,11 +8,11 @@ import ( type DocumentSetVersionItem struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]interface{} - // The itemId property + // The unique identifier for the item. itemId *string - // The title property + // The title of the item. title *string - // The versionId property + // The version ID of the item. versionId *string } // NewDocumentSetVersionItem instantiates a new documentSetVersionItem and sets the default values. @@ -69,7 +69,7 @@ func (m *DocumentSetVersionItem) GetFieldDeserializers()(map[string]func(i878a80 } return res } -// GetItemId gets the itemId property value. The itemId property +// GetItemId gets the itemId property value. The unique identifier for the item. func (m *DocumentSetVersionItem) GetItemId()(*string) { if m == nil { return nil @@ -77,7 +77,7 @@ func (m *DocumentSetVersionItem) GetItemId()(*string) { return m.itemId } } -// GetTitle gets the title property value. The title property +// GetTitle gets the title property value. The title of the item. func (m *DocumentSetVersionItem) GetTitle()(*string) { if m == nil { return nil @@ -85,7 +85,7 @@ func (m *DocumentSetVersionItem) GetTitle()(*string) { return m.title } } -// GetVersionId gets the versionId property value. The versionId property +// GetVersionId gets the versionId property value. The version ID of the item. func (m *DocumentSetVersionItem) GetVersionId()(*string) { if m == nil { return nil @@ -127,19 +127,19 @@ func (m *DocumentSetVersionItem) SetAdditionalData(value map[string]interface{}) m.additionalData = value } } -// SetItemId sets the itemId property value. The itemId property +// SetItemId sets the itemId property value. The unique identifier for the item. func (m *DocumentSetVersionItem) SetItemId(value *string)() { if m != nil { m.itemId = value } } -// SetTitle sets the title property value. The title property +// SetTitle sets the title property value. The title of the item. func (m *DocumentSetVersionItem) SetTitle(value *string)() { if m != nil { m.title = value } } -// SetVersionId sets the versionId property value. The versionId property +// SetVersionId sets the versionId property value. The version ID of the item. func (m *DocumentSetVersionItem) SetVersionId(value *string)() { if m != nil { m.versionId = value diff --git a/models/domain.go b/models/domain.go index bbb1b70f0ff..f184db98c92 100644 --- a/models/domain.go +++ b/models/domain.go @@ -13,7 +13,7 @@ type Domain struct { availabilityStatus *string // Read-only, Nullable domainNameReferences []DirectoryObjectable - // The federationConfiguration property + // Domain settings configured by customer when federated with Azure AD. federationConfiguration []InternalDomainFederationable // The value of the property is false if the DNS record management of the domain has been delegated to Microsoft 365. Otherwise, the value is true. Not nullable isAdminManaged *bool @@ -75,7 +75,7 @@ func (m *Domain) GetDomainNameReferences()([]DirectoryObjectable) { return m.domainNameReferences } } -// GetFederationConfiguration gets the federationConfiguration property value. The federationConfiguration property +// GetFederationConfiguration gets the federationConfiguration property value. Domain settings configured by customer when federated with Azure AD. func (m *Domain) GetFederationConfiguration()([]InternalDomainFederationable) { if m == nil { return nil @@ -510,7 +510,7 @@ func (m *Domain) SetDomainNameReferences(value []DirectoryObjectable)() { m.domainNameReferences = value } } -// SetFederationConfiguration sets the federationConfiguration property value. The federationConfiguration property +// SetFederationConfiguration sets the federationConfiguration property value. Domain settings configured by customer when federated with Azure AD. func (m *Domain) SetFederationConfiguration(value []InternalDomainFederationable)() { if m != nil { m.federationConfiguration = value diff --git a/models/extract_sensitivity_labels_result.go b/models/extract_sensitivity_labels_result.go index e563168a5f2..2366f7f5456 100644 --- a/models/extract_sensitivity_labels_result.go +++ b/models/extract_sensitivity_labels_result.go @@ -8,7 +8,7 @@ import ( type ExtractSensitivityLabelsResult struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]interface{} - // The labels property + // List of sensitivity labels assigned to a file. labels []SensitivityLabelAssignmentable } // NewExtractSensitivityLabelsResult instantiates a new extractSensitivityLabelsResult and sets the default values. @@ -49,7 +49,7 @@ func (m *ExtractSensitivityLabelsResult) GetFieldDeserializers()(map[string]func } return res } -// GetLabels gets the labels property value. The labels property +// GetLabels gets the labels property value. List of sensitivity labels assigned to a file. func (m *ExtractSensitivityLabelsResult) GetLabels()([]SensitivityLabelAssignmentable) { if m == nil { return nil @@ -83,7 +83,7 @@ func (m *ExtractSensitivityLabelsResult) SetAdditionalData(value map[string]inte m.additionalData = value } } -// SetLabels sets the labels property value. The labels property +// SetLabels sets the labels property value. List of sensitivity labels assigned to a file. func (m *ExtractSensitivityLabelsResult) SetLabels(value []SensitivityLabelAssignmentable)() { if m != nil { m.labels = value diff --git a/models/filter_mode.go b/models/filter_mode.go index ac46a8e2b0f..87467577b5a 100644 --- a/models/filter_mode.go +++ b/models/filter_mode.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type FilterMode int const ( diff --git a/models/group.go b/models/group.go index 75225128104..6920d1fef72 100644 --- a/models/group.go +++ b/models/group.go @@ -70,6 +70,8 @@ type Group struct { isAssignableToRole *bool // The isFavorite property isFavorite *bool + // The isManagementRestricted property + isManagementRestricted *bool // Indicates whether the signed-in user is subscribed to receive email conversations. Default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). isSubscribedByMail *bool // Indicates status of the group license assignment to all members of the group. Default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only. @@ -715,6 +717,16 @@ func (m *Group) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["isManagementRestricted"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsManagementRestricted(val) + } + return nil + } res["isSubscribedByMail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -1313,6 +1325,14 @@ func (m *Group) GetIsFavorite()(*bool) { return m.isFavorite } } +// GetIsManagementRestricted gets the isManagementRestricted property value. The isManagementRestricted property +func (m *Group) GetIsManagementRestricted()(*bool) { + if m == nil { + return nil + } else { + return m.isManagementRestricted + } +} // GetIsSubscribedByMail gets the isSubscribedByMail property value. Indicates whether the signed-in user is subscribed to receive email conversations. Default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). func (m *Group) GetIsSubscribedByMail()(*bool) { if m == nil { @@ -1918,6 +1938,12 @@ func (m *Group) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err = writer.WriteBoolValue("isManagementRestricted", m.GetIsManagementRestricted()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isSubscribedByMail", m.GetIsSubscribedByMail()) if err != nil { @@ -2434,6 +2460,12 @@ func (m *Group) SetIsFavorite(value *bool)() { m.isFavorite = value } } +// SetIsManagementRestricted sets the isManagementRestricted property value. The isManagementRestricted property +func (m *Group) SetIsManagementRestricted(value *bool)() { + if m != nil { + m.isManagementRestricted = value + } +} // SetIsSubscribedByMail sets the isSubscribedByMail property value. Indicates whether the signed-in user is subscribed to receive email conversations. Default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). func (m *Group) SetIsSubscribedByMail(value *bool)() { if m != nil { diff --git a/models/groupable.go b/models/groupable.go index c9dee4ed2ab..2e8f10adc7d 100644 --- a/models/groupable.go +++ b/models/groupable.go @@ -40,6 +40,7 @@ type Groupable interface { GetIsArchived()(*bool) GetIsAssignableToRole()(*bool) GetIsFavorite()(*bool) + GetIsManagementRestricted()(*bool) GetIsSubscribedByMail()(*bool) GetLicenseProcessingState()(LicenseProcessingStateable) GetMail()(*string) @@ -117,6 +118,7 @@ type Groupable interface { SetIsArchived(value *bool)() SetIsAssignableToRole(value *bool)() SetIsFavorite(value *bool)() + SetIsManagementRestricted(value *bool)() SetIsSubscribedByMail(value *bool)() SetLicenseProcessingState(value LicenseProcessingStateable)() SetMail(value *string)() diff --git a/models/internal_domain_federation.go b/models/internal_domain_federation.go index 5df2044d5d5..8fcc8b3aa90 100644 --- a/models/internal_domain_federation.go +++ b/models/internal_domain_federation.go @@ -7,19 +7,19 @@ import ( // InternalDomainFederation type InternalDomainFederation struct { SamlOrWsFedProvider - // The activeSignInUri property + // URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Azure Active Directory (Azure AD). Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. activeSignInUri *string - // The federatedIdpMfaBehavior property + // Determines whether Azure AD accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. federatedIdpMfaBehavior *FederatedIdpMfaBehavior - // The isSignedAuthenticationRequestRequired property + // If true, when SAML authentication requests are sent to the federated SAML IdP, Azure AD will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. isSignedAuthenticationRequestRequired *bool - // The nextSigningCertificate property + // Fallback token signing certificate that is used to sign tokens when the primary signing certificate expires. Formatted as Base64 encoded strings of the public portion of the federated IdP's token signing certificate. Needs to be compatible with the X509Certificate2 class. Much like the signingCertificate, the nextSigningCertificate property is used if a rollover is required outside of the auto-rollover update, a new federation service is being set up, or if the new token signing certificate is not present in the federation properties after the federation service certificate has been updated. nextSigningCertificate *string - // The promptLoginBehavior property + // Sets the preferred behavior for the sign-in prompt. The possible values are: translateToFreshPasswordAuthentication, nativeSupport, disabled, unknownFutureValue. promptLoginBehavior *PromptLoginBehavior - // The signingCertificateUpdateStatus property + // Provides status and timestamp of the last update of the signing certificate. signingCertificateUpdateStatus SigningCertificateUpdateStatusable - // The signOutUri property + // URI that clients are redirected to when they sign out of Azure AD services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. signOutUri *string } // NewInternalDomainFederation instantiates a new internalDomainFederation and sets the default values. @@ -33,7 +33,7 @@ func NewInternalDomainFederation()(*InternalDomainFederation) { func CreateInternalDomainFederationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewInternalDomainFederation(), nil } -// GetActiveSignInUri gets the activeSignInUri property value. The activeSignInUri property +// GetActiveSignInUri gets the activeSignInUri property value. URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Azure Active Directory (Azure AD). Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. func (m *InternalDomainFederation) GetActiveSignInUri()(*string) { if m == nil { return nil @@ -41,7 +41,7 @@ func (m *InternalDomainFederation) GetActiveSignInUri()(*string) { return m.activeSignInUri } } -// GetFederatedIdpMfaBehavior gets the federatedIdpMfaBehavior property value. The federatedIdpMfaBehavior property +// GetFederatedIdpMfaBehavior gets the federatedIdpMfaBehavior property value. Determines whether Azure AD accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. func (m *InternalDomainFederation) GetFederatedIdpMfaBehavior()(*FederatedIdpMfaBehavior) { if m == nil { return nil @@ -124,7 +124,7 @@ func (m *InternalDomainFederation) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetIsSignedAuthenticationRequestRequired gets the isSignedAuthenticationRequestRequired property value. The isSignedAuthenticationRequestRequired property +// GetIsSignedAuthenticationRequestRequired gets the isSignedAuthenticationRequestRequired property value. If true, when SAML authentication requests are sent to the federated SAML IdP, Azure AD will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. func (m *InternalDomainFederation) GetIsSignedAuthenticationRequestRequired()(*bool) { if m == nil { return nil @@ -132,7 +132,7 @@ func (m *InternalDomainFederation) GetIsSignedAuthenticationRequestRequired()(*b return m.isSignedAuthenticationRequestRequired } } -// GetNextSigningCertificate gets the nextSigningCertificate property value. The nextSigningCertificate property +// GetNextSigningCertificate gets the nextSigningCertificate property value. Fallback token signing certificate that is used to sign tokens when the primary signing certificate expires. Formatted as Base64 encoded strings of the public portion of the federated IdP's token signing certificate. Needs to be compatible with the X509Certificate2 class. Much like the signingCertificate, the nextSigningCertificate property is used if a rollover is required outside of the auto-rollover update, a new federation service is being set up, or if the new token signing certificate is not present in the federation properties after the federation service certificate has been updated. func (m *InternalDomainFederation) GetNextSigningCertificate()(*string) { if m == nil { return nil @@ -140,7 +140,7 @@ func (m *InternalDomainFederation) GetNextSigningCertificate()(*string) { return m.nextSigningCertificate } } -// GetPromptLoginBehavior gets the promptLoginBehavior property value. The promptLoginBehavior property +// GetPromptLoginBehavior gets the promptLoginBehavior property value. Sets the preferred behavior for the sign-in prompt. The possible values are: translateToFreshPasswordAuthentication, nativeSupport, disabled, unknownFutureValue. func (m *InternalDomainFederation) GetPromptLoginBehavior()(*PromptLoginBehavior) { if m == nil { return nil @@ -148,7 +148,7 @@ func (m *InternalDomainFederation) GetPromptLoginBehavior()(*PromptLoginBehavior return m.promptLoginBehavior } } -// GetSigningCertificateUpdateStatus gets the signingCertificateUpdateStatus property value. The signingCertificateUpdateStatus property +// GetSigningCertificateUpdateStatus gets the signingCertificateUpdateStatus property value. Provides status and timestamp of the last update of the signing certificate. func (m *InternalDomainFederation) GetSigningCertificateUpdateStatus()(SigningCertificateUpdateStatusable) { if m == nil { return nil @@ -156,7 +156,7 @@ func (m *InternalDomainFederation) GetSigningCertificateUpdateStatus()(SigningCe return m.signingCertificateUpdateStatus } } -// GetSignOutUri gets the signOutUri property value. The signOutUri property +// GetSignOutUri gets the signOutUri property value. URI that clients are redirected to when they sign out of Azure AD services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. func (m *InternalDomainFederation) GetSignOutUri()(*string) { if m == nil { return nil @@ -216,43 +216,43 @@ func (m *InternalDomainFederation) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetActiveSignInUri sets the activeSignInUri property value. The activeSignInUri property +// SetActiveSignInUri sets the activeSignInUri property value. URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Azure Active Directory (Azure AD). Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. func (m *InternalDomainFederation) SetActiveSignInUri(value *string)() { if m != nil { m.activeSignInUri = value } } -// SetFederatedIdpMfaBehavior sets the federatedIdpMfaBehavior property value. The federatedIdpMfaBehavior property +// SetFederatedIdpMfaBehavior sets the federatedIdpMfaBehavior property value. Determines whether Azure AD accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. func (m *InternalDomainFederation) SetFederatedIdpMfaBehavior(value *FederatedIdpMfaBehavior)() { if m != nil { m.federatedIdpMfaBehavior = value } } -// SetIsSignedAuthenticationRequestRequired sets the isSignedAuthenticationRequestRequired property value. The isSignedAuthenticationRequestRequired property +// SetIsSignedAuthenticationRequestRequired sets the isSignedAuthenticationRequestRequired property value. If true, when SAML authentication requests are sent to the federated SAML IdP, Azure AD will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. func (m *InternalDomainFederation) SetIsSignedAuthenticationRequestRequired(value *bool)() { if m != nil { m.isSignedAuthenticationRequestRequired = value } } -// SetNextSigningCertificate sets the nextSigningCertificate property value. The nextSigningCertificate property +// SetNextSigningCertificate sets the nextSigningCertificate property value. Fallback token signing certificate that is used to sign tokens when the primary signing certificate expires. Formatted as Base64 encoded strings of the public portion of the federated IdP's token signing certificate. Needs to be compatible with the X509Certificate2 class. Much like the signingCertificate, the nextSigningCertificate property is used if a rollover is required outside of the auto-rollover update, a new federation service is being set up, or if the new token signing certificate is not present in the federation properties after the federation service certificate has been updated. func (m *InternalDomainFederation) SetNextSigningCertificate(value *string)() { if m != nil { m.nextSigningCertificate = value } } -// SetPromptLoginBehavior sets the promptLoginBehavior property value. The promptLoginBehavior property +// SetPromptLoginBehavior sets the promptLoginBehavior property value. Sets the preferred behavior for the sign-in prompt. The possible values are: translateToFreshPasswordAuthentication, nativeSupport, disabled, unknownFutureValue. func (m *InternalDomainFederation) SetPromptLoginBehavior(value *PromptLoginBehavior)() { if m != nil { m.promptLoginBehavior = value } } -// SetSigningCertificateUpdateStatus sets the signingCertificateUpdateStatus property value. The signingCertificateUpdateStatus property +// SetSigningCertificateUpdateStatus sets the signingCertificateUpdateStatus property value. Provides status and timestamp of the last update of the signing certificate. func (m *InternalDomainFederation) SetSigningCertificateUpdateStatus(value SigningCertificateUpdateStatusable)() { if m != nil { m.signingCertificateUpdateStatus = value } } -// SetSignOutUri sets the signOutUri property value. The signOutUri property +// SetSignOutUri sets the signOutUri property value. URI that clients are redirected to when they sign out of Azure AD services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. func (m *InternalDomainFederation) SetSignOutUri(value *string)() { if m != nil { m.signOutUri = value diff --git a/models/join_type.go b/models/join_type.go index dfef9e66668..5f4484f26de 100644 --- a/models/join_type.go +++ b/models/join_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type JoinType int const ( diff --git a/models/list_item.go b/models/list_item.go index c0fcf1ad5a2..03dbb006de6 100644 --- a/models/list_item.go +++ b/models/list_item.go @@ -15,7 +15,7 @@ type ListItem struct { contentType ContentTypeInfoable // The deleted property deleted Deletedable - // The documentSetVersions property + // Version information for a document set version created by a user. documentSetVersions []DocumentSetVersionable // For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] driveItem DriveItemable @@ -69,7 +69,7 @@ func (m *ListItem) GetDeleted()(Deletedable) { return m.deleted } } -// GetDocumentSetVersions gets the documentSetVersions property value. The documentSetVersions property +// GetDocumentSetVersions gets the documentSetVersions property value. Version information for a document set version created by a user. func (m *ListItem) GetDocumentSetVersions()([]DocumentSetVersionable) { if m == nil { return nil @@ -314,7 +314,7 @@ func (m *ListItem) SetDeleted(value Deletedable)() { m.deleted = value } } -// SetDocumentSetVersions sets the documentSetVersions property value. The documentSetVersions property +// SetDocumentSetVersions sets the documentSetVersions property value. Version information for a document set version created by a user. func (m *ListItem) SetDocumentSetVersions(value []DocumentSetVersionable)() { if m != nil { m.documentSetVersions = value diff --git a/models/lost_mode_state.go b/models/lost_mode_state.go index 647de55e448..eea23ec9a52 100644 --- a/models/lost_mode_state.go +++ b/models/lost_mode_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type LostModeState int const ( diff --git a/models/managed_app_flagged_reason.go b/models/managed_app_flagged_reason.go index 04086d5a38c..cab109dae78 100644 --- a/models/managed_app_flagged_reason.go +++ b/models/managed_app_flagged_reason.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceAppManagement singleton. +// Provides operations to manage the compliance singleton. type ManagedAppFlaggedReason int const ( diff --git a/models/managed_device_architecture.go b/models/managed_device_architecture.go index ce657f10754..65bdb097df8 100644 --- a/models/managed_device_architecture.go +++ b/models/managed_device_architecture.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ManagedDeviceArchitecture int const ( diff --git a/models/managed_device_management_features.go b/models/managed_device_management_features.go index c4198fc9969..3acb0434d9e 100644 --- a/models/managed_device_management_features.go +++ b/models/managed_device_management_features.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ManagedDeviceManagementFeatures int const ( diff --git a/models/managed_device_owner_type.go b/models/managed_device_owner_type.go index 0076eb7a0bb..c50090f3fb7 100644 --- a/models/managed_device_owner_type.go +++ b/models/managed_device_owner_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ManagedDeviceOwnerType int const ( diff --git a/models/managed_device_partner_reported_health_state.go b/models/managed_device_partner_reported_health_state.go index 8e04615dda0..cea11c4f45f 100644 --- a/models/managed_device_partner_reported_health_state.go +++ b/models/managed_device_partner_reported_health_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ManagedDevicePartnerReportedHealthState int const ( diff --git a/models/management_agent_type.go b/models/management_agent_type.go index 33898452ad4..5d288208334 100644 --- a/models/management_agent_type.go +++ b/models/management_agent_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ManagementAgentType int const ( diff --git a/models/management_state.go b/models/management_state.go index 0f94361337c..8bd7ba54ec2 100644 --- a/models/management_state.go +++ b/models/management_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type ManagementState int const ( diff --git a/models/on_premises_application_segment.go b/models/on_premises_application_segment.go new file mode 100644 index 00000000000..e730e9df4af --- /dev/null +++ b/models/on_premises_application_segment.go @@ -0,0 +1,187 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnPremisesApplicationSegment +type OnPremisesApplicationSegment struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // The alternateUrl property + alternateUrl *string + // The corsConfigurations property + corsConfigurations []CorsConfigurationable + // The externalUrl property + externalUrl *string + // The internalUrl property + internalUrl *string +} +// NewOnPremisesApplicationSegment instantiates a new onPremisesApplicationSegment and sets the default values. +func NewOnPremisesApplicationSegment()(*OnPremisesApplicationSegment) { + m := &OnPremisesApplicationSegment{ + } + m.SetAdditionalData(make(map[string]interface{})); + return m +} +// CreateOnPremisesApplicationSegmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnPremisesApplicationSegmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnPremisesApplicationSegment(), nil +} +// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnPremisesApplicationSegment) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetAlternateUrl gets the alternateUrl property value. The alternateUrl property +func (m *OnPremisesApplicationSegment) GetAlternateUrl()(*string) { + if m == nil { + return nil + } else { + return m.alternateUrl + } +} +// GetCorsConfigurations gets the corsConfigurations property value. The corsConfigurations property +func (m *OnPremisesApplicationSegment) GetCorsConfigurations()([]CorsConfigurationable) { + if m == nil { + return nil + } else { + return m.corsConfigurations + } +} +// GetExternalUrl gets the externalUrl property value. The externalUrl property +func (m *OnPremisesApplicationSegment) GetExternalUrl()(*string) { + if m == nil { + return nil + } else { + return m.externalUrl + } +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnPremisesApplicationSegment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["alternateUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAlternateUrl(val) + } + return nil + } + res["corsConfigurations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCorsConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CorsConfigurationable, len(val)) + for i, v := range val { + res[i] = v.(CorsConfigurationable) + } + m.SetCorsConfigurations(res) + } + return nil + } + res["externalUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExternalUrl(val) + } + return nil + } + res["internalUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetInternalUrl(val) + } + return nil + } + return res +} +// GetInternalUrl gets the internalUrl property value. The internalUrl property +func (m *OnPremisesApplicationSegment) GetInternalUrl()(*string) { + if m == nil { + return nil + } else { + return m.internalUrl + } +} +// Serialize serializes information the current object +func (m *OnPremisesApplicationSegment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("alternateUrl", m.GetAlternateUrl()) + if err != nil { + return err + } + } + if m.GetCorsConfigurations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCorsConfigurations())) + for i, v := range m.GetCorsConfigurations() { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + err := writer.WriteCollectionOfObjectValues("corsConfigurations", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("externalUrl", m.GetExternalUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("internalUrl", m.GetInternalUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnPremisesApplicationSegment) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetAlternateUrl sets the alternateUrl property value. The alternateUrl property +func (m *OnPremisesApplicationSegment) SetAlternateUrl(value *string)() { + if m != nil { + m.alternateUrl = value + } +} +// SetCorsConfigurations sets the corsConfigurations property value. The corsConfigurations property +func (m *OnPremisesApplicationSegment) SetCorsConfigurations(value []CorsConfigurationable)() { + if m != nil { + m.corsConfigurations = value + } +} +// SetExternalUrl sets the externalUrl property value. The externalUrl property +func (m *OnPremisesApplicationSegment) SetExternalUrl(value *string)() { + if m != nil { + m.externalUrl = value + } +} +// SetInternalUrl sets the internalUrl property value. The internalUrl property +func (m *OnPremisesApplicationSegment) SetInternalUrl(value *string)() { + if m != nil { + m.internalUrl = value + } +} diff --git a/models/on_premises_application_segmentable.go b/models/on_premises_application_segmentable.go new file mode 100644 index 00000000000..92e84dcfa4d --- /dev/null +++ b/models/on_premises_application_segmentable.go @@ -0,0 +1,19 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnPremisesApplicationSegmentable +type OnPremisesApplicationSegmentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAlternateUrl()(*string) + GetCorsConfigurations()([]CorsConfigurationable) + GetExternalUrl()(*string) + GetInternalUrl()(*string) + SetAlternateUrl(value *string)() + SetCorsConfigurations(value []CorsConfigurationable)() + SetExternalUrl(value *string)() + SetInternalUrl(value *string)() +} diff --git a/models/on_premises_publishing.go b/models/on_premises_publishing.go index 1fa0b0277a3..ae170171cd7 100644 --- a/models/on_premises_publishing.go +++ b/models/on_premises_publishing.go @@ -30,10 +30,14 @@ type OnPremisesPublishing struct { isPersistentCookieEnabled *bool // Indicates if the Secure cookie flag should be set in the HTTP response headers. Set this value to true to transmit cookies over a secure channel such as an encrypted HTTPS request. Default value is true. isSecureCookieEnabled *bool + // The isStateSessionEnabled property + isStateSessionEnabled *bool // Indicates if the application should translate urls in the reponse headers. Keep this value as true unless your application required the original host header in the authentication request. Default value is true. isTranslateHostHeaderEnabled *bool // Indicates if the application should translate urls in the application body. Keep this value as false unless you have hardcoded HTML links to other on-premises applications and don't use custom domains. For more information, see Link translation with Application Proxy. Default value is false. isTranslateLinksInBodyEnabled *bool + // The onPremisesApplicationSegments property + onPremisesApplicationSegments []OnPremisesApplicationSegmentable // Represents the single sign-on configuration for the on-premises application. singleSignOnSettings OnPremisesPublishingSingleSignOnable // The useAlternateUrlForTranslationAndRedirect property @@ -217,6 +221,16 @@ func (m *OnPremisesPublishing) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["isStateSessionEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsStateSessionEnabled(val) + } + return nil + } res["isTranslateHostHeaderEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -237,6 +251,20 @@ func (m *OnPremisesPublishing) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["onPremisesApplicationSegments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateOnPremisesApplicationSegmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]OnPremisesApplicationSegmentable, len(val)) + for i, v := range val { + res[i] = v.(OnPremisesApplicationSegmentable) + } + m.SetOnPremisesApplicationSegments(res) + } + return nil + } res["singleSignOnSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateOnPremisesPublishingSingleSignOnFromDiscriminatorValue) if err != nil { @@ -337,6 +365,14 @@ func (m *OnPremisesPublishing) GetIsSecureCookieEnabled()(*bool) { return m.isSecureCookieEnabled } } +// GetIsStateSessionEnabled gets the isStateSessionEnabled property value. The isStateSessionEnabled property +func (m *OnPremisesPublishing) GetIsStateSessionEnabled()(*bool) { + if m == nil { + return nil + } else { + return m.isStateSessionEnabled + } +} // GetIsTranslateHostHeaderEnabled gets the isTranslateHostHeaderEnabled property value. Indicates if the application should translate urls in the reponse headers. Keep this value as true unless your application required the original host header in the authentication request. Default value is true. func (m *OnPremisesPublishing) GetIsTranslateHostHeaderEnabled()(*bool) { if m == nil { @@ -353,6 +389,14 @@ func (m *OnPremisesPublishing) GetIsTranslateLinksInBodyEnabled()(*bool) { return m.isTranslateLinksInBodyEnabled } } +// GetOnPremisesApplicationSegments gets the onPremisesApplicationSegments property value. The onPremisesApplicationSegments property +func (m *OnPremisesPublishing) GetOnPremisesApplicationSegments()([]OnPremisesApplicationSegmentable) { + if m == nil { + return nil + } else { + return m.onPremisesApplicationSegments + } +} // GetSingleSignOnSettings gets the singleSignOnSettings property value. Represents the single sign-on configuration for the on-premises application. func (m *OnPremisesPublishing) GetSingleSignOnSettings()(OnPremisesPublishingSingleSignOnable) { if m == nil { @@ -462,6 +506,12 @@ func (m *OnPremisesPublishing) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err := writer.WriteBoolValue("isStateSessionEnabled", m.GetIsStateSessionEnabled()) + if err != nil { + return err + } + } { err := writer.WriteBoolValue("isTranslateHostHeaderEnabled", m.GetIsTranslateHostHeaderEnabled()) if err != nil { @@ -474,6 +524,16 @@ func (m *OnPremisesPublishing) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + if m.GetOnPremisesApplicationSegments() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOnPremisesApplicationSegments())) + for i, v := range m.GetOnPremisesApplicationSegments() { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + err := writer.WriteCollectionOfObjectValues("onPremisesApplicationSegments", cast) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("singleSignOnSettings", m.GetSingleSignOnSettings()) if err != nil { @@ -584,6 +644,12 @@ func (m *OnPremisesPublishing) SetIsSecureCookieEnabled(value *bool)() { m.isSecureCookieEnabled = value } } +// SetIsStateSessionEnabled sets the isStateSessionEnabled property value. The isStateSessionEnabled property +func (m *OnPremisesPublishing) SetIsStateSessionEnabled(value *bool)() { + if m != nil { + m.isStateSessionEnabled = value + } +} // SetIsTranslateHostHeaderEnabled sets the isTranslateHostHeaderEnabled property value. Indicates if the application should translate urls in the reponse headers. Keep this value as true unless your application required the original host header in the authentication request. Default value is true. func (m *OnPremisesPublishing) SetIsTranslateHostHeaderEnabled(value *bool)() { if m != nil { @@ -596,6 +662,12 @@ func (m *OnPremisesPublishing) SetIsTranslateLinksInBodyEnabled(value *bool)() { m.isTranslateLinksInBodyEnabled = value } } +// SetOnPremisesApplicationSegments sets the onPremisesApplicationSegments property value. The onPremisesApplicationSegments property +func (m *OnPremisesPublishing) SetOnPremisesApplicationSegments(value []OnPremisesApplicationSegmentable)() { + if m != nil { + m.onPremisesApplicationSegments = value + } +} // SetSingleSignOnSettings sets the singleSignOnSettings property value. Represents the single sign-on configuration for the on-premises application. func (m *OnPremisesPublishing) SetSingleSignOnSettings(value OnPremisesPublishingSingleSignOnable)() { if m != nil { diff --git a/models/on_premises_publishingable.go b/models/on_premises_publishingable.go index ba5f14728b3..5f4ae4c8752 100644 --- a/models/on_premises_publishingable.go +++ b/models/on_premises_publishingable.go @@ -19,8 +19,10 @@ type OnPremisesPublishingable interface { GetIsOnPremPublishingEnabled()(*bool) GetIsPersistentCookieEnabled()(*bool) GetIsSecureCookieEnabled()(*bool) + GetIsStateSessionEnabled()(*bool) GetIsTranslateHostHeaderEnabled()(*bool) GetIsTranslateLinksInBodyEnabled()(*bool) + GetOnPremisesApplicationSegments()([]OnPremisesApplicationSegmentable) GetSingleSignOnSettings()(OnPremisesPublishingSingleSignOnable) GetUseAlternateUrlForTranslationAndRedirect()(*bool) GetVerifiedCustomDomainCertificatesMetadata()(VerifiedCustomDomainCertificatesMetadataable) @@ -37,8 +39,10 @@ type OnPremisesPublishingable interface { SetIsOnPremPublishingEnabled(value *bool)() SetIsPersistentCookieEnabled(value *bool)() SetIsSecureCookieEnabled(value *bool)() + SetIsStateSessionEnabled(value *bool)() SetIsTranslateHostHeaderEnabled(value *bool)() SetIsTranslateLinksInBodyEnabled(value *bool)() + SetOnPremisesApplicationSegments(value []OnPremisesApplicationSegmentable)() SetSingleSignOnSettings(value OnPremisesPublishingSingleSignOnable)() SetUseAlternateUrlForTranslationAndRedirect(value *bool)() SetVerifiedCustomDomainCertificatesMetadata(value VerifiedCustomDomainCertificatesMetadataable)() diff --git a/models/owner_type.go b/models/owner_type.go index 607a47024cb..29486504c6c 100644 --- a/models/owner_type.go +++ b/models/owner_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type OwnerType int const ( diff --git a/models/persistent_browser_session_mode.go b/models/persistent_browser_session_mode.go index 542f2000813..2ff120ca8a4 100644 --- a/models/persistent_browser_session_mode.go +++ b/models/persistent_browser_session_mode.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type PersistentBrowserSessionMode int const ( diff --git a/models/policy_platform_type.go b/models/policy_platform_type.go index cf99c3dd287..85e0e1070dc 100644 --- a/models/policy_platform_type.go +++ b/models/policy_platform_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type PolicyPlatformType int const ( diff --git a/models/policy_scope.go b/models/policy_scope.go index 5ae3a83ce72..73d13d019f9 100644 --- a/models/policy_scope.go +++ b/models/policy_scope.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the collection of mobilityManagementPolicy entities. +// Provides operations to manage the policyRoot singleton. type PolicyScope int const ( diff --git a/models/resultant_app_state.go b/models/resultant_app_state.go index dfca0fd0f95..2b5e35d034c 100644 --- a/models/resultant_app_state.go +++ b/models/resultant_app_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceAppManagement singleton. +// Provides operations to manage the compliance singleton. type ResultantAppState int const ( diff --git a/models/role_summary_status.go b/models/role_summary_status.go index 2a0614f3c10..61e3cfacc6b 100644 --- a/models/role_summary_status.go +++ b/models/role_summary_status.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the collection of privilegedApproval entities. +// Provides operations to manage the collection of privilegedRoleAssignmentRequest entities. type RoleSummaryStatus int const ( diff --git a/models/search_request.go b/models/search_request.go index a62f7abde3c..a6030b3520d 100644 --- a/models/search_request.go +++ b/models/search_request.go @@ -26,6 +26,8 @@ type SearchRequest struct { query SearchQueryable // Provides query alteration options formatted as a JSON blob that contains two optional flags related to spelling correction. Optional. queryAlterationOptions SearchAlterationOptionsable + // The region property + region *string // Provides the search result templates options for rendering connectors search results. resultTemplateOptions ResultTemplateOptionable // The size of the page to be retrieved. Optional. @@ -209,6 +211,16 @@ func (m *SearchRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegion(val) + } + return nil + } res["resultTemplateOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateResultTemplateOptionFromDiscriminatorValue) if err != nil { @@ -301,6 +313,14 @@ func (m *SearchRequest) GetQueryAlterationOptions()(SearchAlterationOptionsable) return m.queryAlterationOptions } } +// GetRegion gets the region property value. The region property +func (m *SearchRequest) GetRegion()(*string) { + if m == nil { + return nil + } else { + return m.region + } +} // GetResultTemplateOptions gets the resultTemplateOptions property value. Provides the search result templates options for rendering connectors search results. func (m *SearchRequest) GetResultTemplateOptions()(ResultTemplateOptionable) { if m == nil { @@ -401,6 +421,12 @@ func (m *SearchRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err := writer.WriteStringValue("region", m.GetRegion()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("resultTemplateOptions", m.GetResultTemplateOptions()) if err != nil { @@ -503,6 +529,12 @@ func (m *SearchRequest) SetQueryAlterationOptions(value SearchAlterationOptionsa m.queryAlterationOptions = value } } +// SetRegion sets the region property value. The region property +func (m *SearchRequest) SetRegion(value *string)() { + if m != nil { + m.region = value + } +} // SetResultTemplateOptions sets the resultTemplateOptions property value. Provides the search result templates options for rendering connectors search results. func (m *SearchRequest) SetResultTemplateOptions(value ResultTemplateOptionable)() { if m != nil { diff --git a/models/search_requestable.go b/models/search_requestable.go index 819735328a2..28be672a009 100644 --- a/models/search_requestable.go +++ b/models/search_requestable.go @@ -17,6 +17,7 @@ type SearchRequestable interface { GetFrom()(*int32) GetQuery()(SearchQueryable) GetQueryAlterationOptions()(SearchAlterationOptionsable) + GetRegion()(*string) GetResultTemplateOptions()(ResultTemplateOptionable) GetSize()(*int32) GetSortProperties()([]SortPropertyable) @@ -31,6 +32,7 @@ type SearchRequestable interface { SetFrom(value *int32)() SetQuery(value SearchQueryable)() SetQueryAlterationOptions(value SearchAlterationOptionsable)() + SetRegion(value *string)() SetResultTemplateOptions(value ResultTemplateOptionable)() SetSize(value *int32)() SetSortProperties(value []SortPropertyable)() diff --git a/models/security_baseline_compliance_state.go b/models/security_baseline_compliance_state.go index 30fbf6c573c..76141ca2f15 100644 --- a/models/security_baseline_compliance_state.go +++ b/models/security_baseline_compliance_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type SecurityBaselineComplianceState int const ( diff --git a/models/security_baseline_policy_source_type.go b/models/security_baseline_policy_source_type.go index 8cf77ef204e..7b031a849d8 100644 --- a/models/security_baseline_policy_source_type.go +++ b/models/security_baseline_policy_source_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type SecurityBaselinePolicySourceType int const ( diff --git a/models/sensitivity_label_assignment.go b/models/sensitivity_label_assignment.go index eb16eb13fd5..d2d8342824d 100644 --- a/models/sensitivity_label_assignment.go +++ b/models/sensitivity_label_assignment.go @@ -8,11 +8,11 @@ import ( type SensitivityLabelAssignment struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]interface{} - // The assignmentMethod property + // Indicates whether the label assignment is done automatically, as a standard, or a privileged operation. The possible values are: standard, privileged, auto, unknownFutureValue. assignmentMethod *SensitivityLabelAssignmentMethod - // The sensitivityLabelId property + // The unique identifier for the sensitivity label assigned to the file. sensitivityLabelId *string - // The tenantId property + // The unique identifier for the tenant that hosts the file when this label is applied. tenantId *string } // NewSensitivityLabelAssignment instantiates a new sensitivityLabelAssignment and sets the default values. @@ -34,7 +34,7 @@ func (m *SensitivityLabelAssignment) GetAdditionalData()(map[string]interface{}) return m.additionalData } } -// GetAssignmentMethod gets the assignmentMethod property value. The assignmentMethod property +// GetAssignmentMethod gets the assignmentMethod property value. Indicates whether the label assignment is done automatically, as a standard, or a privileged operation. The possible values are: standard, privileged, auto, unknownFutureValue. func (m *SensitivityLabelAssignment) GetAssignmentMethod()(*SensitivityLabelAssignmentMethod) { if m == nil { return nil @@ -77,7 +77,7 @@ func (m *SensitivityLabelAssignment) GetFieldDeserializers()(map[string]func(i87 } return res } -// GetSensitivityLabelId gets the sensitivityLabelId property value. The sensitivityLabelId property +// GetSensitivityLabelId gets the sensitivityLabelId property value. The unique identifier for the sensitivity label assigned to the file. func (m *SensitivityLabelAssignment) GetSensitivityLabelId()(*string) { if m == nil { return nil @@ -85,7 +85,7 @@ func (m *SensitivityLabelAssignment) GetSensitivityLabelId()(*string) { return m.sensitivityLabelId } } -// GetTenantId gets the tenantId property value. The tenantId property +// GetTenantId gets the tenantId property value. The unique identifier for the tenant that hosts the file when this label is applied. func (m *SensitivityLabelAssignment) GetTenantId()(*string) { if m == nil { return nil @@ -128,19 +128,19 @@ func (m *SensitivityLabelAssignment) SetAdditionalData(value map[string]interfac m.additionalData = value } } -// SetAssignmentMethod sets the assignmentMethod property value. The assignmentMethod property +// SetAssignmentMethod sets the assignmentMethod property value. Indicates whether the label assignment is done automatically, as a standard, or a privileged operation. The possible values are: standard, privileged, auto, unknownFutureValue. func (m *SensitivityLabelAssignment) SetAssignmentMethod(value *SensitivityLabelAssignmentMethod)() { if m != nil { m.assignmentMethod = value } } -// SetSensitivityLabelId sets the sensitivityLabelId property value. The sensitivityLabelId property +// SetSensitivityLabelId sets the sensitivityLabelId property value. The unique identifier for the sensitivity label assigned to the file. func (m *SensitivityLabelAssignment) SetSensitivityLabelId(value *string)() { if m != nil { m.sensitivityLabelId = value } } -// SetTenantId sets the tenantId property value. The tenantId property +// SetTenantId sets the tenantId property value. The unique identifier for the tenant that hosts the file when this label is applied. func (m *SensitivityLabelAssignment) SetTenantId(value *string)() { if m != nil { m.tenantId = value diff --git a/models/sensitivity_label_target.go b/models/sensitivity_label_target.go index bc64448d06e..dc79e065b3d 100644 --- a/models/sensitivity_label_target.go +++ b/models/sensitivity_label_target.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the dataClassificationService singleton. +// Provides operations to manage the compliance singleton. type SensitivityLabelTarget int const ( diff --git a/models/setting_source_type.go b/models/setting_source_type.go index 3097c603557..e34ec0b0300 100644 --- a/models/setting_source_type.go +++ b/models/setting_source_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type SettingSourceType int const ( diff --git a/models/sign_in.go b/models/sign_in.go index 30476e2daf2..a37d88a59cd 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -34,7 +34,7 @@ type SignIn struct { azureResourceId *string // Identifies the client used for the sign-in activity. Modern authentication clients include Browser and modern clients. Legacy authentication clients include Exchange ActiveSync, IMAP, MAPI, SMTP, POP, and other clients. Supports $filter (eq operator only). clientAppUsed *string - // The clientCredentialType property + // Describes the credential type that a user client or service principal provided to Azure AD to authenticate itself. You may wish to review clientCredentialType to track and eliminate less secure credential types or to watch for clients and service principals using anomalous credential types. The possible values are: none, clientSecret, clientAssertion, federatedIdentityCredential, managedIdentity, certificate, unknownFutureValue. clientCredentialType *ClientCredentialType // Reports status of an activated conditional access policy. Possible values are: success, failure, notApplied, and unknownFutureValue. Supports $filter (eq operator only). conditionalAccessStatus *ConditionalAccessStatus @@ -54,7 +54,7 @@ type SignIn struct { homeTenantId *string // For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant has provided affirmative consent to Azure AD to show the tenant content. homeTenantName *string - // Indicates the token types that were presented to Azure AD to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue. NOTE Azure AD may have also used token types not listed in this Enum type to authenticate the actor. Do not infer the lack of a token if it is not one of the types listed. + // Indicates the token types that were presented to Azure AD to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Azure AD may have also used token types not listed in this Enum type to authenticate the actor. Do not infer the lack of a token if it is not one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. incomingTokenType *IncomingTokenType // IP address of the client used to sign in. Supports $filter (eq and startsWith operators only). ipAddress *string @@ -244,7 +244,7 @@ func (m *SignIn) GetClientAppUsed()(*string) { return m.clientAppUsed } } -// GetClientCredentialType gets the clientCredentialType property value. The clientCredentialType property +// GetClientCredentialType gets the clientCredentialType property value. Describes the credential type that a user client or service principal provided to Azure AD to authenticate itself. You may wish to review clientCredentialType to track and eliminate less secure credential types or to watch for clients and service principals using anomalous credential types. The possible values are: none, clientSecret, clientAssertion, federatedIdentityCredential, managedIdentity, certificate, unknownFutureValue. func (m *SignIn) GetClientCredentialType()(*ClientCredentialType) { if m == nil { return nil @@ -969,7 +969,7 @@ func (m *SignIn) GetHomeTenantName()(*string) { return m.homeTenantName } } -// GetIncomingTokenType gets the incomingTokenType property value. Indicates the token types that were presented to Azure AD to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue. NOTE Azure AD may have also used token types not listed in this Enum type to authenticate the actor. Do not infer the lack of a token if it is not one of the types listed. +// GetIncomingTokenType gets the incomingTokenType property value. Indicates the token types that were presented to Azure AD to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Azure AD may have also used token types not listed in this Enum type to authenticate the actor. Do not infer the lack of a token if it is not one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. func (m *SignIn) GetIncomingTokenType()(*IncomingTokenType) { if m == nil { return nil @@ -1751,7 +1751,7 @@ func (m *SignIn) SetClientAppUsed(value *string)() { m.clientAppUsed = value } } -// SetClientCredentialType sets the clientCredentialType property value. The clientCredentialType property +// SetClientCredentialType sets the clientCredentialType property value. Describes the credential type that a user client or service principal provided to Azure AD to authenticate itself. You may wish to review clientCredentialType to track and eliminate less secure credential types or to watch for clients and service principals using anomalous credential types. The possible values are: none, clientSecret, clientAssertion, federatedIdentityCredential, managedIdentity, certificate, unknownFutureValue. func (m *SignIn) SetClientCredentialType(value *ClientCredentialType)() { if m != nil { m.clientCredentialType = value @@ -1811,7 +1811,7 @@ func (m *SignIn) SetHomeTenantName(value *string)() { m.homeTenantName = value } } -// SetIncomingTokenType sets the incomingTokenType property value. Indicates the token types that were presented to Azure AD to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue. NOTE Azure AD may have also used token types not listed in this Enum type to authenticate the actor. Do not infer the lack of a token if it is not one of the types listed. +// SetIncomingTokenType sets the incomingTokenType property value. Indicates the token types that were presented to Azure AD to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Azure AD may have also used token types not listed in this Enum type to authenticate the actor. Do not infer the lack of a token if it is not one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. func (m *SignIn) SetIncomingTokenType(value *IncomingTokenType)() { if m != nil { m.incomingTokenType = value diff --git a/models/sign_in_frequency_authentication_type.go b/models/sign_in_frequency_authentication_type.go new file mode 100644 index 00000000000..45a91856b75 --- /dev/null +++ b/models/sign_in_frequency_authentication_type.go @@ -0,0 +1,38 @@ +package models +import ( + "strings" + "errors" +) +// Provides operations to manage the identityContainer singleton. +type SignInFrequencyAuthenticationType int + +const ( + PRIMARYANDSECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE SignInFrequencyAuthenticationType = iota + SECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE + UNKNOWNFUTUREVALUE_SIGNINFREQUENCYAUTHENTICATIONTYPE +) + +func (i SignInFrequencyAuthenticationType) String() string { + return []string{"PRIMARYANDSECONDARYAUTHENTICATION", "SECONDARYAUTHENTICATION", "UNKNOWNFUTUREVALUE"}[i] +} +func ParseSignInFrequencyAuthenticationType(v string) (interface{}, error) { + result := PRIMARYANDSECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE + switch strings.ToUpper(v) { + case "PRIMARYANDSECONDARYAUTHENTICATION": + result = PRIMARYANDSECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE + case "SECONDARYAUTHENTICATION": + result = SECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE + case "UNKNOWNFUTUREVALUE": + result = UNKNOWNFUTUREVALUE_SIGNINFREQUENCYAUTHENTICATIONTYPE + default: + return 0, errors.New("Unknown SignInFrequencyAuthenticationType value: " + v) + } + return &result, nil +} +func SerializeSignInFrequencyAuthenticationType(values []SignInFrequencyAuthenticationType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/sign_in_frequency_interval.go b/models/sign_in_frequency_interval.go new file mode 100644 index 00000000000..769e3482561 --- /dev/null +++ b/models/sign_in_frequency_interval.go @@ -0,0 +1,38 @@ +package models +import ( + "strings" + "errors" +) +// Provides operations to manage the identityContainer singleton. +type SignInFrequencyInterval int + +const ( + TIMEBASED_SIGNINFREQUENCYINTERVAL SignInFrequencyInterval = iota + EVERYTIME_SIGNINFREQUENCYINTERVAL + UNKNOWNFUTUREVALUE_SIGNINFREQUENCYINTERVAL +) + +func (i SignInFrequencyInterval) String() string { + return []string{"TIMEBASED", "EVERYTIME", "UNKNOWNFUTUREVALUE"}[i] +} +func ParseSignInFrequencyInterval(v string) (interface{}, error) { + result := TIMEBASED_SIGNINFREQUENCYINTERVAL + switch strings.ToUpper(v) { + case "TIMEBASED": + result = TIMEBASED_SIGNINFREQUENCYINTERVAL + case "EVERYTIME": + result = EVERYTIME_SIGNINFREQUENCYINTERVAL + case "UNKNOWNFUTUREVALUE": + result = UNKNOWNFUTUREVALUE_SIGNINFREQUENCYINTERVAL + default: + return 0, errors.New("Unknown SignInFrequencyInterval value: " + v) + } + return &result, nil +} +func SerializeSignInFrequencyInterval(values []SignInFrequencyInterval) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/sign_in_frequency_session_control.go b/models/sign_in_frequency_session_control.go index 285c9539ff0..07635ff1ec2 100644 --- a/models/sign_in_frequency_session_control.go +++ b/models/sign_in_frequency_session_control.go @@ -7,6 +7,10 @@ import ( // SignInFrequencySessionControl type SignInFrequencySessionControl struct { ConditionalAccessSessionControl + // The authenticationType property + authenticationType *SignInFrequencyAuthenticationType + // The frequencyInterval property + frequencyInterval *SignInFrequencyInterval // Possible values are: days, hours. type_escaped *SigninFrequencyType // The number of days or hours. @@ -23,9 +27,37 @@ func NewSignInFrequencySessionControl()(*SignInFrequencySessionControl) { func CreateSignInFrequencySessionControlFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSignInFrequencySessionControl(), nil } +// GetAuthenticationType gets the authenticationType property value. The authenticationType property +func (m *SignInFrequencySessionControl) GetAuthenticationType()(*SignInFrequencyAuthenticationType) { + if m == nil { + return nil + } else { + return m.authenticationType + } +} // GetFieldDeserializers the deserialization information for the current model func (m *SignInFrequencySessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ConditionalAccessSessionControl.GetFieldDeserializers() + res["authenticationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseSignInFrequencyAuthenticationType) + if err != nil { + return err + } + if val != nil { + m.SetAuthenticationType(val.(*SignInFrequencyAuthenticationType)) + } + return nil + } + res["frequencyInterval"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseSignInFrequencyInterval) + if err != nil { + return err + } + if val != nil { + m.SetFrequencyInterval(val.(*SignInFrequencyInterval)) + } + return nil + } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseSigninFrequencyType) if err != nil { @@ -48,6 +80,14 @@ func (m *SignInFrequencySessionControl) GetFieldDeserializers()(map[string]func( } return res } +// GetFrequencyInterval gets the frequencyInterval property value. The frequencyInterval property +func (m *SignInFrequencySessionControl) GetFrequencyInterval()(*SignInFrequencyInterval) { + if m == nil { + return nil + } else { + return m.frequencyInterval + } +} // GetType gets the type property value. Possible values are: days, hours. func (m *SignInFrequencySessionControl) GetType()(*SigninFrequencyType) { if m == nil { @@ -70,6 +110,20 @@ func (m *SignInFrequencySessionControl) Serialize(writer i878a80d2330e89d2689638 if err != nil { return err } + if m.GetAuthenticationType() != nil { + cast := (*m.GetAuthenticationType()).String() + err = writer.WriteStringValue("authenticationType", &cast) + if err != nil { + return err + } + } + if m.GetFrequencyInterval() != nil { + cast := (*m.GetFrequencyInterval()).String() + err = writer.WriteStringValue("frequencyInterval", &cast) + if err != nil { + return err + } + } if m.GetType() != nil { cast := (*m.GetType()).String() err = writer.WriteStringValue("type", &cast) @@ -85,6 +139,18 @@ func (m *SignInFrequencySessionControl) Serialize(writer i878a80d2330e89d2689638 } return nil } +// SetAuthenticationType sets the authenticationType property value. The authenticationType property +func (m *SignInFrequencySessionControl) SetAuthenticationType(value *SignInFrequencyAuthenticationType)() { + if m != nil { + m.authenticationType = value + } +} +// SetFrequencyInterval sets the frequencyInterval property value. The frequencyInterval property +func (m *SignInFrequencySessionControl) SetFrequencyInterval(value *SignInFrequencyInterval)() { + if m != nil { + m.frequencyInterval = value + } +} // SetType sets the type property value. Possible values are: days, hours. func (m *SignInFrequencySessionControl) SetType(value *SigninFrequencyType)() { if m != nil { diff --git a/models/sign_in_frequency_session_controlable.go b/models/sign_in_frequency_session_controlable.go index 9d986c6c336..7ff7ae8a2f1 100644 --- a/models/sign_in_frequency_session_controlable.go +++ b/models/sign_in_frequency_session_controlable.go @@ -8,8 +8,12 @@ import ( type SignInFrequencySessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthenticationType()(*SignInFrequencyAuthenticationType) + GetFrequencyInterval()(*SignInFrequencyInterval) GetType()(*SigninFrequencyType) GetValue()(*int32) + SetAuthenticationType(value *SignInFrequencyAuthenticationType)() + SetFrequencyInterval(value *SignInFrequencyInterval)() SetType(value *SigninFrequencyType)() SetValue(value *int32)() } diff --git a/models/signin_frequency_type.go b/models/signin_frequency_type.go index 051c3944378..b2968198e92 100644 --- a/models/signin_frequency_type.go +++ b/models/signin_frequency_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the policyRoot singleton. +// Provides operations to manage the identityContainer singleton. type SigninFrequencyType int const ( diff --git a/models/signing_certificate_update_status.go b/models/signing_certificate_update_status.go index 1ef5c704130..2e344884f12 100644 --- a/models/signing_certificate_update_status.go +++ b/models/signing_certificate_update_status.go @@ -9,9 +9,9 @@ import ( type SigningCertificateUpdateStatus struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]interface{} - // The certificateUpdateResult property + // Status of the last certificate update. Read-only. For a list of statuses, see certificateUpdateResult status. certificateUpdateResult *string - // The lastRunDateTime property + // Date and time in ISO 8601 format and in UTC time when the certificate was last updated. Read-only. lastRunDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time } // NewSigningCertificateUpdateStatus instantiates a new signingCertificateUpdateStatus and sets the default values. @@ -33,7 +33,7 @@ func (m *SigningCertificateUpdateStatus) GetAdditionalData()(map[string]interfac return m.additionalData } } -// GetCertificateUpdateResult gets the certificateUpdateResult property value. The certificateUpdateResult property +// GetCertificateUpdateResult gets the certificateUpdateResult property value. Status of the last certificate update. Read-only. For a list of statuses, see certificateUpdateResult status. func (m *SigningCertificateUpdateStatus) GetCertificateUpdateResult()(*string) { if m == nil { return nil @@ -66,7 +66,7 @@ func (m *SigningCertificateUpdateStatus) GetFieldDeserializers()(map[string]func } return res } -// GetLastRunDateTime gets the lastRunDateTime property value. The lastRunDateTime property +// GetLastRunDateTime gets the lastRunDateTime property value. Date and time in ISO 8601 format and in UTC time when the certificate was last updated. Read-only. func (m *SigningCertificateUpdateStatus) GetLastRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { if m == nil { return nil @@ -102,13 +102,13 @@ func (m *SigningCertificateUpdateStatus) SetAdditionalData(value map[string]inte m.additionalData = value } } -// SetCertificateUpdateResult sets the certificateUpdateResult property value. The certificateUpdateResult property +// SetCertificateUpdateResult sets the certificateUpdateResult property value. Status of the last certificate update. Read-only. For a list of statuses, see certificateUpdateResult status. func (m *SigningCertificateUpdateStatus) SetCertificateUpdateResult(value *string)() { if m != nil { m.certificateUpdateResult = value } } -// SetLastRunDateTime sets the lastRunDateTime property value. The lastRunDateTime property +// SetLastRunDateTime sets the lastRunDateTime property value. Date and time in ISO 8601 format and in UTC time when the certificate was last updated. Read-only. func (m *SigningCertificateUpdateStatus) SetLastRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { if m != nil { m.lastRunDateTime = value diff --git a/models/site.go b/models/site.go index 519ece32751..d33f6b9e6fb 100644 --- a/models/site.go +++ b/models/site.go @@ -37,7 +37,7 @@ type Site struct { permissions []Permissionable // If present, indicates that this is the root site in the site collection. Read-only. root Rootable - // The settings on this site. Returned only on $select. Read-only. + // The settings on this site. Read-only. settings SiteSettingsable // Returns identifiers useful for SharePoint REST compatibility. Read-only. sharepointIds SharepointIdsable @@ -412,7 +412,7 @@ func (m *Site) GetRoot()(Rootable) { return m.root } } -// GetSettings gets the settings property value. The settings on this site. Returned only on $select. Read-only. +// GetSettings gets the settings property value. The settings on this site. Read-only. func (m *Site) GetSettings()(SiteSettingsable) { if m == nil { return nil @@ -696,7 +696,7 @@ func (m *Site) SetRoot(value Rootable)() { m.root = value } } -// SetSettings sets the settings property value. The settings on this site. Returned only on $select. Read-only. +// SetSettings sets the settings property value. The settings on this site. Read-only. func (m *Site) SetSettings(value SiteSettingsable)() { if m != nil { m.settings = value diff --git a/models/subject_rights_request_stage.go b/models/subject_rights_request_stage.go index f77bcaf4cb7..656195b581b 100644 --- a/models/subject_rights_request_stage.go +++ b/models/subject_rights_request_stage.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the privacy singleton. +// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. type SubjectRightsRequestStage int const ( diff --git a/models/subject_rights_request_stage_status.go b/models/subject_rights_request_stage_status.go index 3c83fb83325..6b2be02805f 100644 --- a/models/subject_rights_request_stage_status.go +++ b/models/subject_rights_request_stage_status.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the privacy singleton. +// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. type SubjectRightsRequestStageStatus int const ( diff --git a/models/subject_rights_request_status.go b/models/subject_rights_request_status.go index 0b78a4dd76e..51a780fd5c3 100644 --- a/models/subject_rights_request_status.go +++ b/models/subject_rights_request_status.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the privacy singleton. +// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. type SubjectRightsRequestStatus int const ( diff --git a/models/subject_rights_request_type.go b/models/subject_rights_request_type.go index 9a24f1c1c73..cd5c0afdd10 100644 --- a/models/subject_rights_request_type.go +++ b/models/subject_rights_request_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the privacy singleton. +// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. type SubjectRightsRequestType int const ( diff --git a/models/synchronization_job_subject.go b/models/synchronization_job_subject.go index 77d592540f4..7c5cd98730d 100644 --- a/models/synchronization_job_subject.go +++ b/models/synchronization_job_subject.go @@ -10,9 +10,9 @@ type SynchronizationJobSubject struct { additionalData map[string]interface{} // The links property links SynchronizationLinkedObjectsable - // The identifier of an object to which a synchronizationJob is to be applied. + // The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. objectId *string - // The type of the object to which a synchronizationJob is to be applied. + // The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronization from Active Directory to Azure AD.User for synchronization from Azure AD to a third-party application. Worker for synchronization from Workday to either Active Directory or Azure AD. objectTypeName *string } // NewSynchronizationJobSubject instantiates a new synchronizationJobSubject and sets the default values. @@ -77,7 +77,7 @@ func (m *SynchronizationJobSubject) GetLinks()(SynchronizationLinkedObjectsable) return m.links } } -// GetObjectId gets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. +// GetObjectId gets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. func (m *SynchronizationJobSubject) GetObjectId()(*string) { if m == nil { return nil @@ -85,7 +85,7 @@ func (m *SynchronizationJobSubject) GetObjectId()(*string) { return m.objectId } } -// GetObjectTypeName gets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. +// GetObjectTypeName gets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronization from Active Directory to Azure AD.User for synchronization from Azure AD to a third-party application. Worker for synchronization from Workday to either Active Directory or Azure AD. func (m *SynchronizationJobSubject) GetObjectTypeName()(*string) { if m == nil { return nil @@ -133,13 +133,13 @@ func (m *SynchronizationJobSubject) SetLinks(value SynchronizationLinkedObjectsa m.links = value } } -// SetObjectId sets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. +// SetObjectId sets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. func (m *SynchronizationJobSubject) SetObjectId(value *string)() { if m != nil { m.objectId = value } } -// SetObjectTypeName sets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. +// SetObjectTypeName sets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronization from Active Directory to Azure AD.User for synchronization from Azure AD to a third-party application. Worker for synchronization from Workday to either Active Directory or Azure AD. func (m *SynchronizationJobSubject) SetObjectTypeName(value *string)() { if m != nil { m.objectTypeName = value diff --git a/models/teamwork_user_identity.go b/models/teamwork_user_identity.go index 85f2f87a02f..c2419bec6ea 100644 --- a/models/teamwork_user_identity.go +++ b/models/teamwork_user_identity.go @@ -7,7 +7,7 @@ import ( // TeamworkUserIdentity type TeamworkUserIdentity struct { Identity - // Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, and unknownFutureValue. + // Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, unknownFutureValue and emailUser. userIdentityType *TeamworkUserIdentityType } // NewTeamworkUserIdentity instantiates a new teamworkUserIdentity and sets the default values. @@ -36,7 +36,7 @@ func (m *TeamworkUserIdentity) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetUserIdentityType gets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, and unknownFutureValue. +// GetUserIdentityType gets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, unknownFutureValue and emailUser. func (m *TeamworkUserIdentity) GetUserIdentityType()(*TeamworkUserIdentityType) { if m == nil { return nil @@ -59,7 +59,7 @@ func (m *TeamworkUserIdentity) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetUserIdentityType sets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, and unknownFutureValue. +// SetUserIdentityType sets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, unknownFutureValue and emailUser. func (m *TeamworkUserIdentity) SetUserIdentityType(value *TeamworkUserIdentityType)() { if m != nil { m.userIdentityType = value diff --git a/models/teamwork_user_identity_type.go b/models/teamwork_user_identity_type.go index cc16e913021..41499e27dd5 100644 --- a/models/teamwork_user_identity_type.go +++ b/models/teamwork_user_identity_type.go @@ -15,10 +15,11 @@ const ( SKYPEUSER_TEAMWORKUSERIDENTITYTYPE PHONEUSER_TEAMWORKUSERIDENTITYTYPE UNKNOWNFUTUREVALUE_TEAMWORKUSERIDENTITYTYPE + EMAILUSER_TEAMWORKUSERIDENTITYTYPE ) func (i TeamworkUserIdentityType) String() string { - return []string{"AADUSER", "ONPREMISEAADUSER", "ANONYMOUSGUEST", "FEDERATEDUSER", "PERSONALMICROSOFTACCOUNTUSER", "SKYPEUSER", "PHONEUSER", "UNKNOWNFUTUREVALUE"}[i] + return []string{"AADUSER", "ONPREMISEAADUSER", "ANONYMOUSGUEST", "FEDERATEDUSER", "PERSONALMICROSOFTACCOUNTUSER", "SKYPEUSER", "PHONEUSER", "UNKNOWNFUTUREVALUE", "EMAILUSER"}[i] } func ParseTeamworkUserIdentityType(v string) (interface{}, error) { result := AADUSER_TEAMWORKUSERIDENTITYTYPE @@ -39,6 +40,8 @@ func ParseTeamworkUserIdentityType(v string) (interface{}, error) { result = PHONEUSER_TEAMWORKUSERIDENTITYTYPE case "UNKNOWNFUTUREVALUE": result = UNKNOWNFUTUREVALUE_TEAMWORKUSERIDENTITYTYPE + case "EMAILUSER": + result = EMAILUSER_TEAMWORKUSERIDENTITYTYPE default: return 0, errors.New("Unknown TeamworkUserIdentityType value: " + v) } diff --git a/models/todo_task.go b/models/todo_task.go index 0a29f5d5a11..eb411dbc207 100644 --- a/models/todo_task.go +++ b/models/todo_task.go @@ -12,6 +12,10 @@ type TodoTask struct { body ItemBodyable // The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'. bodyLastModifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The categories property + categories []string + // The checklistItems property + checklistItems []ChecklistItemable // The date in the specified time zone that the task was finished. completedDateTime DateTimeTimeZoneable // The date and time when the task was created. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'. @@ -64,6 +68,22 @@ func (m *TodoTask) GetBodyLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad9 return m.bodyLastModifiedDateTime } } +// GetCategories gets the categories property value. The categories property +func (m *TodoTask) GetCategories()([]string) { + if m == nil { + return nil + } else { + return m.categories + } +} +// GetChecklistItems gets the checklistItems property value. The checklistItems property +func (m *TodoTask) GetChecklistItems()([]ChecklistItemable) { + if m == nil { + return nil + } else { + return m.checklistItems + } +} // GetCompletedDateTime gets the completedDateTime property value. The date in the specified time zone that the task was finished. func (m *TodoTask) GetCompletedDateTime()(DateTimeTimeZoneable) { if m == nil { @@ -119,6 +139,34 @@ func (m *TodoTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["categories"] = 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 { + res[i] = *(v.(*string)) + } + m.SetCategories(res) + } + return nil + } + res["checklistItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateChecklistItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ChecklistItemable, len(val)) + for i, v := range val { + res[i] = v.(ChecklistItemable) + } + m.SetChecklistItems(res) + } + return nil + } res["completedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue) if err != nil { @@ -331,6 +379,22 @@ func (m *TodoTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + if m.GetCategories() != nil { + err = writer.WriteCollectionOfStringValues("categories", m.GetCategories()) + if err != nil { + return err + } + } + if m.GetChecklistItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetChecklistItems())) + for i, v := range m.GetChecklistItems() { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + err = writer.WriteCollectionOfObjectValues("checklistItems", cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("completedDateTime", m.GetCompletedDateTime()) if err != nil { @@ -427,6 +491,18 @@ func (m *TodoTask) SetBodyLastModifiedDateTime(value *i336074805fc853987abe6f7fe m.bodyLastModifiedDateTime = value } } +// SetCategories sets the categories property value. The categories property +func (m *TodoTask) SetCategories(value []string)() { + if m != nil { + m.categories = value + } +} +// SetChecklistItems sets the checklistItems property value. The checklistItems property +func (m *TodoTask) SetChecklistItems(value []ChecklistItemable)() { + if m != nil { + m.checklistItems = value + } +} // SetCompletedDateTime sets the completedDateTime property value. The date in the specified time zone that the task was finished. func (m *TodoTask) SetCompletedDateTime(value DateTimeTimeZoneable)() { if m != nil { diff --git a/models/todo_taskable.go b/models/todo_taskable.go index a8ede6cc4c1..a741d4ef0df 100644 --- a/models/todo_taskable.go +++ b/models/todo_taskable.go @@ -11,6 +11,8 @@ type TodoTaskable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBody()(ItemBodyable) GetBodyLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCategories()([]string) + GetChecklistItems()([]ChecklistItemable) GetCompletedDateTime()(DateTimeTimeZoneable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDueDateTime()(DateTimeTimeZoneable) @@ -25,6 +27,8 @@ type TodoTaskable interface { GetTitle()(*string) SetBody(value ItemBodyable)() SetBodyLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCategories(value []string)() + SetChecklistItems(value []ChecklistItemable)() SetCompletedDateTime(value DateTimeTimeZoneable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDueDateTime(value DateTimeTimeZoneable)() diff --git a/models/user.go b/models/user.go index 0f27d479c1b..4ccbd6b5cae 100644 --- a/models/user.go +++ b/models/user.go @@ -126,6 +126,8 @@ type User struct { insights ItemInsightsable // A list for the user to describe their interests. Returned only on $select. interests []string + // The isManagementRestricted property + isManagementRestricted *bool // Do not use – reserved for future use. isResourceAccount *bool // The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values). @@ -1399,6 +1401,16 @@ func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return nil } + res["isManagementRestricted"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsManagementRestricted(val) + } + return nil + } res["isResourceAccount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -2413,6 +2425,14 @@ func (m *User) GetInterests()([]string) { return m.interests } } +// GetIsManagementRestricted gets the isManagementRestricted property value. The isManagementRestricted property +func (m *User) GetIsManagementRestricted()(*bool) { + if m == nil { + return nil + } else { + return m.isManagementRestricted + } +} // GetIsResourceAccount gets the isResourceAccount property value. Do not use – reserved for future use. func (m *User) GetIsResourceAccount()(*bool) { if m == nil { @@ -3513,6 +3533,12 @@ func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 return err } } + { + err = writer.WriteBoolValue("isManagementRestricted", m.GetIsManagementRestricted()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isResourceAccount", m.GetIsResourceAccount()) if err != nil { @@ -4457,6 +4483,12 @@ func (m *User) SetInterests(value []string)() { m.interests = value } } +// SetIsManagementRestricted sets the isManagementRestricted property value. The isManagementRestricted property +func (m *User) SetIsManagementRestricted(value *bool)() { + if m != nil { + m.isManagementRestricted = value + } +} // SetIsResourceAccount sets the isResourceAccount property value. Do not use – reserved for future use. func (m *User) SetIsResourceAccount(value *bool)() { if m != nil { diff --git a/models/userable.go b/models/userable.go index 875f599cf24..a1eeab81c12 100644 --- a/models/userable.go +++ b/models/userable.go @@ -68,6 +68,7 @@ type Userable interface { GetInformationProtection()(InformationProtectionable) GetInsights()(ItemInsightsable) GetInterests()([]string) + GetIsManagementRestricted()(*bool) GetIsResourceAccount()(*bool) GetJobTitle()(*string) GetJoinedGroups()([]Groupable) @@ -207,6 +208,7 @@ type Userable interface { SetInformationProtection(value InformationProtectionable)() SetInsights(value ItemInsightsable)() SetInterests(value []string)() + SetIsManagementRestricted(value *bool)() SetIsResourceAccount(value *bool)() SetJobTitle(value *string)() SetJoinedGroups(value []Groupable)() diff --git a/models/windows_defender_product_status.go b/models/windows_defender_product_status.go index 4b64d4c7364..393e5513fe7 100644 --- a/models/windows_defender_product_status.go +++ b/models/windows_defender_product_status.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsDefenderProductStatus int const ( diff --git a/models/windows_device_health_state.go b/models/windows_device_health_state.go index 27f45d117c6..6cb949b63f5 100644 --- a/models/windows_device_health_state.go +++ b/models/windows_device_health_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsDeviceHealthState int const ( diff --git a/models/windows_malware_category.go b/models/windows_malware_category.go index db33ecf5f5a..ded094e8970 100644 --- a/models/windows_malware_category.go +++ b/models/windows_malware_category.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsMalwareCategory int const ( diff --git a/models/windows_malware_execution_state.go b/models/windows_malware_execution_state.go index e21ab71e47e..a3cdb765004 100644 --- a/models/windows_malware_execution_state.go +++ b/models/windows_malware_execution_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsMalwareExecutionState int const ( diff --git a/models/windows_malware_severity.go b/models/windows_malware_severity.go index 30a877759e6..c814e651a44 100644 --- a/models/windows_malware_severity.go +++ b/models/windows_malware_severity.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsMalwareSeverity int const ( diff --git a/models/windows_malware_state.go b/models/windows_malware_state.go index 766f6f715ab..201b8d32236 100644 --- a/models/windows_malware_state.go +++ b/models/windows_malware_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsMalwareState int const ( diff --git a/models/windows_malware_threat_state.go b/models/windows_malware_threat_state.go index 34513d733a0..131669b760a 100644 --- a/models/windows_malware_threat_state.go +++ b/models/windows_malware_threat_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the compliance singleton. type WindowsMalwareThreatState int const ( diff --git a/shares/item/list/items/item/documentsetversions/document_set_versions_request_builder.go b/shares/item/list/items/item/documentsetversions/document_set_versions_request_builder.go index 1fd92009efd..48db9f3592a 100644 --- a/shares/item/list/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/shares/item/list/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from shares +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i7138892ad02a2203714bf02670c92a00a6d66a4ac8cf3ae01eef769b9a0610f5.CountRequestBuilder) { return i7138892ad02a2203714bf02670c92a00a6d66a4ac8cf3ae01eef769b9a0610f5.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from shares +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from shares +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/shares/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/shares/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go index 02815a86ffc..23168aef4a4 100644 --- a/shares/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/shares/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from shares +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from shares +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from shares +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/shares/item/listitem/documentsetversions/document_set_versions_request_builder.go b/shares/item/listitem/documentsetversions/document_set_versions_request_builder.go index 2060903f757..d24cd0f609c 100644 --- a/shares/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/shares/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from shares +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i8ba95be420dc1e56d1a414d70a6d7f13fb6d50af4018038c12a98c8e91dc8bd1.CountRequestBuilder) { return i8ba95be420dc1e56d1a414d70a6d7f13fb6d50af4018038c12a98c8e91dc8bd1.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from shares +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from shares +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/shares/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/shares/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 58ef510f78f..4c6cfdcc790 100644 --- a/shares/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/shares/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from shares +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from shares +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from shares +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go b/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go index f09b71674d6..7abe43190bc 100644 --- a/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/sites/item/lists/item/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from sites +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i3dd54c76af49f354b560ef40fd96f296ab440b1d428554e71e334254e4f9a890.CountRequestBuilder) { return i3dd54c76af49f354b560ef40fd96f296ab440b1d428554e71e334254e4f9a890.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from sites +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from sites +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go index 3c5840373da..f921d576782 100644 --- a/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/sites/item/lists/item/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from sites +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from sites +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from sites +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/sites/item/site_item_request_builder.go b/sites/item/site_item_request_builder.go index 2d4b0914195..aeaea42943b 100644 --- a/sites/item/site_item_request_builder.go +++ b/sites/item/site_item_request_builder.go @@ -42,15 +42,6 @@ type SiteItemRequestBuilder struct { // Url template to use to build the URL for the current request builder urlTemplate string } -// SiteItemRequestBuilderDeleteOptions options for Delete -type SiteItemRequestBuilderDeleteOptions struct { - // Request headers - Headers map[string]string - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Response handler to use in place of the default response handling provided by the core service - ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler -} // SiteItemRequestBuilderGetOptions options for Get type SiteItemRequestBuilderGetOptions struct { // Request headers @@ -133,23 +124,6 @@ func (m *SiteItemRequestBuilder) ContentTypesById(id string)(*i3721ddd37978ed588 } return i3721ddd37978ed5887e741cd4ec530f247da77968194df669e6b5cf53370bed5.NewContentTypeItemRequestBuilderInternal(urlTplParams, m.requestAdapter); } -// CreateDeleteRequestInformation delete entity from sites -func (m *SiteItemRequestBuilder) CreateDeleteRequestInformation(options *SiteItemRequestBuilderDeleteOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() - requestInfo.UrlTemplate = m.urlTemplate - requestInfo.PathParameters = m.pathParameters - requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE - if options != nil && options.Headers != nil { - requestInfo.Headers = options.Headers - } - if options != nil && len(options.Options) != 0 { - err := requestInfo.AddRequestOptions(options.Options...) - if err != nil { - return nil, err - } - } - return requestInfo, nil -} // CreateGetRequestInformation get entity from sites by key func (m *SiteItemRequestBuilder) CreateGetRequestInformation(options *SiteItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() @@ -188,22 +162,6 @@ func (m *SiteItemRequestBuilder) CreatePatchRequestInformation(options *SiteItem } return requestInfo, nil } -// Delete delete entity from sites -func (m *SiteItemRequestBuilder) Delete(options *SiteItemRequestBuilderDeleteOptions)(error) { - requestInfo, err := m.CreateDeleteRequestInformation(options); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - err = m.requestAdapter.SendNoContentAsync(requestInfo, nil, errorMapping) - if err != nil { - return err - } - return nil -} // Drive the drive property func (m *SiteItemRequestBuilder) Drive()(*i1991c7a4b0a20509c544953013d93e8d47ab98806f12da33b247cec0746146b2.DriveRequestBuilder) { return i1991c7a4b0a20509c544953013d93e8d47ab98806f12da33b247cec0746146b2.NewDriveRequestBuilderInternal(m.pathParameters, m.requestAdapter); diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 6f0fb8de4e1..f4adf022c13 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -49,17 +49,6 @@ type SitesRequestBuilderGetQueryParameters struct { // Show only the first n items Top *int32 `uriparametername:"%24top"` } -// SitesRequestBuilderPostOptions options for Post -type SitesRequestBuilderPostOptions struct { - // - Body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable - // Request headers - Headers map[string]string - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Response handler to use in place of the default response handling provided by the core service - ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler -} // Add the add property func (m *SitesRequestBuilder) Add()(*i6f81ada91b35c4c8b5de72483e03b83321824cd7301bf2b1faec3e76d10920ab.AddRequestBuilder) { return i6f81ada91b35c4c8b5de72483e03b83321824cd7301bf2b1faec3e76d10920ab.NewAddRequestBuilderInternal(m.pathParameters, m.requestAdapter); @@ -107,24 +96,6 @@ func (m *SitesRequestBuilder) CreateGetRequestInformation(options *SitesRequestB } return requestInfo, nil } -// CreatePostRequestInformation add new entity to sites -func (m *SitesRequestBuilder) CreatePostRequestInformation(options *SitesRequestBuilderPostOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() - requestInfo.UrlTemplate = m.urlTemplate - requestInfo.PathParameters = m.pathParameters - requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST - requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) - if options != nil && options.Headers != nil { - requestInfo.Headers = options.Headers - } - if options != nil && len(options.Options) != 0 { - err := requestInfo.AddRequestOptions(options.Options...) - if err != nil { - return nil, err - } - } - return requestInfo, nil -} // Delta provides operations to call the delta method. func (m *SitesRequestBuilder) Delta()(*i78c52f4a1bffb07514485793e74ce9ff957279c79c8593b58f1d24032586a995.DeltaRequestBuilder) { return i78c52f4a1bffb07514485793e74ce9ff957279c79c8593b58f1d24032586a995.NewDeltaRequestBuilderInternal(m.pathParameters, m.requestAdapter); @@ -145,22 +116,6 @@ func (m *SitesRequestBuilder) Get(options *SitesRequestBuilderGetOptions)(ie233e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable), nil } -// Post add new entity to sites -func (m *SitesRequestBuilder) Post(options *SitesRequestBuilderPostOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, error) { - requestInfo, err := m.CreatePostRequestInformation(options); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSiteFromDiscriminatorValue, nil, errorMapping) - if err != nil { - return nil, err - } - return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable), nil -} // Remove the remove property func (m *SitesRequestBuilder) Remove()(*i01987e74e1c88ee7412edc4fecc08f77a9bd5b9625489df2dcf277b733bd32a5.RemoveRequestBuilder) { return i01987e74e1c88ee7412edc4fecc08f77a9bd5b9625489df2dcf277b733bd32a5.NewRemoveRequestBuilderInternal(m.pathParameters, m.requestAdapter); diff --git a/teams/item/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go b/teams/item/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go index 184c853ec7b..770ac5ff0d4 100644 --- a/teams/item/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go +++ b/teams/item/channels/item/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go @@ -37,7 +37,7 @@ type SharedWithChannelTeamInfoItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -106,7 +106,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateDeleteRequestInforma } return requestInfo, nil } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateGetRequestInformation(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -160,7 +160,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) Delete(options *SharedWith } return nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) Get(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/teams/item/channels/item/sharedwithteams/shared_with_teams_request_builder.go b/teams/item/channels/item/sharedwithteams/shared_with_teams_request_builder.go index 63bd17265ed..05e4a869ef4 100644 --- a/teams/item/channels/item/sharedwithteams/shared_with_teams_request_builder.go +++ b/teams/item/channels/item/sharedwithteams/shared_with_teams_request_builder.go @@ -27,7 +27,7 @@ type SharedWithTeamsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithTeamsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewSharedWithTeamsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *SharedWithTeamsRequestBuilder) Count()(*i412b0e03c0f16b59c597c8a8b5422194686f51f30d1ded4f735497af68819305.CountRequestBuilder) { return i412b0e03c0f16b59c597c8a8b5422194686f51f30d1ded4f735497af68819305.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) CreateGetRequestInformation(options *SharedWithTeamsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *SharedWithTeamsRequestBuilder) CreatePostRequestInformation(options *Sh } return requestInfo, nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) Get(options *SharedWithTeamsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/teams/item/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go b/teams/item/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go index 7fd86d297da..73337eba59e 100644 --- a/teams/item/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go +++ b/teams/item/primarychannel/sharedwithteams/item/shared_with_channel_team_info_item_request_builder.go @@ -37,7 +37,7 @@ type SharedWithChannelTeamInfoItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -106,7 +106,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateDeleteRequestInforma } return requestInfo, nil } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) CreateGetRequestInformation(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -160,7 +160,7 @@ func (m *SharedWithChannelTeamInfoItemRequestBuilder) Delete(options *SharedWith } return nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithChannelTeamInfoItemRequestBuilder) Get(options *SharedWithChannelTeamInfoItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/teams/item/primarychannel/sharedwithteams/shared_with_teams_request_builder.go b/teams/item/primarychannel/sharedwithteams/shared_with_teams_request_builder.go index ebde72e416c..b3ff9d9f082 100644 --- a/teams/item/primarychannel/sharedwithteams/shared_with_teams_request_builder.go +++ b/teams/item/primarychannel/sharedwithteams/shared_with_teams_request_builder.go @@ -27,7 +27,7 @@ type SharedWithTeamsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams shared with the channel. +// SharedWithTeamsRequestBuilderGetQueryParameters a collection of teams with which a channel is shared. type SharedWithTeamsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewSharedWithTeamsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *SharedWithTeamsRequestBuilder) Count()(*i0af9b21c05b0b738fd8933a487f17ba2df389cdd80162223711ce96ee442cc5f.CountRequestBuilder) { return i0af9b21c05b0b738fd8933a487f17ba2df389cdd80162223711ce96ee442cc5f.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation a collection of teams shared with the channel. +// CreateGetRequestInformation a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) CreateGetRequestInformation(options *SharedWithTeamsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *SharedWithTeamsRequestBuilder) CreatePostRequestInformation(options *Sh } return requestInfo, nil } -// Get a collection of teams shared with the channel. +// Get a collection of teams with which a channel is shared. func (m *SharedWithTeamsRequestBuilder) Get(options *SharedWithTeamsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedWithChannelTeamInfoCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go b/users/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go index 72917e16d16..003a176bea1 100644 --- a/users/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/users/item/drives/item/items/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from users +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*ic2ee3e3337049c187dfad7027b924e9dbccbc4df8db0013dc3a2655099f58b64.CountRequestBuilder) { return ic2ee3e3337049c187dfad7027b924e9dbccbc4df8db0013dc3a2655099f58b64.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from users +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from users +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/users/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index a1f56721eca..72e8431e9f3 100644 --- a/users/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/users/item/drives/item/items/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from users +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from users +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from users +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go b/users/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go index d245783a7dc..f1b1127b4a4 100644 --- a/users/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go +++ b/users/item/drives/item/list/items/item/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from users +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*if2e6de4a8bec66b2a85c685e0b31b451f19eb0f601599379c497534f5c1b0d69.CountRequestBuilder) { return if2e6de4a8bec66b2a85c685e0b31b451f19eb0f601599379c497534f5c1b0d69.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from users +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from users +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go b/users/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go index 6d07ec16695..213fa1b976e 100644 --- a/users/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go +++ b/users/item/drives/item/list/items/item/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from users +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from users +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from users +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go b/users/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go index 8e7356d8f7e..ca3b800c324 100644 --- a/users/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/users/item/drives/item/root/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from users +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i9fbde9f81fe2559ae301e081428871606c61169519d33bcf7fc7cdf74e8bb1a3.CountRequestBuilder) { return i9fbde9f81fe2559ae301e081428871606c61169519d33bcf7fc7cdf74e8bb1a3.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from users +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from users +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/users/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go index c5ebfb2c0df..ac801495b5e 100644 --- a/users/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/users/item/drives/item/root/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from users +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from users +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from users +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/users/item/todo/lists/item/tasks/item/checklistitems/checklist_items_request_builder.go b/users/item/todo/lists/item/tasks/item/checklistitems/checklist_items_request_builder.go new file mode 100644 index 00000000000..22e468b17c7 --- /dev/null +++ b/users/item/todo/lists/item/tasks/item/checklistitems/checklist_items_request_builder.go @@ -0,0 +1,152 @@ +package checklistitems + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + if6b518d3a44a4d1aeaa669a4efae45742db2a3b9ebe149ac3322723c950e29f8 "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/checklistitems/count" +) + +// ChecklistItemsRequestBuilder provides operations to manage the checklistItems property of the microsoft.graph.todoTask entity. +type ChecklistItemsRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// ChecklistItemsRequestBuilderGetOptions options for Get +type ChecklistItemsRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ChecklistItemsRequestBuilderGetQueryParameters + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// ChecklistItemsRequestBuilderGetQueryParameters get checklistItems from users +type ChecklistItemsRequestBuilderGetQueryParameters 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"` +} +// ChecklistItemsRequestBuilderPostOptions options for Post +type ChecklistItemsRequestBuilderPostOptions struct { + // + Body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewChecklistItemsRequestBuilderInternal instantiates a new ChecklistItemsRequestBuilder and sets the default values. +func NewChecklistItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemsRequestBuilder) { + m := &ChecklistItemsRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewChecklistItemsRequestBuilder instantiates a new ChecklistItemsRequestBuilder and sets the default values. +func NewChecklistItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewChecklistItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count the count property +func (m *ChecklistItemsRequestBuilder) Count()(*if6b518d3a44a4d1aeaa669a4efae45742db2a3b9ebe149ac3322723c950e29f8.CountRequestBuilder) { + return if6b518d3a44a4d1aeaa669a4efae45742db2a3b9ebe149ac3322723c950e29f8.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); +} +// CreateGetRequestInformation get checklistItems from users +func (m *ChecklistItemsRequestBuilder) CreateGetRequestInformation(options *ChecklistItemsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.QueryParameters != nil { + requestInfo.AddQueryParameters(*(options.QueryParameters)) + } + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// CreatePostRequestInformation create new navigation property to checklistItems for users +func (m *ChecklistItemsRequestBuilder) CreatePostRequestInformation(options *ChecklistItemsRequestBuilderPostOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST + requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get get checklistItems from users +func (m *ChecklistItemsRequestBuilder) Get(options *ChecklistItemsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemCollectionResponseable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateChecklistItemCollectionResponseFromDiscriminatorValue, nil, errorMapping) + if err != nil { + return nil, err + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemCollectionResponseable), nil +} +// Post create new navigation property to checklistItems for users +func (m *ChecklistItemsRequestBuilder) Post(options *ChecklistItemsRequestBuilderPostOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { + requestInfo, err := m.CreatePostRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateChecklistItemFromDiscriminatorValue, nil, errorMapping) + if err != nil { + return nil, err + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil +} diff --git a/users/item/todo/lists/item/tasks/item/checklistitems/count/count_request_builder.go b/users/item/todo/lists/item/tasks/item/checklistitems/count/count_request_builder.go new file mode 100644 index 00000000000..85a1e964bf1 --- /dev/null +++ b/users/item/todo/lists/item/tasks/item/checklistitems/count/count_request_builder.go @@ -0,0 +1,77 @@ +package count + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CountRequestBuilder provides operations to count the resources in the collection. +type CountRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// CountRequestBuilderGetOptions options for Get +type CountRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) { + m := &CountRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems/$count"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCountRequestBuilderInternal(urlParams, requestAdapter) +} +// CreateGetRequestInformation get the number of the resource +func (m *CountRequestBuilder) CreateGetRequestInformation(options *CountRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Get get the number of the resource +func (m *CountRequestBuilder) Get(options *CountRequestBuilderGetOptions)(*int32, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "int32", nil, errorMapping) + if err != nil { + return nil, err + } + return res.(*int32), nil +} diff --git a/users/item/todo/lists/item/tasks/item/checklistitems/item/checklist_item_item_request_builder.go b/users/item/todo/lists/item/tasks/item/checklistitems/item/checklist_item_item_request_builder.go new file mode 100644 index 00000000000..587c6482533 --- /dev/null +++ b/users/item/todo/lists/item/tasks/item/checklistitems/item/checklist_item_item_request_builder.go @@ -0,0 +1,177 @@ +package item + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ChecklistItemItemRequestBuilder provides operations to manage the checklistItems property of the microsoft.graph.todoTask entity. +type ChecklistItemItemRequestBuilder struct { + // Path parameters for the request + pathParameters map[string]string + // The request adapter to use to execute the requests. + requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter + // Url template to use to build the URL for the current request builder + urlTemplate string +} +// ChecklistItemItemRequestBuilderDeleteOptions options for Delete +type ChecklistItemItemRequestBuilderDeleteOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// ChecklistItemItemRequestBuilderGetOptions options for Get +type ChecklistItemItemRequestBuilderGetOptions struct { + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ChecklistItemItemRequestBuilderGetQueryParameters + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// ChecklistItemItemRequestBuilderGetQueryParameters get checklistItems from users +type ChecklistItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ChecklistItemItemRequestBuilderPatchOptions options for Patch +type ChecklistItemItemRequestBuilderPatchOptions struct { + // + Body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable + // Request headers + Headers map[string]string + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Response handler to use in place of the default response handling provided by the core service + ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler +} +// NewChecklistItemItemRequestBuilderInternal instantiates a new ChecklistItemItemRequestBuilder and sets the default values. +func NewChecklistItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemItemRequestBuilder) { + m := &ChecklistItemItemRequestBuilder{ + } + m.urlTemplate = "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems/{checklistItem%2Did}{?%24select,%24expand}"; + urlTplParams := make(map[string]string) + for idx, item := range pathParameters { + urlTplParams[idx] = item + } + m.pathParameters = urlTplParams; + m.requestAdapter = requestAdapter; + return m +} +// NewChecklistItemItemRequestBuilder instantiates a new ChecklistItemItemRequestBuilder and sets the default values. +func NewChecklistItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChecklistItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewChecklistItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// CreateDeleteRequestInformation delete navigation property checklistItems for users +func (m *ChecklistItemItemRequestBuilder) CreateDeleteRequestInformation(options *ChecklistItemItemRequestBuilderDeleteOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// CreateGetRequestInformation get checklistItems from users +func (m *ChecklistItemItemRequestBuilder) CreateGetRequestInformation(options *ChecklistItemItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if options != nil && options.QueryParameters != nil { + requestInfo.AddQueryParameters(*(options.QueryParameters)) + } + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// CreatePatchRequestInformation update the navigation property checklistItems in users +func (m *ChecklistItemItemRequestBuilder) CreatePatchRequestInformation(options *ChecklistItemItemRequestBuilderPatchOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.urlTemplate + requestInfo.PathParameters = m.pathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) + if options != nil && options.Headers != nil { + requestInfo.Headers = options.Headers + } + if options != nil && len(options.Options) != 0 { + err := requestInfo.AddRequestOptions(options.Options...) + if err != nil { + return nil, err + } + } + return requestInfo, nil +} +// Delete delete navigation property checklistItems for users +func (m *ChecklistItemItemRequestBuilder) Delete(options *ChecklistItemItemRequestBuilderDeleteOptions)(error) { + requestInfo, err := m.CreateDeleteRequestInformation(options); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.requestAdapter.SendNoContentAsync(requestInfo, nil, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get checklistItems from users +func (m *ChecklistItemItemRequestBuilder) Get(options *ChecklistItemItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { + requestInfo, err := m.CreateGetRequestInformation(options); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.requestAdapter.SendAsync(requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateChecklistItemFromDiscriminatorValue, nil, errorMapping) + if err != nil { + return nil, err + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil +} +// Patch update the navigation property checklistItems in users +func (m *ChecklistItemItemRequestBuilder) Patch(options *ChecklistItemItemRequestBuilderPatchOptions)(error) { + requestInfo, err := m.CreatePatchRequestInformation(options); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.requestAdapter.SendNoContentAsync(requestInfo, nil, errorMapping) + if err != nil { + return err + } + return nil +} diff --git a/users/item/todo/lists/item/tasks/item/todo_task_item_request_builder.go b/users/item/todo/lists/item/tasks/item/todo_task_item_request_builder.go index 970bf3d62fe..83d0eab3e49 100644 --- a/users/item/todo/lists/item/tasks/item/todo_task_item_request_builder.go +++ b/users/item/todo/lists/item/tasks/item/todo_task_item_request_builder.go @@ -6,8 +6,10 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" i4473eb3633503a172b34982c873e33c8efa94259783a3642ee6cedb3c5c906a7 "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/extensions" i49c9f3580718111fd0b6ef827e6816e14178557d048d09f86d74f5aa6ba02f54 "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/linkedresources" + ifed95a4ba551c880d2020cfb9eb2eab0946d4430e7bb4641dab7f5b82b60c655 "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/checklistitems" i4531f84f655bf3b3d3a1027773f9c2bb029ea97f2eece205c7eb9bcaec4c009c "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/extensions/item" i6737f99b67a18abc341a9ca718ffc65ce748e94cc634823575af95ac13a007ca "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/linkedresources/item" + iabf0df8a70bb970e3966c7005b6f3fac8c6c8c2c237330ea2b1c48ec24f3ef61 "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/todo/lists/item/tasks/item/checklistitems/item" ) // TodoTaskItemRequestBuilder provides operations to manage the tasks property of the microsoft.graph.todoTaskList entity. @@ -57,6 +59,21 @@ type TodoTaskItemRequestBuilderPatchOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } +// ChecklistItems the checklistItems property +func (m *TodoTaskItemRequestBuilder) ChecklistItems()(*ifed95a4ba551c880d2020cfb9eb2eab0946d4430e7bb4641dab7f5b82b60c655.ChecklistItemsRequestBuilder) { + return ifed95a4ba551c880d2020cfb9eb2eab0946d4430e7bb4641dab7f5b82b60c655.NewChecklistItemsRequestBuilderInternal(m.pathParameters, m.requestAdapter); +} +// ChecklistItemsById gets an item from the github.com/microsoftgraph/msgraph-beta-sdk-go/.users.item.todo.lists.item.tasks.item.checklistItems.item collection +func (m *TodoTaskItemRequestBuilder) ChecklistItemsById(id string)(*iabf0df8a70bb970e3966c7005b6f3fac8c6c8c2c237330ea2b1c48ec24f3ef61.ChecklistItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.pathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["checklistItem%2Did"] = id + } + return iabf0df8a70bb970e3966c7005b6f3fac8c6c8c2c237330ea2b1c48ec24f3ef61.NewChecklistItemItemRequestBuilderInternal(urlTplParams, m.requestAdapter); +} // NewTodoTaskItemRequestBuilderInternal instantiates a new TodoTaskItemRequestBuilder and sets the default values. func NewTodoTaskItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TodoTaskItemRequestBuilder) { m := &TodoTaskItemRequestBuilder{ diff --git a/workbooks/item/listitem/documentsetversions/document_set_versions_request_builder.go b/workbooks/item/listitem/documentsetversions/document_set_versions_request_builder.go index 6727d964b8c..b55dd3c847a 100644 --- a/workbooks/item/listitem/documentsetversions/document_set_versions_request_builder.go +++ b/workbooks/item/listitem/documentsetversions/document_set_versions_request_builder.go @@ -27,7 +27,7 @@ type DocumentSetVersionsRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionsRequestBuilderGetQueryParameters get documentSetVersions from workbooks +// DocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -80,7 +80,7 @@ func NewDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *DocumentSetVersionsRequestBuilder) Count()(*i6769689be33270775260c4450f3b228b6fa3614aa9e84ff639fb20fd533952cb.CountRequestBuilder) { return i6769689be33270775260c4450f3b228b6fa3614aa9e84ff639fb20fd533952cb.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter); } -// CreateGetRequestInformation get documentSetVersions from workbooks +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionsRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -118,7 +118,7 @@ func (m *DocumentSetVersionsRequestBuilder) CreatePostRequestInformation(options } return requestInfo, nil } -// Get get documentSetVersions from workbooks +// Get version information for a document set version created by a user. func (m *DocumentSetVersionsRequestBuilder) Get(options *DocumentSetVersionsRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil { diff --git a/workbooks/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go b/workbooks/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go index 7d564d3ac31..46f0ba5677c 100644 --- a/workbooks/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go +++ b/workbooks/item/listitem/documentsetversions/item/document_set_version_item_request_builder.go @@ -36,7 +36,7 @@ type DocumentSetVersionItemRequestBuilderGetOptions struct { // Response handler to use in place of the default response handling provided by the core service ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler } -// DocumentSetVersionItemRequestBuilderGetQueryParameters get documentSetVersions from workbooks +// DocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. type DocumentSetVersionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *DocumentSetVersionItemRequestBuilder) CreateDeleteRequestInformation(op } return requestInfo, nil } -// CreateGetRequestInformation get documentSetVersions from workbooks +// CreateGetRequestInformation version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) CreateGetRequestInformation(options *DocumentSetVersionItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.urlTemplate @@ -144,7 +144,7 @@ func (m *DocumentSetVersionItemRequestBuilder) Delete(options *DocumentSetVersio } return nil } -// Get get documentSetVersions from workbooks +// Get version information for a document set version created by a user. func (m *DocumentSetVersionItemRequestBuilder) Get(options *DocumentSetVersionItemRequestBuilderGetOptions)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DocumentSetVersionable, error) { requestInfo, err := m.CreateGetRequestInformation(options); if err != nil {