mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-14 08:11:21 -05:00
Bump traefik to 3.6.7 & adapt initilize_users.go & bump librgraph-api-go
Signed-off-by: Christian Richter <c.richter@opencloud.eu> Co-authored-by: Ralf Haferkamp <r.haferkamp@opencloud.eu> # Conflicts: # go.mod
This commit is contained in:
committed by
Christian Richter
parent
5877bfa8a2
commit
f24041725b
30
vendor/github.com/opencloud-eu/libre-graph-api-go/api_education_user.go
generated
vendored
30
vendor/github.com/opencloud-eu/libre-graph-api-go/api_education_user.go
generated
vendored
@@ -153,8 +153,19 @@ func (r ApiDeleteEducationUserRequest) Execute() (*http.Response, error) {
|
||||
/*
|
||||
DeleteEducationUser Delete educationUser
|
||||
|
||||
Deletes an education user by their internal ID.
|
||||
|
||||
**To delete by external ID:**
|
||||
If you only have an external ID, you must first retrieve the user's internal ID:
|
||||
1. Call `GET /graph/v1.0/education/users?$filter=externalId eq '{value}'`
|
||||
2. Extract the `id` from the response
|
||||
3. Use that `id` in this DELETE endpoint
|
||||
|
||||
See the [ListEducationUsers](#/educationUser/ListEducationUsers) operation for query details.
|
||||
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param userId key: id or username of user
|
||||
@param userId key: internal user id (UUID format) or username of user. **Note:** If you only have an external ID, first query the user with `GET /graph/v1.0/education/users?$filter=externalId eq '{value}'` to retrieve the internal ID.
|
||||
@return ApiDeleteEducationUserRequest
|
||||
*/
|
||||
func (a *EducationUserApiService) DeleteEducationUser(ctx context.Context, userId string) ApiDeleteEducationUserRequest {
|
||||
@@ -360,10 +371,17 @@ func (a *EducationUserApiService) GetEducationUserExecute(r ApiGetEducationUserR
|
||||
type ApiListEducationUsersRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *EducationUserApiService
|
||||
filter *string
|
||||
orderby *[]string
|
||||
expand *[]string
|
||||
}
|
||||
|
||||
// Filter items by property values. Supports a subset of OData filter expressions. **Supported filters:** - By external ID: `externalId eq 'ext_12345'`
|
||||
func (r ApiListEducationUsersRequest) Filter(filter string) ApiListEducationUsersRequest {
|
||||
r.filter = &filter
|
||||
return r
|
||||
}
|
||||
|
||||
// Order items by property values
|
||||
func (r ApiListEducationUsersRequest) Orderby(orderby []string) ApiListEducationUsersRequest {
|
||||
r.orderby = &orderby
|
||||
@@ -383,6 +401,13 @@ func (r ApiListEducationUsersRequest) Execute() (*CollectionOfEducationUser, *ht
|
||||
/*
|
||||
ListEducationUsers Get entities from education users
|
||||
|
||||
Retrieves a collection of education users with optional filtering, ordering, and expansion.
|
||||
|
||||
**Filtering by external ID:**
|
||||
Use `$filter` to query users by their external identifier, for example:
|
||||
`$filter=externalId eq 'EX12345'`
|
||||
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiListEducationUsersRequest
|
||||
*/
|
||||
@@ -414,6 +439,9 @@ func (a *EducationUserApiService) ListEducationUsersExecute(r ApiListEducationUs
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
if r.filter != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "$filter", r.filter, "form", "")
|
||||
}
|
||||
if r.orderby != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "$orderby", r.orderby, "form", "csv")
|
||||
}
|
||||
|
||||
37
vendor/github.com/opencloud-eu/libre-graph-api-go/model_education_school.go
generated
vendored
37
vendor/github.com/opencloud-eu/libre-graph-api-go/model_education_school.go
generated
vendored
@@ -26,6 +26,8 @@ type EducationSchool struct {
|
||||
DisplayName *string `json:"displayName,omitempty"`
|
||||
// School number
|
||||
SchoolNumber *string `json:"schoolNumber,omitempty"`
|
||||
// External identifier of the school
|
||||
ExternalId *string `json:"externalId,omitempty"`
|
||||
// Date and time at which the service for this organization is scheduled to be terminated
|
||||
TerminationDate NullableTime `json:"terminationDate,omitempty"`
|
||||
}
|
||||
@@ -143,6 +145,38 @@ func (o *EducationSchool) SetSchoolNumber(v string) {
|
||||
o.SchoolNumber = &v
|
||||
}
|
||||
|
||||
// GetExternalId returns the ExternalId field value if set, zero value otherwise.
|
||||
func (o *EducationSchool) GetExternalId() string {
|
||||
if o == nil || IsNil(o.ExternalId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.ExternalId
|
||||
}
|
||||
|
||||
// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *EducationSchool) GetExternalIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.ExternalId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ExternalId, true
|
||||
}
|
||||
|
||||
// HasExternalId returns a boolean if a field has been set.
|
||||
func (o *EducationSchool) HasExternalId() bool {
|
||||
if o != nil && !IsNil(o.ExternalId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
|
||||
func (o *EducationSchool) SetExternalId(v string) {
|
||||
o.ExternalId = &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 || IsNil(o.TerminationDate.Get()) {
|
||||
@@ -204,6 +238,9 @@ func (o EducationSchool) ToMap() (map[string]interface{}, error) {
|
||||
if !IsNil(o.SchoolNumber) {
|
||||
toSerialize["schoolNumber"] = o.SchoolNumber
|
||||
}
|
||||
if !IsNil(o.ExternalId) {
|
||||
toSerialize["externalId"] = o.ExternalId
|
||||
}
|
||||
if o.TerminationDate.IsSet() {
|
||||
toSerialize["terminationDate"] = o.TerminationDate.Get()
|
||||
}
|
||||
|
||||
37
vendor/github.com/opencloud-eu/libre-graph-api-go/model_education_user.go
generated
vendored
37
vendor/github.com/opencloud-eu/libre-graph-api-go/model_education_user.go
generated
vendored
@@ -28,6 +28,8 @@ type EducationUser struct {
|
||||
// A collection of drives available for this user. Read-only.
|
||||
Drives []Drive `json:"drives,omitempty"`
|
||||
Drive *Drive `json:"drive,omitempty"`
|
||||
// An external unique ID for the user. Use it to associate a user in another system, such as a student or employee ID number.
|
||||
ExternalId *string `json:"externalId,omitempty"`
|
||||
// Identities associated with this account.
|
||||
Identities []ObjectIdentity `json:"identities,omitempty"`
|
||||
// The SMTP address for the user, for example, 'jeff@contoso.opencloud.com'. Returned by default.
|
||||
@@ -224,6 +226,38 @@ func (o *EducationUser) SetDrive(v Drive) {
|
||||
o.Drive = &v
|
||||
}
|
||||
|
||||
// GetExternalId returns the ExternalId field value if set, zero value otherwise.
|
||||
func (o *EducationUser) GetExternalId() string {
|
||||
if o == nil || IsNil(o.ExternalId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.ExternalId
|
||||
}
|
||||
|
||||
// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *EducationUser) GetExternalIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.ExternalId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ExternalId, true
|
||||
}
|
||||
|
||||
// HasExternalId returns a boolean if a field has been set.
|
||||
func (o *EducationUser) HasExternalId() bool {
|
||||
if o != nil && !IsNil(o.ExternalId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
|
||||
func (o *EducationUser) SetExternalId(v string) {
|
||||
o.ExternalId = &v
|
||||
}
|
||||
|
||||
// GetIdentities returns the Identities field value if set, zero value otherwise.
|
||||
func (o *EducationUser) GetIdentities() []ObjectIdentity {
|
||||
if o == nil || IsNil(o.Identities) {
|
||||
@@ -537,6 +571,9 @@ func (o EducationUser) ToMap() (map[string]interface{}, error) {
|
||||
if !IsNil(o.Drive) {
|
||||
toSerialize["drive"] = o.Drive
|
||||
}
|
||||
if !IsNil(o.ExternalId) {
|
||||
toSerialize["externalId"] = o.ExternalId
|
||||
}
|
||||
if !IsNil(o.Identities) {
|
||||
toSerialize["identities"] = o.Identities
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user