⬆️ Bump github.com/microsoftgraph/msgraph-sdk-go from 1.12.0 to 1.13.0 in /src (#3931)
Bumps [github.com/microsoftgraph/msgraph-sdk-go](https://github.com/microsoftgraph/msgraph-sdk-go) from 1.12.0 to 1.13.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/microsoftgraph/msgraph-sdk-go/blob/main/CHANGELOG.md">github.com/microsoftgraph/msgraph-sdk-go's changelog</a>.</em></p>
<blockquote>
<h2>[1.13.0]- 2023-07-28</h2>
<h3>Changed</h3>
<ul>
<li>Weekly generation.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="e276af0eaf"><code>e276af0</code></a> Generated models and request builders (<a href="https://redirect.github.com/microsoftgraph/msgraph-sdk-go/issues/542">#542</a>)</li>
<li>See full diff in <a href="https://github.com/microsoftgraph/msgraph-sdk-go/compare/v1.12.0...v1.13.0">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
You can trigger a rebase of this PR by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
This commit is contained in:
parent
a670c07735
commit
c59c1d2408
@ -145,7 +145,7 @@ func PopulateDriveDetails(
|
||||
fileSizes[itemName] = ptr.Val(driveItem.GetSize())
|
||||
}
|
||||
|
||||
if driveItem.GetFolder() == nil && driveItem.GetPackage() == nil {
|
||||
if driveItem.GetFolder() == nil && driveItem.GetPackageEscaped() == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
@ -256,7 +256,7 @@ func getOneDriveChildFolder(
|
||||
fileSizes[fullName] = ptr.Val(driveItem.GetSize())
|
||||
}
|
||||
|
||||
if driveItem.GetFolder() == nil && driveItem.GetPackage() == nil {
|
||||
if driveItem.GetFolder() == nil && driveItem.GetPackageEscaped() == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
@ -304,7 +304,7 @@ func getRestoredDrive(
|
||||
continue
|
||||
}
|
||||
|
||||
if item.GetFolder() == nil && item.GetPackage() == nil {
|
||||
if item.GetFolder() == nil && item.GetPackageEscaped() == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ require (
|
||||
github.com/microsoft/kiota-http-go v1.0.1
|
||||
github.com/microsoft/kiota-serialization-form-go v1.0.0
|
||||
github.com/microsoft/kiota-serialization-json-go v1.0.4
|
||||
github.com/microsoftgraph/msgraph-sdk-go v1.12.0
|
||||
github.com/microsoftgraph/msgraph-sdk-go v1.13.0
|
||||
github.com/microsoftgraph/msgraph-sdk-go-core v1.0.0
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/puzpuzpuz/xsync/v2 v2.4.1
|
||||
|
||||
@ -283,8 +283,8 @@ github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNA
|
||||
github.com/microsoft/kiota-serialization-json-go v1.0.4/go.mod h1:rM4+FsAY+9AEpBsBzkFFis+b/LZLlNKKewuLwK9Q6Mg=
|
||||
github.com/microsoft/kiota-serialization-text-go v1.0.0 h1:XOaRhAXy+g8ZVpcq7x7a0jlETWnWrEum0RhmbYrTFnA=
|
||||
github.com/microsoft/kiota-serialization-text-go v1.0.0/go.mod h1:sM1/C6ecnQ7IquQOGUrUldaO5wj+9+v7G2W3sQ3fy6M=
|
||||
github.com/microsoftgraph/msgraph-sdk-go v1.12.0 h1:/jZJ1KCtVlvxStKq31VsEPOQQ5Iy26R1pgvc+RYt7XI=
|
||||
github.com/microsoftgraph/msgraph-sdk-go v1.12.0/go.mod h1:ccLv84FJFtwdSzYWM/HlTes5FLzkzzBsYh9kg93/WS8=
|
||||
github.com/microsoftgraph/msgraph-sdk-go v1.13.0 h1:k+3FJJYCSBcnIueefLrO4Ofsd4UP4NzOQ9k3La8I2oU=
|
||||
github.com/microsoftgraph/msgraph-sdk-go v1.13.0/go.mod h1:ccLv84FJFtwdSzYWM/HlTes5FLzkzzBsYh9kg93/WS8=
|
||||
github.com/microsoftgraph/msgraph-sdk-go-core v1.0.0 h1:7NWTfyXvOjoizW7PmxNp3+8wCKPgpODs/D1cUZ3fkAY=
|
||||
github.com/microsoftgraph/msgraph-sdk-go-core v1.0.0/go.mod h1:tQb4q3YMIj2dWhhXhQSJ4ELpol931ANKzHSYK5kX1qE=
|
||||
github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34=
|
||||
|
||||
@ -37,7 +37,7 @@ func FormatAttendees(event models.Eventable, isHTML bool) string {
|
||||
response: entry.GetStatus().GetResponse().String(),
|
||||
}
|
||||
|
||||
switch ptr.Val(entry.GetType()) {
|
||||
switch ptr.Val(entry.GetTypeEscaped()) {
|
||||
case models.REQUIRED_ATTENDEETYPE:
|
||||
required = append(required, temp)
|
||||
|
||||
@ -81,7 +81,7 @@ func attendeeListToString(attendList []attendee, heading string, isHTML bool) st
|
||||
}
|
||||
|
||||
func guardCheckForAttendee(attendee models.Attendeeable) bool {
|
||||
if attendee.GetType() == nil ||
|
||||
if attendee.GetTypeEscaped() == nil ||
|
||||
attendee.GetStatus() == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
@ -82,9 +82,9 @@ func toEventSimplified(orig models.Eventable) models.Eventable {
|
||||
|
||||
// Sanitize recurrence timezone.
|
||||
if orig.GetRecurrence() != nil {
|
||||
recurrenceTimezone := ptr.Val(orig.GetRecurrence().GetRange().GetRecurrenceTimeZone())
|
||||
recurrenceTimezone := ptr.Val(orig.GetRecurrence().GetRangeEscaped().GetRecurrenceTimeZone())
|
||||
if len(recurrenceTimezone) == 0 {
|
||||
orig.GetRecurrence().GetRange().SetRecurrenceTimeZone(nil)
|
||||
orig.GetRecurrence().GetRangeEscaped().SetRecurrenceTimeZone(nil)
|
||||
}
|
||||
}
|
||||
|
||||
@ -270,7 +270,7 @@ func sanitizeEvent(orig models.Eventable) (models.Eventable, error) {
|
||||
newEvent.SetReminderMinutesBeforeStart(orig.GetReminderMinutesBeforeStart())
|
||||
newEvent.SetStart(orig.GetStart())
|
||||
newEvent.SetSubject(orig.GetSubject())
|
||||
newEvent.SetType(orig.GetType())
|
||||
newEvent.SetTypeEscaped(orig.GetTypeEscaped())
|
||||
|
||||
// Sanitation NOTE
|
||||
// isDraft and isOrganizer *bool ptr's have to be removed completely
|
||||
|
||||
@ -92,7 +92,7 @@ func (suite *TransformUnitTest) TestToEventSimplified_recurrence() {
|
||||
},
|
||||
|
||||
validateOutput: func(e models.Eventable) bool {
|
||||
return e.GetRecurrence().GetRange().GetRecurrenceTimeZone() == nil
|
||||
return e.GetRecurrence().GetRangeEscaped().GetRecurrenceTimeZone() == nil
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -105,7 +105,7 @@ func (suite *TransformUnitTest) TestToEventSimplified_recurrence() {
|
||||
},
|
||||
|
||||
validateOutput: func(e models.Eventable) bool {
|
||||
return e.GetRecurrence().GetRange().GetRecurrenceTimeZone() == nil
|
||||
return e.GetRecurrence().GetRangeEscaped().GetRecurrenceTimeZone() == nil
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -118,7 +118,7 @@ func (suite *TransformUnitTest) TestToEventSimplified_recurrence() {
|
||||
},
|
||||
|
||||
validateOutput: func(e models.Eventable) bool {
|
||||
return ptr.Val(e.GetRecurrence().GetRange().GetRecurrenceTimeZone()) == "Pacific Standard Time"
|
||||
return ptr.Val(e.GetRecurrence().GetRangeEscaped().GetRecurrenceTimeZone()) == "Pacific Standard Time"
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -240,7 +240,7 @@ func hasErrorCode(err error, codes ...errorCode) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
code, ok := ptr.ValOK(oDataError.GetError().GetCode())
|
||||
code, ok := ptr.ValOK(oDataError.GetErrorEscaped().GetCode())
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@ -349,7 +349,7 @@ func errData(err odataerrors.ODataErrorable) (string, []any, string) {
|
||||
data := make([]any, 0)
|
||||
|
||||
// Get MainError
|
||||
mainErr := err.GetError()
|
||||
mainErr := err.GetErrorEscaped()
|
||||
mainMsg := ptr.Val(mainErr.GetMessage())
|
||||
|
||||
data = appendIf(data, "odataerror_code", mainErr.GetCode())
|
||||
|
||||
@ -33,7 +33,7 @@ func odErr(code string) *odataerrors.ODataError {
|
||||
odErr := odataerrors.NewODataError()
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(&code)
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return odErr
|
||||
}
|
||||
@ -43,7 +43,7 @@ func odErrMsg(code, message string) *odataerrors.ODataError {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(&code)
|
||||
merr.SetMessage(&message)
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return odErr
|
||||
}
|
||||
@ -290,7 +290,7 @@ func (suite *GraphErrorsUnitSuite) TestIsErrUserNotFound() {
|
||||
name: "non-matching resource not found",
|
||||
err: func() error {
|
||||
res := odErr(string(ResourceNotFound))
|
||||
res.GetError().SetMessage(ptr.To("Calendar not found"))
|
||||
res.GetErrorEscaped().SetMessage(ptr.To("Calendar not found"))
|
||||
|
||||
return res
|
||||
}(),
|
||||
|
||||
@ -572,7 +572,7 @@ func checkEvent(
|
||||
|
||||
// Skip LastModifiedDateTime as it's tied to this specific instance of the item.
|
||||
|
||||
assert.Equal(t, ptr.Val(expected.GetType()), ptr.Val(got.GetType()), "Type")
|
||||
assert.Equal(t, ptr.Val(expected.GetTypeEscaped()), ptr.Val(got.GetTypeEscaped()), "Type")
|
||||
}
|
||||
|
||||
func compareExchangeEmail(
|
||||
|
||||
@ -695,7 +695,7 @@ func (c *Collections) UpdateCollections(
|
||||
itemID = ptr.Val(item.GetId())
|
||||
itemName = ptr.Val(item.GetName())
|
||||
ictx = clues.Add(ctx, "item_id", itemID, "item_name", clues.Hide(itemName))
|
||||
isFolder = item.GetFolder() != nil || item.GetPackage() != nil
|
||||
isFolder = item.GetFolder() != nil || item.GetPackageEscaped() != nil
|
||||
)
|
||||
|
||||
if item.GetMalware() != nil {
|
||||
@ -778,7 +778,7 @@ func (c *Collections) UpdateCollections(
|
||||
}
|
||||
|
||||
colScope := CollectionScopeFolder
|
||||
if item.GetPackage() != nil {
|
||||
if item.GetPackageEscaped() != nil {
|
||||
colScope = CollectionScopePackage
|
||||
}
|
||||
|
||||
|
||||
@ -2476,7 +2476,7 @@ func coreItem(
|
||||
case isFolder:
|
||||
item.SetFolder(models.NewFolder())
|
||||
case isPackage:
|
||||
item.SetPackage(models.NewPackageEscaped())
|
||||
item.SetPackageEscaped(models.NewPackageEscaped())
|
||||
}
|
||||
|
||||
return item
|
||||
@ -2559,7 +2559,7 @@ func delItem(
|
||||
case isFolder:
|
||||
item.SetFolder(models.NewFolder())
|
||||
case isPackage:
|
||||
item.SetPackage(models.NewPackageEscaped())
|
||||
item.SetPackageEscaped(models.NewPackageEscaped())
|
||||
}
|
||||
|
||||
return item
|
||||
@ -2571,7 +2571,7 @@ func getDeltaError() error {
|
||||
me.SetCode(&syncStateNotFound)
|
||||
|
||||
deltaError := odataerrors.NewODataError()
|
||||
deltaError.SetError(me)
|
||||
deltaError.SetErrorEscaped(me)
|
||||
|
||||
return deltaError
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ func odErr(code string) *odataerrors.ODataError {
|
||||
odErr := odataerrors.NewODataError()
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(&code)
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return odErr
|
||||
}
|
||||
|
||||
@ -216,7 +216,7 @@ func FilterLinkShares(ctx context.Context, perms []models.Permissionable) []Link
|
||||
ID: ptr.Val(p.GetId()),
|
||||
Link: LinkShareLink{
|
||||
Scope: ptr.Val(link.GetScope()),
|
||||
Type: ptr.Val(link.GetType()),
|
||||
Type: ptr.Val(link.GetTypeEscaped()),
|
||||
WebURL: ptr.Val(link.GetWebUrl()),
|
||||
PreventsDownload: ptr.Val(link.GetPreventsDownload()),
|
||||
},
|
||||
|
||||
@ -340,7 +340,7 @@ func UpdateLinkShares(
|
||||
// "retainInheritedPermissions": false
|
||||
// }
|
||||
lsbody := drives.NewItemItemsItemCreateLinkPostRequestBody()
|
||||
lsbody.SetType(ptr.To(ls.Link.Type))
|
||||
lsbody.SetTypeEscaped(ptr.To(ls.Link.Type))
|
||||
lsbody.SetScope(ptr.To(ls.Link.Scope))
|
||||
lsbody.SetExpirationDateTime(ls.Expiration)
|
||||
|
||||
@ -375,7 +375,7 @@ func UpdateLinkShares(
|
||||
// can recreate this by creating a link with no users and deleting it.
|
||||
if len(lsRemoved) > 0 && len(lsAdded) == 0 {
|
||||
lsbody := drives.NewItemItemsItemCreateLinkPostRequestBody()
|
||||
lsbody.SetType(ptr.To("view"))
|
||||
lsbody.SetTypeEscaped(ptr.To("view"))
|
||||
// creating a `users` link without any users ensure that even
|
||||
// if we fail to delete the link there are no links lying
|
||||
// around that could be used to access this
|
||||
|
||||
@ -148,7 +148,7 @@ func cloneColumnDefinitionable(orig models.ColumnDefinitionable) models.ColumnDe
|
||||
newColumn.SetTerm(orig.GetTerm())
|
||||
newColumn.SetText(orig.GetText())
|
||||
newColumn.SetThumbnail(orig.GetThumbnail())
|
||||
newColumn.SetType(orig.GetType())
|
||||
newColumn.SetTypeEscaped(orig.GetTypeEscaped())
|
||||
newColumn.SetValidation(orig.GetValidation())
|
||||
|
||||
return newColumn
|
||||
|
||||
@ -724,7 +724,7 @@ func EventCollisionKey(item models.Eventable) string {
|
||||
|
||||
var (
|
||||
subject = ptr.Val(item.GetSubject())
|
||||
oftype = ptr.Val(item.GetType()).String()
|
||||
oftype = ptr.Val(item.GetTypeEscaped()).String()
|
||||
startTime = item.GetStart()
|
||||
start string
|
||||
endTime = item.GetEnd()
|
||||
|
||||
@ -39,7 +39,7 @@ func odErr(code string) *odataerrors.ODataError {
|
||||
odErr := odataerrors.NewODataError()
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(&code)
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return odErr
|
||||
}
|
||||
@ -49,7 +49,7 @@ func odErrMsg(code, message string) *odataerrors.ODataError {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(&code)
|
||||
merr.SetMessage(&message)
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return odErr
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ func (p *testIDsPager) getPage(ctx context.Context) (DeltaPageLinker, error) {
|
||||
ierr.SetCode(&p.errorCode)
|
||||
|
||||
err := odataerrors.NewODataError()
|
||||
err.SetError(ierr)
|
||||
err.SetErrorEscaped(ierr)
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -186,7 +186,7 @@ func (suite *m365UnitSuite) TestCheckUserHasDrives() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To("code"))
|
||||
merr.SetMessage(ptr.To(string(graph.MysiteNotFound)))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockDGDD{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
@ -202,7 +202,7 @@ func (suite *m365UnitSuite) TestCheckUserHasDrives() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To("code"))
|
||||
merr.SetMessage(ptr.To(string(graph.MysiteURLNotFound)))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockDGDD{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
@ -218,7 +218,7 @@ func (suite *m365UnitSuite) TestCheckUserHasDrives() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To("code"))
|
||||
merr.SetMessage(ptr.To(string(graph.NoSPLicense)))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockDGDD{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
@ -234,7 +234,7 @@ func (suite *m365UnitSuite) TestCheckUserHasDrives() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To(string(graph.RequestResourceNotFound)))
|
||||
merr.SetMessage(ptr.To("message"))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockDGDD{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
@ -250,7 +250,7 @@ func (suite *m365UnitSuite) TestCheckUserHasDrives() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To("code"))
|
||||
merr.SetMessage(ptr.To("message"))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockDGDD{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
@ -307,7 +307,7 @@ func (suite *m365UnitSuite) TestGetAllSites() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To("code"))
|
||||
merr.SetMessage(ptr.To(string(graph.NoSPLicense)))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockGAS{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
@ -322,7 +322,7 @@ func (suite *m365UnitSuite) TestGetAllSites() {
|
||||
merr := odataerrors.NewMainError()
|
||||
merr.SetCode(ptr.To("code"))
|
||||
merr.SetMessage(ptr.To("message"))
|
||||
odErr.SetError(merr)
|
||||
odErr.SetErrorEscaped(merr)
|
||||
|
||||
return mockGAS{nil, graph.Stack(ctx, odErr)}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user