Skip to content

Commit

Permalink
feat(generation): update request builders and models (#474)
Browse files Browse the repository at this point in the history
Update generated files with build 169540

Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
  • Loading branch information
andrueastman and Microsoft Graph DevX Tooling authored Nov 7, 2024
1 parent 04d8bbd commit 2e47c55
Show file tree
Hide file tree
Showing 264 changed files with 13,500 additions and 1,925 deletions.
6 changes: 3 additions & 3 deletions admin/entra_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type EntraRequestBuilderDeleteRequestConfiguration struct {
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// EntraRequestBuilderGetQueryParameters get entra from admin
// EntraRequestBuilderGetQueryParameters a container for Microsoft Entra resources. Read-only.
type EntraRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string `uriparametername:"%24expand"`
Expand Down Expand Up @@ -71,7 +71,7 @@ func (m *EntraRequestBuilder) Delete(ctx context.Context, requestConfiguration *
}
return nil
}
// Get get entra from admin
// Get a container for Microsoft Entra resources. Read-only.
// Deprecated: as of 2023-11/PrivatePreview:BulkJobs
// returns a Entraable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
Expand Down Expand Up @@ -125,7 +125,7 @@ func (m *EntraRequestBuilder) ToDeleteRequestInformation(ctx context.Context, re
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToGetRequestInformation get entra from admin
// ToGetRequestInformation a container for Microsoft Entra resources. Read-only.
// Deprecated: as of 2023-11/PrivatePreview:BulkJobs
// returns a *RequestInformation when successful
func (m *EntraRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntraRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
Expand Down
16 changes: 11 additions & 5 deletions admin/entra_ux_setting_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type EntraUxSettingRequestBuilderDeleteRequestConfiguration struct {
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// EntraUxSettingRequestBuilderGetQueryParameters get uxSetting from admin
// EntraUxSettingRequestBuilderGetQueryParameters get the properties and relationships of a uxSetting object.
type EntraUxSettingRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string `uriparametername:"%24expand"`
Expand Down Expand Up @@ -71,10 +71,13 @@ func (m *EntraUxSettingRequestBuilder) Delete(ctx context.Context, requestConfig
}
return nil
}
// Get get uxSetting from admin
// Get get the properties and relationships of a uxSetting object.
// Deprecated: as of 2023-11/PrivatePreview:BulkJobs
// returns a UxSettingable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/uxsetting-get?view=graph-rest-beta
func (m *EntraUxSettingRequestBuilder) Get(ctx context.Context, requestConfiguration *EntraUxSettingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand All @@ -92,10 +95,13 @@ func (m *EntraUxSettingRequestBuilder) Get(ctx context.Context, requestConfigura
}
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable), nil
}
// Patch update the navigation property uxSetting in admin
// Patch update the properties of a uxSetting object.
// Deprecated: as of 2023-11/PrivatePreview:BulkJobs
// returns a UxSettingable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/uxsetting-update?view=graph-rest-beta
func (m *EntraUxSettingRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, requestConfiguration *EntraUxSettingRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, error) {
requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -125,7 +131,7 @@ func (m *EntraUxSettingRequestBuilder) ToDeleteRequestInformation(ctx context.Co
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToGetRequestInformation get uxSetting from admin
// ToGetRequestInformation get the properties and relationships of a uxSetting object.
// Deprecated: as of 2023-11/PrivatePreview:BulkJobs
// returns a *RequestInformation when successful
func (m *EntraUxSettingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntraUxSettingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
Expand All @@ -140,7 +146,7 @@ func (m *EntraUxSettingRequestBuilder) ToGetRequestInformation(ctx context.Conte
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToPatchRequestInformation update the navigation property uxSetting in admin
// ToPatchRequestInformation update the properties of a uxSetting object.
// Deprecated: as of 2023-11/PrivatePreview:BulkJobs
// returns a *RequestInformation when successful
func (m *EntraUxSettingRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, requestConfiguration *EntraUxSettingRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDelete
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of an operationalInsightsConnection object.
// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of a resourceConnection object.
type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string `uriparametername:"%24expand"`
Expand Down Expand Up @@ -73,12 +73,12 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder)
}
return nil
}
// Get read the properties and relationships of an operationalInsightsConnection object.
// Get read the properties and relationships of a resourceConnection object.
// returns a ResourceConnectionable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta
func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -127,7 +127,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder)
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToGetRequestInformation read the properties and relationships of an operationalInsightsConnection object.
// ToGetRequestInformation read the properties and relationships of a resourceConnection object.
// returns a *RequestInformation when successful
func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestC
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties and relationships of an updatableAsset object.
// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties and relationships of an updatableAssetGroup object.
type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string `uriparametername:"%24expand"`
Expand Down Expand Up @@ -54,11 +54,11 @@ func NewWindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder(rawUrl str
urlParams["request-raw-url"] = rawUrl
return NewWindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderInternal(urlParams, requestAdapter)
}
// Delete delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
// Delete delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta
func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(error) {
requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand All @@ -73,12 +73,12 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(c
}
return nil
}
// Get read the properties and relationships of an updatableAsset object.
// Get read the properties and relationships of an updatableAssetGroup object.
// returns a UpdatableAssetable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta
func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.UpdatableAssetable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -136,7 +136,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Patch(ct
}
return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.UpdatableAssetable), nil
}
// ToDeleteRequestInformation delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
// ToDeleteRequestInformation delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
// returns a *RequestInformation when successful
func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand All @@ -147,7 +147,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDelete
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToGetRequestInformation read the properties and relationships of an updatableAsset object.
// ToGetRequestInformation read the properties and relationships of an updatableAssetGroup object.
// returns a *RequestInformation when successful
func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemReques
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters read the properties and relationships of a complianceChange object.
// WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters read the properties and relationships of a contentApproval object.
type WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string `uriparametername:"%24expand"`
Expand Down Expand Up @@ -54,11 +54,11 @@ func NewWindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemReq
urlParams["request-raw-url"] = rawUrl
return NewWindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderInternal(urlParams, requestAdapter)
}
// Delete delete a complianceChange object.
// Delete delete a contentApproval object.
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta
func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(error) {
requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand All @@ -73,12 +73,12 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe
}
return nil
}
// Get read the properties and relationships of a complianceChange object.
// Get read the properties and relationships of a contentApproval object.
// returns a ComplianceChangeable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta
// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta
func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -119,7 +119,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe
}
return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil
}
// ToDeleteRequestInformation delete a complianceChange object.
// ToDeleteRequestInformation delete a contentApproval object.
// returns a *RequestInformation when successful
func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand All @@ -130,7 +130,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToGetRequestInformation read the properties and relationships of a complianceChange object.
// ToGetRequestInformation read the properties and relationships of a contentApproval object.
// returns a *RequestInformation when successful
func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Loading

0 comments on commit 2e47c55

Please sign in to comment.