diff --git a/go.mod b/go.mod index 3c913eea7ec..83148286362 100644 --- a/go.mod +++ b/go.mod @@ -63,7 +63,7 @@ require ( github.com/onsi/gomega v1.27.4 github.com/open-policy-agent/opa v0.51.0 github.com/orcaman/concurrent-map v1.0.0 - github.com/owncloud/libre-graph-api-go v1.0.5-0.20230512172639-d458ad6b300b + github.com/owncloud/libre-graph-api-go v1.0.5-0.20230710073250-9e5acb4b5838 github.com/pkg/errors v0.9.1 github.com/pkg/xattr v0.4.9 github.com/prometheus/client_golang v1.16.0 diff --git a/go.sum b/go.sum index 1bd84d1cb82..493031951a5 100644 --- a/go.sum +++ b/go.sum @@ -1384,8 +1384,8 @@ github.com/oracle/oci-go-sdk v24.3.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35uk github.com/orcaman/concurrent-map v1.0.0 h1:I/2A2XPCb4IuQWcQhBhSwGfiuybl/J0ev9HDbW65HOY= github.com/orcaman/concurrent-map v1.0.0/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI= github.com/ovh/go-ovh v1.1.0/go.mod h1:AxitLZ5HBRPyUd+Zl60Ajaag+rNTdVXWIkzfrVuTXWA= -github.com/owncloud/libre-graph-api-go v1.0.5-0.20230512172639-d458ad6b300b h1:65U1jcoFlywV2ZEfkynaw4v4DuS/UJdlyHQYCHB+fYA= -github.com/owncloud/libre-graph-api-go v1.0.5-0.20230512172639-d458ad6b300b/go.mod h1:iKdVH6nYpI8RBeK9sjeLfzrPByST6r9d+NG2IJHoJmU= +github.com/owncloud/libre-graph-api-go v1.0.5-0.20230710073250-9e5acb4b5838 h1:1pS1yRXaUO9vpC2k7X5gAIx+l2qyqX0H86WmRouC9i4= +github.com/owncloud/libre-graph-api-go v1.0.5-0.20230710073250-9e5acb4b5838/go.mod h1:iKdVH6nYpI8RBeK9sjeLfzrPByST6r9d+NG2IJHoJmU= github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw= github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= diff --git a/vendor/github.com/owncloud/libre-graph-api-go/api_education_school.go b/vendor/github.com/owncloud/libre-graph-api-go/api_education_school.go index c3855fed59c..f9d1484f423 100644 --- a/vendor/github.com/owncloud/libre-graph-api-go/api_education_school.go +++ b/vendor/github.com/owncloud/libre-graph-api-go/api_education_school.go @@ -470,6 +470,8 @@ func (r ApiDeleteSchoolRequest) Execute() (*http.Response, error) { /* DeleteSchool Delete school +Deletes a school. A school can only be delete if it has the terminationDate property set. And if that termination Date is in the past. + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param schoolId key: id or schoolNumber of school @return ApiDeleteSchoolRequest diff --git a/vendor/github.com/owncloud/libre-graph-api-go/model_education_school.go b/vendor/github.com/owncloud/libre-graph-api-go/model_education_school.go index dbfebc73c93..ce70a2f8375 100644 --- a/vendor/github.com/owncloud/libre-graph-api-go/model_education_school.go +++ b/vendor/github.com/owncloud/libre-graph-api-go/model_education_school.go @@ -12,6 +12,7 @@ package libregraph import ( "encoding/json" + "time" ) // EducationSchool Represents a school @@ -22,6 +23,8 @@ type EducationSchool struct { DisplayName *string `json:"displayName,omitempty"` // School number SchoolNumber *string `json:"schoolNumber,omitempty"` + // Date and time at which the service for this organization is scheduled to be terminated + TerminationDate NullableTime `json:"terminationDate,omitempty"` } // NewEducationSchool instantiates a new EducationSchool object @@ -137,6 +140,49 @@ func (o *EducationSchool) SetSchoolNumber(v string) { o.SchoolNumber = &v } +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EducationSchool) GetTerminationDate() time.Time { + if o == nil || o.TerminationDate.Get() == nil { + var ret time.Time + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EducationSchool) GetTerminationDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *EducationSchool) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableTime and assigns it to the TerminationDate field. +func (o *EducationSchool) SetTerminationDate(v time.Time) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *EducationSchool) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *EducationSchool) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + func (o EducationSchool) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { @@ -148,6 +194,9 @@ func (o EducationSchool) MarshalJSON() ([]byte, error) { if o.SchoolNumber != nil { toSerialize["schoolNumber"] = o.SchoolNumber } + if o.TerminationDate.IsSet() { + toSerialize["terminationDate"] = o.TerminationDate.Get() + } return json.Marshal(toSerialize) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 419db462509..0b77b763352 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1507,7 +1507,7 @@ github.com/opentracing/opentracing-go/log # github.com/orcaman/concurrent-map v1.0.0 ## explicit github.com/orcaman/concurrent-map -# github.com/owncloud/libre-graph-api-go v1.0.5-0.20230512172639-d458ad6b300b +# github.com/owncloud/libre-graph-api-go v1.0.5-0.20230710073250-9e5acb4b5838 ## explicit; go 1.13 github.com/owncloud/libre-graph-api-go # github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c