Switch to opencloud-eu fork of libre-graph-api-go

This commit is contained in:
Ralf Haferkamp
2025-05-15 14:11:35 +02:00
parent fee393a6ab
commit 3dc9c0cb9a
196 changed files with 2486 additions and 2353 deletions
@@ -1,3 +1,4 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2023 ownCloud GmbH
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -198,4 +199,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
@@ -5,9 +5,9 @@ Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
- API version: v1.0.4
- API version: v1.0.5
- Package version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.13.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
## Installation
@@ -22,7 +22,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
```go
import libregraph "github.com/owncloud/libre-graph-api-go"
import libregraph "github.com/opencloud-eu/libre-graph-api-go"
```
To use a proxy, set the environment variable `HTTP_PROXY`:
@@ -74,7 +74,7 @@ ctx = context.WithValue(context.Background(), libregraph.ContextOperationServerV
## Documentation for API Endpoints
All URIs are relative to *https://ocis.ocis.rolling.owncloud.works/graph*
All URIs are relative to *https://localhost:9200/graph*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,13 +18,14 @@ import (
"net/url"
)
// ActivitiesApiService ActivitiesApi service
type ActivitiesApiService service
type ApiGetActivitiesRequest struct {
ctx context.Context
ctx context.Context
ApiService *ActivitiesApiService
kql *string
kql *string
}
func (r ApiGetActivitiesRequest) Kql(kql string) ApiGetActivitiesRequest {
@@ -39,25 +40,24 @@ func (r ApiGetActivitiesRequest) Execute() (*CollectionOfActivities, *http.Respo
/*
GetActivities Get activities
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetActivitiesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetActivitiesRequest
*/
func (a *ActivitiesApiService) GetActivities(ctx context.Context) ApiGetActivitiesRequest {
return ApiGetActivitiesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfActivities
// @return CollectionOfActivities
func (a *ActivitiesApiService) GetActivitiesExecute(r ApiGetActivitiesRequest) (*CollectionOfActivities, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfActivities
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfActivities
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivitiesApiService.GetActivities")
@@ -113,14 +113,14 @@ func (a *ActivitiesApiService) GetActivitiesExecute(r ApiGetActivitiesRequest) (
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ import (
"strings"
)
// ApplicationsApiService ApplicationsApi service
type ApplicationsApiService service
type ApiGetApplicationRequest struct {
ctx context.Context
ApiService *ApplicationsApiService
ctx context.Context
ApiService *ApplicationsApiService
applicationId string
}
@@ -35,27 +36,26 @@ func (r ApiGetApplicationRequest) Execute() (*Application, *http.Response, error
/*
GetApplication Get application by id
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param applicationId key: id of application
@return ApiGetApplicationRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param applicationId key: id of application
@return ApiGetApplicationRequest
*/
func (a *ApplicationsApiService) GetApplication(ctx context.Context, applicationId string) ApiGetApplicationRequest {
return ApiGetApplicationRequest{
ApiService: a,
ctx: ctx,
ApiService: a,
ctx: ctx,
applicationId: applicationId,
}
}
// Execute executes the request
//
// @return Application
// @return Application
func (a *ApplicationsApiService) GetApplicationExecute(r ApiGetApplicationRequest) (*Application, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Application
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Application
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationsApiService.GetApplication")
@@ -109,14 +109,14 @@ func (a *ApplicationsApiService) GetApplicationExecute(r ApiGetApplicationReques
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -133,7 +133,7 @@ func (a *ApplicationsApiService) GetApplicationExecute(r ApiGetApplicationReques
}
type ApiListApplicationsRequest struct {
ctx context.Context
ctx context.Context
ApiService *ApplicationsApiService
}
@@ -144,25 +144,24 @@ func (r ApiListApplicationsRequest) Execute() (*CollectionOfApplications, *http.
/*
ListApplications Get all applications
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListApplicationsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListApplicationsRequest
*/
func (a *ApplicationsApiService) ListApplications(ctx context.Context) ApiListApplicationsRequest {
return ApiListApplicationsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfApplications
// @return CollectionOfApplications
func (a *ApplicationsApiService) ListApplicationsExecute(r ApiListApplicationsRequest) (*CollectionOfApplications, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfApplications
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfApplications
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationsApiService.ListApplications")
@@ -215,14 +214,14 @@ func (a *ApplicationsApiService) ListApplicationsExecute(r ApiListApplicationsRe
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,15 @@ import (
"strings"
)
// DriveItemApiService DriveItemApi service
type DriveItemApiService service
type ApiDeleteDriveItemRequest struct {
ctx context.Context
ctx context.Context
ApiService *DriveItemApiService
driveId string
itemId string
driveId string
itemId string
}
func (r ApiDeleteDriveItemRequest) Execute() (*http.Response, error) {
@@ -42,26 +43,27 @@ Deleting items using this method moves the items to the recycle bin instead of p
Mounted shares in the share jail are unmounted. The `@client.synchronize` property of the `driveItem` in the [sharedWithMe](#/me.drive/ListSharedWithMe) endpoint will change to false.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiDeleteDriveItemRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiDeleteDriveItemRequest
*/
func (a *DriveItemApiService) DeleteDriveItem(ctx context.Context, driveId string, itemId string) ApiDeleteDriveItemRequest {
return ApiDeleteDriveItemRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
}
}
// Execute executes the request
func (a *DriveItemApiService) DeleteDriveItemExecute(r ApiDeleteDriveItemRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DriveItemApiService.DeleteDriveItem")
@@ -116,14 +118,14 @@ func (a *DriveItemApiService) DeleteDriveItemExecute(r ApiDeleteDriveItemRequest
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -131,10 +133,10 @@ func (a *DriveItemApiService) DeleteDriveItemExecute(r ApiDeleteDriveItemRequest
}
type ApiGetDriveItemRequest struct {
ctx context.Context
ctx context.Context
ApiService *DriveItemApiService
driveId string
itemId string
driveId string
itemId string
}
func (r ApiGetDriveItemRequest) Execute() (*DriveItem, *http.Response, error) {
@@ -146,29 +148,29 @@ GetDriveItem Get a DriveItem.
Get a DriveItem by using its ID.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiGetDriveItemRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiGetDriveItemRequest
*/
func (a *DriveItemApiService) GetDriveItem(ctx context.Context, driveId string, itemId string) ApiGetDriveItemRequest {
return ApiGetDriveItemRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
}
}
// Execute executes the request
//
// @return DriveItem
// @return DriveItem
func (a *DriveItemApiService) GetDriveItemExecute(r ApiGetDriveItemRequest) (*DriveItem, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DriveItemApiService.GetDriveItem")
@@ -223,14 +225,14 @@ func (a *DriveItemApiService) GetDriveItemExecute(r ApiGetDriveItemRequest) (*Dr
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -247,11 +249,11 @@ func (a *DriveItemApiService) GetDriveItemExecute(r ApiGetDriveItemRequest) (*Dr
}
type ApiUpdateDriveItemRequest struct {
ctx context.Context
ctx context.Context
ApiService *DriveItemApiService
driveId string
itemId string
driveItem *DriveItem
driveId string
itemId string
driveItem *DriveItem
}
// DriveItem properties to update
@@ -276,29 +278,29 @@ Currently it supports updating the following properties:
* `@UI.Hidden` - Hides the item from the UI.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiUpdateDriveItemRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiUpdateDriveItemRequest
*/
func (a *DriveItemApiService) UpdateDriveItem(ctx context.Context, driveId string, itemId string) ApiUpdateDriveItemRequest {
return ApiUpdateDriveItemRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
}
}
// Execute executes the request
//
// @return DriveItem
// @return DriveItem
func (a *DriveItemApiService) UpdateDriveItemExecute(r ApiUpdateDriveItemRequest) (*DriveItem, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DriveItemApiService.UpdateDriveItem")
@@ -358,14 +360,14 @@ func (a *DriveItemApiService) UpdateDriveItemExecute(r ApiUpdateDriveItemRequest
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// DrivesApiService DrivesApi service
type DrivesApiService service
type ApiCreateDriveRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesApiService
drive *Drive
drive *Drive
}
// New space property values
@@ -41,25 +42,24 @@ func (r ApiCreateDriveRequest) Execute() (*Drive, *http.Response, error) {
/*
CreateDrive Create a new drive of a specific type
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateDriveRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateDriveRequest
*/
func (a *DrivesApiService) CreateDrive(ctx context.Context) ApiCreateDriveRequest {
return ApiCreateDriveRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return Drive
// @return Drive
func (a *DrivesApiService) CreateDriveExecute(r ApiCreateDriveRequest) (*Drive, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesApiService.CreateDrive")
@@ -117,14 +117,14 @@ func (a *DrivesApiService) CreateDriveExecute(r ApiCreateDriveRequest) (*Drive,
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -141,10 +141,10 @@ func (a *DrivesApiService) CreateDriveExecute(r ApiCreateDriveRequest) (*Drive,
}
type ApiDeleteDriveRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesApiService
driveId string
ifMatch *string
driveId string
ifMatch *string
}
// ETag
@@ -160,24 +160,24 @@ func (r ApiDeleteDriveRequest) Execute() (*http.Response, error) {
/*
DeleteDrive Delete a specific space
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiDeleteDriveRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiDeleteDriveRequest
*/
func (a *DrivesApiService) DeleteDrive(ctx context.Context, driveId string) ApiDeleteDriveRequest {
return ApiDeleteDriveRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
func (a *DrivesApiService) DeleteDriveExecute(r ApiDeleteDriveRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesApiService.DeleteDrive")
@@ -234,14 +234,14 @@ func (a *DrivesApiService) DeleteDriveExecute(r ApiDeleteDriveRequest) (*http.Re
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -249,9 +249,9 @@ func (a *DrivesApiService) DeleteDriveExecute(r ApiDeleteDriveRequest) (*http.Re
}
type ApiGetDriveRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesApiService
driveId string
driveId string
}
func (r ApiGetDriveRequest) Execute() (*Drive, *http.Response, error) {
@@ -261,27 +261,26 @@ func (r ApiGetDriveRequest) Execute() (*Drive, *http.Response, error) {
/*
GetDrive Get drive by id
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiGetDriveRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiGetDriveRequest
*/
func (a *DrivesApiService) GetDrive(ctx context.Context, driveId string) ApiGetDriveRequest {
return ApiGetDriveRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return Drive
// @return Drive
func (a *DrivesApiService) GetDriveExecute(r ApiGetDriveRequest) (*Drive, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesApiService.GetDrive")
@@ -335,14 +334,14 @@ func (a *DrivesApiService) GetDriveExecute(r ApiGetDriveRequest) (*Drive, *http.
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -359,9 +358,9 @@ func (a *DrivesApiService) GetDriveExecute(r ApiGetDriveRequest) (*Drive, *http.
}
type ApiUpdateDriveRequest struct {
ctx context.Context
ApiService *DrivesApiService
driveId string
ctx context.Context
ApiService *DrivesApiService
driveId string
driveUpdate *DriveUpdate
}
@@ -378,27 +377,26 @@ func (r ApiUpdateDriveRequest) Execute() (*Drive, *http.Response, error) {
/*
UpdateDrive Update the drive
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiUpdateDriveRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiUpdateDriveRequest
*/
func (a *DrivesApiService) UpdateDrive(ctx context.Context, driveId string) ApiUpdateDriveRequest {
return ApiUpdateDriveRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return Drive
// @return Drive
func (a *DrivesApiService) UpdateDriveExecute(r ApiUpdateDriveRequest) (*Drive, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesApiService.UpdateDrive")
@@ -457,14 +455,14 @@ func (a *DrivesApiService) UpdateDriveExecute(r ApiUpdateDriveRequest) (*Drive,
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,14 +18,15 @@ import (
"net/url"
)
// DrivesGetDrivesApiService DrivesGetDrivesApi service
type DrivesGetDrivesApiService service
type ApiListAllDrivesRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesGetDrivesApiService
orderby *string
filter *string
orderby *string
filter *string
}
// The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
@@ -47,25 +48,24 @@ func (r ApiListAllDrivesRequest) Execute() (*CollectionOfDrives1, *http.Response
/*
ListAllDrives Get all available drives
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListAllDrivesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListAllDrivesRequest
*/
func (a *DrivesGetDrivesApiService) ListAllDrives(ctx context.Context) ApiListAllDrivesRequest {
return ApiListAllDrivesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDrives1
// @return CollectionOfDrives1
func (a *DrivesGetDrivesApiService) ListAllDrivesExecute(r ApiListAllDrivesRequest) (*CollectionOfDrives1, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives1
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives1
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesGetDrivesApiService.ListAllDrives")
@@ -124,14 +124,14 @@ func (a *DrivesGetDrivesApiService) ListAllDrivesExecute(r ApiListAllDrivesReque
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -148,10 +148,10 @@ func (a *DrivesGetDrivesApiService) ListAllDrivesExecute(r ApiListAllDrivesReque
}
type ApiListAllDrivesBetaRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesGetDrivesApiService
orderby *string
filter *string
orderby *string
filter *string
}
// The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
@@ -173,25 +173,24 @@ func (r ApiListAllDrivesBetaRequest) Execute() (*CollectionOfDrives1, *http.Resp
/*
ListAllDrivesBeta Alias for '/v1.0/drives', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListAllDrivesBetaRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListAllDrivesBetaRequest
*/
func (a *DrivesGetDrivesApiService) ListAllDrivesBeta(ctx context.Context) ApiListAllDrivesBetaRequest {
return ApiListAllDrivesBetaRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDrives1
// @return CollectionOfDrives1
func (a *DrivesGetDrivesApiService) ListAllDrivesBetaExecute(r ApiListAllDrivesBetaRequest) (*CollectionOfDrives1, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives1
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives1
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesGetDrivesApiService.ListAllDrivesBeta")
@@ -250,14 +249,14 @@ func (a *DrivesGetDrivesApiService) ListAllDrivesBetaExecute(r ApiListAllDrivesB
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,15 @@ import (
"strings"
)
// DrivesPermissionsApiService DrivesPermissionsApi service
type DrivesPermissionsApiService service
type ApiCreateLinkRequest struct {
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
driveItemCreateLink *DriveItemCreateLink
}
@@ -59,29 +60,29 @@ For now, The following values are allowed for the type parameter.
| createOnly | File Drop | Creates an upload-only link to the folder driveItem. |
| blocksDownload | Secure View | Creates a read-only link that blocks download to the driveItem. |
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiCreateLinkRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiCreateLinkRequest
*/
func (a *DrivesPermissionsApiService) CreateLink(ctx context.Context, driveId string, itemId string) ApiCreateLinkRequest {
return ApiCreateLinkRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesPermissionsApiService) CreateLinkExecute(r ApiCreateLinkRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.CreateLink")
@@ -138,14 +139,14 @@ func (a *DrivesPermissionsApiService) CreateLinkExecute(r ApiCreateLinkRequest)
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -162,11 +163,11 @@ func (a *DrivesPermissionsApiService) CreateLinkExecute(r ApiCreateLinkRequest)
}
type ApiDeletePermissionRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
permId string
driveId string
itemId string
permId string
}
func (r ApiDeletePermissionRequest) Execute() (*http.Response, error) {
@@ -180,28 +181,29 @@ Remove access to a DriveItem.
Only sharing permissions that are not inherited can be deleted. The `inheritedFrom` property must be `null`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiDeletePermissionRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiDeletePermissionRequest
*/
func (a *DrivesPermissionsApiService) DeletePermission(ctx context.Context, driveId string, itemId string, permId string) ApiDeletePermissionRequest {
return ApiDeletePermissionRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
}
}
// Execute executes the request
func (a *DrivesPermissionsApiService) DeletePermissionExecute(r ApiDeletePermissionRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.DeletePermission")
@@ -257,14 +259,14 @@ func (a *DrivesPermissionsApiService) DeletePermissionExecute(r ApiDeletePermiss
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -272,11 +274,11 @@ func (a *DrivesPermissionsApiService) DeletePermissionExecute(r ApiDeletePermiss
}
type ApiGetPermissionRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
permId string
driveId string
itemId string
permId string
}
func (r ApiGetPermissionRequest) Execute() (*Permission, *http.Response, error) {
@@ -288,31 +290,31 @@ GetPermission Get sharing permission for a file or folder
Return the effective sharing permission for a particular permission resource.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiGetPermissionRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiGetPermissionRequest
*/
func (a *DrivesPermissionsApiService) GetPermission(ctx context.Context, driveId string, itemId string, permId string) ApiGetPermissionRequest {
return ApiGetPermissionRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesPermissionsApiService) GetPermissionExecute(r ApiGetPermissionRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.GetPermission")
@@ -368,14 +370,14 @@ func (a *DrivesPermissionsApiService) GetPermissionExecute(r ApiGetPermissionReq
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -392,10 +394,10 @@ func (a *DrivesPermissionsApiService) GetPermissionExecute(r ApiGetPermissionReq
}
type ApiInviteRequest struct {
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
driveItemInvite *DriveItemInvite
}
@@ -420,29 +422,29 @@ The response will be a permission object with the grantedToV2 property containin
## Roles property values
For now, roles are only identified by a uuid. There are no hardcoded aliases like `read` or `write` because role actions can be completely customized.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiInviteRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiInviteRequest
*/
func (a *DrivesPermissionsApiService) Invite(ctx context.Context, driveId string, itemId string) ApiInviteRequest {
return ApiInviteRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
}
}
// Execute executes the request
//
// @return CollectionOfPermissions
// @return CollectionOfPermissions
func (a *DrivesPermissionsApiService) InviteExecute(r ApiInviteRequest) (*CollectionOfPermissions, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissions
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissions
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.Invite")
@@ -506,18 +508,18 @@ func (a *DrivesPermissionsApiService) InviteExecute(r ApiInviteRequest) (*Collec
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -534,12 +536,12 @@ func (a *DrivesPermissionsApiService) InviteExecute(r ApiInviteRequest) (*Collec
}
type ApiListPermissionsRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
filter *string
select_ *[]string
driveId string
itemId string
filter *string
select_ *[]string
}
// Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
@@ -571,29 +573,29 @@ All permission objects have an `id`. A permission representing
* a link has the `link` facet filled with details.
* a share has the `roles` property set and the `grantedToV2` property filled with the grant recipient details.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiListPermissionsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@return ApiListPermissionsRequest
*/
func (a *DrivesPermissionsApiService) ListPermissions(ctx context.Context, driveId string, itemId string) ApiListPermissionsRequest {
return ApiListPermissionsRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
}
}
// Execute executes the request
//
// @return CollectionOfPermissionsWithAllowedValues
// @return CollectionOfPermissionsWithAllowedValues
func (a *DrivesPermissionsApiService) ListPermissionsExecute(r ApiListPermissionsRequest) (*CollectionOfPermissionsWithAllowedValues, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissionsWithAllowedValues
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissionsWithAllowedValues
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.ListPermissions")
@@ -654,14 +656,14 @@ func (a *DrivesPermissionsApiService) ListPermissionsExecute(r ApiListPermission
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -678,11 +680,11 @@ func (a *DrivesPermissionsApiService) ListPermissionsExecute(r ApiListPermission
}
type ApiSetPermissionPasswordRequest struct {
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
permId string
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
permId string
sharingLinkPassword *SharingLinkPassword
}
@@ -703,31 +705,31 @@ Set the password of a sharing permission.
Only the `password` property can be modified this way.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiSetPermissionPasswordRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiSetPermissionPasswordRequest
*/
func (a *DrivesPermissionsApiService) SetPermissionPassword(ctx context.Context, driveId string, itemId string, permId string) ApiSetPermissionPasswordRequest {
return ApiSetPermissionPasswordRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesPermissionsApiService) SetPermissionPasswordExecute(r ApiSetPermissionPasswordRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.SetPermissionPassword")
@@ -788,14 +790,14 @@ func (a *DrivesPermissionsApiService) SetPermissionPasswordExecute(r ApiSetPermi
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -812,11 +814,11 @@ func (a *DrivesPermissionsApiService) SetPermissionPasswordExecute(r ApiSetPermi
}
type ApiUpdatePermissionRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesPermissionsApiService
driveId string
itemId string
permId string
driveId string
itemId string
permId string
permission *Permission
}
@@ -837,31 +839,31 @@ Update the properties of a sharing permission by patching the permission resourc
Only the `roles`, `expirationDateTime` and `password` properties can be modified this way.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiUpdatePermissionRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param itemId key: id of item
@param permId key: id of permission
@return ApiUpdatePermissionRequest
*/
func (a *DrivesPermissionsApiService) UpdatePermission(ctx context.Context, driveId string, itemId string, permId string) ApiUpdatePermissionRequest {
return ApiUpdatePermissionRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
ctx: ctx,
driveId: driveId,
itemId: itemId,
permId: permId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesPermissionsApiService) UpdatePermissionExecute(r ApiUpdatePermissionRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesPermissionsApiService.UpdatePermission")
@@ -922,14 +924,14 @@ func (a *DrivesPermissionsApiService) UpdatePermissionExecute(r ApiUpdatePermiss
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,15 @@ import (
"strings"
)
// DrivesRootApiService DrivesRootApi service
type DrivesRootApiService service
type ApiCreateDriveItemRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesRootApiService
driveId string
driveItem *DriveItem
driveId string
driveItem *DriveItem
}
// In the request body, provide a JSON object with the following parameters. For mounting a share the necessary remoteItem id and permission id can be taken from the [sharedWithMe](#/me.drive/ListSharedWithMe) endpoint.
@@ -44,27 +45,27 @@ CreateDriveItem Create a drive item
You can use the root childrens endpoint to mount a remoteItem in the share jail. The `@client.synchronize` property of the `driveItem` in the [sharedWithMe](#/me.drive/ListSharedWithMe) endpoint will change to true.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiCreateDriveItemRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiCreateDriveItemRequest
*/
func (a *DrivesRootApiService) CreateDriveItem(ctx context.Context, driveId string) ApiCreateDriveItemRequest {
return ApiCreateDriveItemRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return DriveItem
// @return DriveItem
func (a *DrivesRootApiService) CreateDriveItemExecute(r ApiCreateDriveItemRequest) (*DriveItem, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.CreateDriveItem")
@@ -120,14 +121,14 @@ func (a *DrivesRootApiService) CreateDriveItemExecute(r ApiCreateDriveItemReques
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -144,9 +145,9 @@ func (a *DrivesRootApiService) CreateDriveItemExecute(r ApiCreateDriveItemReques
}
type ApiCreateLinkSpaceRootRequest struct {
ctx context.Context
ApiService *DrivesRootApiService
driveId string
ctx context.Context
ApiService *DrivesRootApiService
driveId string
driveItemCreateLink *DriveItemCreateLink
}
@@ -179,27 +180,27 @@ For now, The following values are allowed for the type parameter.
| createOnly | File Drop | Creates an upload-only link to the folder driveItem. |
| blocksDownload | Secure View | Creates a read-only link that blocks download to the driveItem. |
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiCreateLinkSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiCreateLinkSpaceRootRequest
*/
func (a *DrivesRootApiService) CreateLinkSpaceRoot(ctx context.Context, driveId string) ApiCreateLinkSpaceRootRequest {
return ApiCreateLinkSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesRootApiService) CreateLinkSpaceRootExecute(r ApiCreateLinkSpaceRootRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.CreateLinkSpaceRoot")
@@ -255,14 +256,14 @@ func (a *DrivesRootApiService) CreateLinkSpaceRootExecute(r ApiCreateLinkSpaceRo
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -279,10 +280,10 @@ func (a *DrivesRootApiService) CreateLinkSpaceRootExecute(r ApiCreateLinkSpaceRo
}
type ApiDeletePermissionSpaceRootRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesRootApiService
driveId string
permId string
driveId string
permId string
}
func (r ApiDeletePermissionSpaceRootRequest) Execute() (*http.Response, error) {
@@ -296,26 +297,27 @@ Remove access to the root item of a drive.
Only sharing permissions that are not inherited can be deleted. The `inheritedFrom` property must be `null`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiDeletePermissionSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiDeletePermissionSpaceRootRequest
*/
func (a *DrivesRootApiService) DeletePermissionSpaceRoot(ctx context.Context, driveId string, permId string) ApiDeletePermissionSpaceRootRequest {
return ApiDeletePermissionSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
permId: permId,
ctx: ctx,
driveId: driveId,
permId: permId,
}
}
// Execute executes the request
func (a *DrivesRootApiService) DeletePermissionSpaceRootExecute(r ApiDeletePermissionSpaceRootRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.DeletePermissionSpaceRoot")
@@ -370,14 +372,14 @@ func (a *DrivesRootApiService) DeletePermissionSpaceRootExecute(r ApiDeletePermi
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -385,10 +387,10 @@ func (a *DrivesRootApiService) DeletePermissionSpaceRootExecute(r ApiDeletePermi
}
type ApiGetPermissionSpaceRootRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesRootApiService
driveId string
permId string
driveId string
permId string
}
func (r ApiGetPermissionSpaceRootRequest) Execute() (*Permission, *http.Response, error) {
@@ -400,29 +402,29 @@ GetPermissionSpaceRoot Get a single sharing permission for the root item of a dr
Return the effective sharing permission for a particular permission resource.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiGetPermissionSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiGetPermissionSpaceRootRequest
*/
func (a *DrivesRootApiService) GetPermissionSpaceRoot(ctx context.Context, driveId string, permId string) ApiGetPermissionSpaceRootRequest {
return ApiGetPermissionSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
permId: permId,
ctx: ctx,
driveId: driveId,
permId: permId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesRootApiService) GetPermissionSpaceRootExecute(r ApiGetPermissionSpaceRootRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.GetPermissionSpaceRoot")
@@ -477,14 +479,14 @@ func (a *DrivesRootApiService) GetPermissionSpaceRootExecute(r ApiGetPermissionS
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -501,9 +503,9 @@ func (a *DrivesRootApiService) GetPermissionSpaceRootExecute(r ApiGetPermissionS
}
type ApiGetRootRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesRootApiService
driveId string
driveId string
}
func (r ApiGetRootRequest) Execute() (*DriveItem, *http.Response, error) {
@@ -513,27 +515,26 @@ func (r ApiGetRootRequest) Execute() (*DriveItem, *http.Response, error) {
/*
GetRoot Get root from arbitrary space
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiGetRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiGetRootRequest
*/
func (a *DrivesRootApiService) GetRoot(ctx context.Context, driveId string) ApiGetRootRequest {
return ApiGetRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return DriveItem
// @return DriveItem
func (a *DrivesRootApiService) GetRootExecute(r ApiGetRootRequest) (*DriveItem, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.GetRoot")
@@ -587,14 +588,14 @@ func (a *DrivesRootApiService) GetRootExecute(r ApiGetRootRequest) (*DriveItem,
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -611,9 +612,9 @@ func (a *DrivesRootApiService) GetRootExecute(r ApiGetRootRequest) (*DriveItem,
}
type ApiInviteSpaceRootRequest struct {
ctx context.Context
ApiService *DrivesRootApiService
driveId string
ctx context.Context
ApiService *DrivesRootApiService
driveId string
driveItemInvite *DriveItemInvite
}
@@ -638,27 +639,27 @@ The response will be a permission object with the grantedToV2 property containin
## Roles property values
For now, roles are only identified by a uuid. There are no hardcoded aliases like `read` or `write` because role actions can be completely customized.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiInviteSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiInviteSpaceRootRequest
*/
func (a *DrivesRootApiService) InviteSpaceRoot(ctx context.Context, driveId string) ApiInviteSpaceRootRequest {
return ApiInviteSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return CollectionOfPermissions
// @return CollectionOfPermissions
func (a *DrivesRootApiService) InviteSpaceRootExecute(r ApiInviteSpaceRootRequest) (*CollectionOfPermissions, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissions
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissions
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.InviteSpaceRoot")
@@ -721,18 +722,18 @@ func (a *DrivesRootApiService) InviteSpaceRootExecute(r ApiInviteSpaceRootReques
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -749,11 +750,11 @@ func (a *DrivesRootApiService) InviteSpaceRootExecute(r ApiInviteSpaceRootReques
}
type ApiListPermissionsSpaceRootRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesRootApiService
driveId string
filter *string
select_ *[]string
driveId string
filter *string
select_ *[]string
}
// Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
@@ -785,27 +786,27 @@ All permission objects have an `id`. A permission representing
* a link has the `link` facet filled with details.
* a share has the `roles` property set and the `grantedToV2` property filled with the grant recipient details.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiListPermissionsSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@return ApiListPermissionsSpaceRootRequest
*/
func (a *DrivesRootApiService) ListPermissionsSpaceRoot(ctx context.Context, driveId string) ApiListPermissionsSpaceRootRequest {
return ApiListPermissionsSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
ctx: ctx,
driveId: driveId,
}
}
// Execute executes the request
//
// @return CollectionOfPermissionsWithAllowedValues
// @return CollectionOfPermissionsWithAllowedValues
func (a *DrivesRootApiService) ListPermissionsSpaceRootExecute(r ApiListPermissionsSpaceRootRequest) (*CollectionOfPermissionsWithAllowedValues, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissionsWithAllowedValues
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfPermissionsWithAllowedValues
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.ListPermissionsSpaceRoot")
@@ -865,14 +866,14 @@ func (a *DrivesRootApiService) ListPermissionsSpaceRootExecute(r ApiListPermissi
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -889,10 +890,10 @@ func (a *DrivesRootApiService) ListPermissionsSpaceRootExecute(r ApiListPermissi
}
type ApiSetPermissionPasswordSpaceRootRequest struct {
ctx context.Context
ApiService *DrivesRootApiService
driveId string
permId string
ctx context.Context
ApiService *DrivesRootApiService
driveId string
permId string
sharingLinkPassword *SharingLinkPassword
}
@@ -913,29 +914,29 @@ Set the password of a sharing permission.
Only the `password` property can be modified this way.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiSetPermissionPasswordSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiSetPermissionPasswordSpaceRootRequest
*/
func (a *DrivesRootApiService) SetPermissionPasswordSpaceRoot(ctx context.Context, driveId string, permId string) ApiSetPermissionPasswordSpaceRootRequest {
return ApiSetPermissionPasswordSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
permId: permId,
ctx: ctx,
driveId: driveId,
permId: permId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesRootApiService) SetPermissionPasswordSpaceRootExecute(r ApiSetPermissionPasswordSpaceRootRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.SetPermissionPasswordSpaceRoot")
@@ -995,14 +996,14 @@ func (a *DrivesRootApiService) SetPermissionPasswordSpaceRootExecute(r ApiSetPer
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -1019,10 +1020,10 @@ func (a *DrivesRootApiService) SetPermissionPasswordSpaceRootExecute(r ApiSetPer
}
type ApiUpdatePermissionSpaceRootRequest struct {
ctx context.Context
ctx context.Context
ApiService *DrivesRootApiService
driveId string
permId string
driveId string
permId string
permission *Permission
}
@@ -1043,29 +1044,29 @@ Update the properties of a sharing permission by patching the permission resourc
Only the `roles`, `expirationDateTime` and `password` properties can be modified this way.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiUpdatePermissionSpaceRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param driveId key: id of drive
@param permId key: id of permission
@return ApiUpdatePermissionSpaceRootRequest
*/
func (a *DrivesRootApiService) UpdatePermissionSpaceRoot(ctx context.Context, driveId string, permId string) ApiUpdatePermissionSpaceRootRequest {
return ApiUpdatePermissionSpaceRootRequest{
ApiService: a,
ctx: ctx,
driveId: driveId,
permId: permId,
ctx: ctx,
driveId: driveId,
permId: permId,
}
}
// Execute executes the request
//
// @return Permission
// @return Permission
func (a *DrivesRootApiService) UpdatePermissionSpaceRootExecute(r ApiUpdatePermissionSpaceRootRequest) (*Permission, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Permission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DrivesRootApiService.UpdatePermissionSpaceRoot")
@@ -1125,14 +1126,14 @@ func (a *DrivesRootApiService) UpdatePermissionSpaceRootExecute(r ApiUpdatePermi
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// EducationClassApiService EducationClassApi service
type EducationClassApiService service
type ApiAddUserToClassRequest struct {
ctx context.Context
ApiService *EducationClassApiService
classId string
ctx context.Context
ApiService *EducationClassApiService
classId string
classMemberReference *ClassMemberReference
}
@@ -42,24 +43,24 @@ func (r ApiAddUserToClassRequest) Execute() (*http.Response, error) {
/*
AddUserToClass Assign a user to a class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiAddUserToClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiAddUserToClassRequest
*/
func (a *EducationClassApiService) AddUserToClass(ctx context.Context, classId string) ApiAddUserToClassRequest {
return ApiAddUserToClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
func (a *EducationClassApiService) AddUserToClassExecute(r ApiAddUserToClassRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.AddUserToClass")
@@ -118,14 +119,14 @@ func (a *EducationClassApiService) AddUserToClassExecute(r ApiAddUserToClassRequ
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -133,8 +134,8 @@ func (a *EducationClassApiService) AddUserToClassExecute(r ApiAddUserToClassRequ
}
type ApiCreateClassRequest struct {
ctx context.Context
ApiService *EducationClassApiService
ctx context.Context
ApiService *EducationClassApiService
educationClass *EducationClass
}
@@ -151,25 +152,24 @@ func (r ApiCreateClassRequest) Execute() (*EducationClass, *http.Response, error
/*
CreateClass Add new education class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateClassRequest
*/
func (a *EducationClassApiService) CreateClass(ctx context.Context) ApiCreateClassRequest {
return ApiCreateClassRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return EducationClass
// @return EducationClass
func (a *EducationClassApiService) CreateClassExecute(r ApiCreateClassRequest) (*EducationClass, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationClass
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationClass
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.CreateClass")
@@ -227,14 +227,14 @@ func (a *EducationClassApiService) CreateClassExecute(r ApiCreateClassRequest) (
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -251,9 +251,9 @@ func (a *EducationClassApiService) CreateClassExecute(r ApiCreateClassRequest) (
}
type ApiDeleteClassRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassApiService
classId string
classId string
}
func (r ApiDeleteClassRequest) Execute() (*http.Response, error) {
@@ -263,24 +263,24 @@ func (r ApiDeleteClassRequest) Execute() (*http.Response, error) {
/*
DeleteClass Delete education class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiDeleteClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiDeleteClassRequest
*/
func (a *EducationClassApiService) DeleteClass(ctx context.Context, classId string) ApiDeleteClassRequest {
return ApiDeleteClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
func (a *EducationClassApiService) DeleteClassExecute(r ApiDeleteClassRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.DeleteClass")
@@ -334,14 +334,14 @@ func (a *EducationClassApiService) DeleteClassExecute(r ApiDeleteClassRequest) (
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -349,10 +349,10 @@ func (a *EducationClassApiService) DeleteClassExecute(r ApiDeleteClassRequest) (
}
type ApiDeleteUserFromClassRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassApiService
classId string
userId string
classId string
userId string
}
func (r ApiDeleteUserFromClassRequest) Execute() (*http.Response, error) {
@@ -362,26 +362,26 @@ func (r ApiDeleteUserFromClassRequest) Execute() (*http.Response, error) {
/*
DeleteUserFromClass Unassign user from a class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@param userId key: id or username of the user to unassign from class
@return ApiDeleteUserFromClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@param userId key: id or username of the user to unassign from class
@return ApiDeleteUserFromClassRequest
*/
func (a *EducationClassApiService) DeleteUserFromClass(ctx context.Context, classId string, userId string) ApiDeleteUserFromClassRequest {
return ApiDeleteUserFromClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
userId: userId,
ctx: ctx,
classId: classId,
userId: userId,
}
}
// Execute executes the request
func (a *EducationClassApiService) DeleteUserFromClassExecute(r ApiDeleteUserFromClassRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.DeleteUserFromClass")
@@ -436,14 +436,14 @@ func (a *EducationClassApiService) DeleteUserFromClassExecute(r ApiDeleteUserFro
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -451,9 +451,9 @@ func (a *EducationClassApiService) DeleteUserFromClassExecute(r ApiDeleteUserFro
}
type ApiGetClassRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassApiService
classId string
classId string
}
func (r ApiGetClassRequest) Execute() (*EducationClass, *http.Response, error) {
@@ -463,27 +463,26 @@ func (r ApiGetClassRequest) Execute() (*EducationClass, *http.Response, error) {
/*
GetClass Get class by key
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiGetClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiGetClassRequest
*/
func (a *EducationClassApiService) GetClass(ctx context.Context, classId string) ApiGetClassRequest {
return ApiGetClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
//
// @return EducationClass
// @return EducationClass
func (a *EducationClassApiService) GetClassExecute(r ApiGetClassRequest) (*EducationClass, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationClass
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationClass
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.GetClass")
@@ -537,14 +536,14 @@ func (a *EducationClassApiService) GetClassExecute(r ApiGetClassRequest) (*Educa
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -561,9 +560,9 @@ func (a *EducationClassApiService) GetClassExecute(r ApiGetClassRequest) (*Educa
}
type ApiListClassMembersRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassApiService
classId string
classId string
}
func (r ApiListClassMembersRequest) Execute() (*CollectionOfEducationUser, *http.Response, error) {
@@ -573,27 +572,26 @@ func (r ApiListClassMembersRequest) Execute() (*CollectionOfEducationUser, *http
/*
ListClassMembers Get the educationClass resources owned by an educationSchool
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiListClassMembersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiListClassMembersRequest
*/
func (a *EducationClassApiService) ListClassMembers(ctx context.Context, classId string) ApiListClassMembersRequest {
return ApiListClassMembersRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
//
// @return CollectionOfEducationUser
// @return CollectionOfEducationUser
func (a *EducationClassApiService) ListClassMembersExecute(r ApiListClassMembersRequest) (*CollectionOfEducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.ListClassMembers")
@@ -647,14 +645,14 @@ func (a *EducationClassApiService) ListClassMembersExecute(r ApiListClassMembers
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -671,7 +669,7 @@ func (a *EducationClassApiService) ListClassMembersExecute(r ApiListClassMembers
}
type ApiListClassesRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassApiService
}
@@ -682,25 +680,24 @@ func (r ApiListClassesRequest) Execute() (*CollectionOfClass, *http.Response, er
/*
ListClasses list education classes
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListClassesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListClassesRequest
*/
func (a *EducationClassApiService) ListClasses(ctx context.Context) ApiListClassesRequest {
return ApiListClassesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfClass
// @return CollectionOfClass
func (a *EducationClassApiService) ListClassesExecute(r ApiListClassesRequest) (*CollectionOfClass, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfClass
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfClass
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.ListClasses")
@@ -753,14 +750,14 @@ func (a *EducationClassApiService) ListClassesExecute(r ApiListClassesRequest) (
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -777,9 +774,9 @@ func (a *EducationClassApiService) ListClassesExecute(r ApiListClassesRequest) (
}
type ApiUpdateClassRequest struct {
ctx context.Context
ApiService *EducationClassApiService
classId string
ctx context.Context
ApiService *EducationClassApiService
classId string
educationClass *EducationClass
}
@@ -796,27 +793,26 @@ func (r ApiUpdateClassRequest) Execute() (*EducationClass, *http.Response, error
/*
UpdateClass Update properties of a education class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiUpdateClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiUpdateClassRequest
*/
func (a *EducationClassApiService) UpdateClass(ctx context.Context, classId string) ApiUpdateClassRequest {
return ApiUpdateClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
//
// @return EducationClass
// @return EducationClass
func (a *EducationClassApiService) UpdateClassExecute(r ApiUpdateClassRequest) (*EducationClass, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationClass
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationClass
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassApiService.UpdateClass")
@@ -875,14 +871,14 @@ func (a *EducationClassApiService) UpdateClassExecute(r ApiUpdateClassRequest) (
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// EducationClassTeachersApiService EducationClassTeachersApi service
type EducationClassTeachersApiService service
type ApiAddTeacherToClassRequest struct {
ctx context.Context
ApiService *EducationClassTeachersApiService
classId string
ctx context.Context
ApiService *EducationClassTeachersApiService
classId string
classTeacherReference *ClassTeacherReference
}
@@ -42,24 +43,24 @@ func (r ApiAddTeacherToClassRequest) Execute() (*http.Response, error) {
/*
AddTeacherToClass Assign a teacher to a class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiAddTeacherToClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiAddTeacherToClassRequest
*/
func (a *EducationClassTeachersApiService) AddTeacherToClass(ctx context.Context, classId string) ApiAddTeacherToClassRequest {
return ApiAddTeacherToClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
func (a *EducationClassTeachersApiService) AddTeacherToClassExecute(r ApiAddTeacherToClassRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassTeachersApiService.AddTeacherToClass")
@@ -118,14 +119,14 @@ func (a *EducationClassTeachersApiService) AddTeacherToClassExecute(r ApiAddTeac
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -133,10 +134,10 @@ func (a *EducationClassTeachersApiService) AddTeacherToClassExecute(r ApiAddTeac
}
type ApiDeleteTeacherFromClassRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassTeachersApiService
classId string
userId string
classId string
userId string
}
func (r ApiDeleteTeacherFromClassRequest) Execute() (*http.Response, error) {
@@ -146,26 +147,26 @@ func (r ApiDeleteTeacherFromClassRequest) Execute() (*http.Response, error) {
/*
DeleteTeacherFromClass Unassign user as teacher of a class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@param userId key: id or username of the user to unassign as teacher
@return ApiDeleteTeacherFromClassRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@param userId key: id or username of the user to unassign as teacher
@return ApiDeleteTeacherFromClassRequest
*/
func (a *EducationClassTeachersApiService) DeleteTeacherFromClass(ctx context.Context, classId string, userId string) ApiDeleteTeacherFromClassRequest {
return ApiDeleteTeacherFromClassRequest{
ApiService: a,
ctx: ctx,
classId: classId,
userId: userId,
ctx: ctx,
classId: classId,
userId: userId,
}
}
// Execute executes the request
func (a *EducationClassTeachersApiService) DeleteTeacherFromClassExecute(r ApiDeleteTeacherFromClassRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassTeachersApiService.DeleteTeacherFromClass")
@@ -220,14 +221,14 @@ func (a *EducationClassTeachersApiService) DeleteTeacherFromClassExecute(r ApiDe
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -235,9 +236,9 @@ func (a *EducationClassTeachersApiService) DeleteTeacherFromClassExecute(r ApiDe
}
type ApiGetTeachersRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationClassTeachersApiService
classId string
classId string
}
func (r ApiGetTeachersRequest) Execute() (*CollectionOfEducationUser, *http.Response, error) {
@@ -247,27 +248,26 @@ func (r ApiGetTeachersRequest) Execute() (*CollectionOfEducationUser, *http.Resp
/*
GetTeachers Get the teachers for a class
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiGetTeachersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param classId key: id or externalId of class
@return ApiGetTeachersRequest
*/
func (a *EducationClassTeachersApiService) GetTeachers(ctx context.Context, classId string) ApiGetTeachersRequest {
return ApiGetTeachersRequest{
ApiService: a,
ctx: ctx,
classId: classId,
ctx: ctx,
classId: classId,
}
}
// Execute executes the request
//
// @return CollectionOfEducationUser
// @return CollectionOfEducationUser
func (a *EducationClassTeachersApiService) GetTeachersExecute(r ApiGetTeachersRequest) (*CollectionOfEducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassTeachersApiService.GetTeachers")
@@ -321,14 +321,14 @@ func (a *EducationClassTeachersApiService) GetTeachersExecute(r ApiGetTeachersRe
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// EducationSchoolApiService EducationSchoolApi service
type EducationSchoolApiService service
type ApiAddClassToSchoolRequest struct {
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
classReference *ClassReference
}
@@ -42,24 +43,24 @@ func (r ApiAddClassToSchoolRequest) Execute() (*http.Response, error) {
/*
AddClassToSchool Assign a class to a school
@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 ApiAddClassToSchoolRequest
@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 ApiAddClassToSchoolRequest
*/
func (a *EducationSchoolApiService) AddClassToSchool(ctx context.Context, schoolId string) ApiAddClassToSchoolRequest {
return ApiAddClassToSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
func (a *EducationSchoolApiService) AddClassToSchoolExecute(r ApiAddClassToSchoolRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.AddClassToSchool")
@@ -118,14 +119,14 @@ func (a *EducationSchoolApiService) AddClassToSchoolExecute(r ApiAddClassToSchoo
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -133,9 +134,9 @@ func (a *EducationSchoolApiService) AddClassToSchoolExecute(r ApiAddClassToSchoo
}
type ApiAddUserToSchoolRequest struct {
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
educationUserReference *EducationUserReference
}
@@ -152,24 +153,24 @@ func (r ApiAddUserToSchoolRequest) Execute() (*http.Response, error) {
/*
AddUserToSchool Assign a user to a school
@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 ApiAddUserToSchoolRequest
@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 ApiAddUserToSchoolRequest
*/
func (a *EducationSchoolApiService) AddUserToSchool(ctx context.Context, schoolId string) ApiAddUserToSchoolRequest {
return ApiAddUserToSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
func (a *EducationSchoolApiService) AddUserToSchoolExecute(r ApiAddUserToSchoolRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.AddUserToSchool")
@@ -228,14 +229,14 @@ func (a *EducationSchoolApiService) AddUserToSchoolExecute(r ApiAddUserToSchoolR
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -243,8 +244,8 @@ func (a *EducationSchoolApiService) AddUserToSchoolExecute(r ApiAddUserToSchoolR
}
type ApiCreateSchoolRequest struct {
ctx context.Context
ApiService *EducationSchoolApiService
ctx context.Context
ApiService *EducationSchoolApiService
educationSchool *EducationSchool
}
@@ -261,25 +262,24 @@ func (r ApiCreateSchoolRequest) Execute() (*EducationSchool, *http.Response, err
/*
CreateSchool Add new school
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateSchoolRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateSchoolRequest
*/
func (a *EducationSchoolApiService) CreateSchool(ctx context.Context) ApiCreateSchoolRequest {
return ApiCreateSchoolRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return EducationSchool
// @return EducationSchool
func (a *EducationSchoolApiService) CreateSchoolExecute(r ApiCreateSchoolRequest) (*EducationSchool, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationSchool
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationSchool
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.CreateSchool")
@@ -337,14 +337,14 @@ func (a *EducationSchoolApiService) CreateSchoolExecute(r ApiCreateSchoolRequest
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -361,10 +361,10 @@ func (a *EducationSchoolApiService) CreateSchoolExecute(r ApiCreateSchoolRequest
}
type ApiDeleteClassFromSchoolRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
classId string
schoolId string
classId string
}
func (r ApiDeleteClassFromSchoolRequest) Execute() (*http.Response, error) {
@@ -374,26 +374,26 @@ func (r ApiDeleteClassFromSchoolRequest) Execute() (*http.Response, error) {
/*
DeleteClassFromSchool Unassign class from a school
@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
@param classId key: id or externalId of the class to unassign from school
@return ApiDeleteClassFromSchoolRequest
@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
@param classId key: id or externalId of the class to unassign from school
@return ApiDeleteClassFromSchoolRequest
*/
func (a *EducationSchoolApiService) DeleteClassFromSchool(ctx context.Context, schoolId string, classId string) ApiDeleteClassFromSchoolRequest {
return ApiDeleteClassFromSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
classId: classId,
ctx: ctx,
schoolId: schoolId,
classId: classId,
}
}
// Execute executes the request
func (a *EducationSchoolApiService) DeleteClassFromSchoolExecute(r ApiDeleteClassFromSchoolRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.DeleteClassFromSchool")
@@ -448,14 +448,14 @@ func (a *EducationSchoolApiService) DeleteClassFromSchoolExecute(r ApiDeleteClas
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -463,9 +463,9 @@ func (a *EducationSchoolApiService) DeleteClassFromSchoolExecute(r ApiDeleteClas
}
type ApiDeleteSchoolRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
schoolId string
}
func (r ApiDeleteSchoolRequest) Execute() (*http.Response, error) {
@@ -477,24 +477,24 @@ 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
@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
*/
func (a *EducationSchoolApiService) DeleteSchool(ctx context.Context, schoolId string) ApiDeleteSchoolRequest {
return ApiDeleteSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
func (a *EducationSchoolApiService) DeleteSchoolExecute(r ApiDeleteSchoolRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.DeleteSchool")
@@ -548,14 +548,14 @@ func (a *EducationSchoolApiService) DeleteSchoolExecute(r ApiDeleteSchoolRequest
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -563,10 +563,10 @@ func (a *EducationSchoolApiService) DeleteSchoolExecute(r ApiDeleteSchoolRequest
}
type ApiDeleteUserFromSchoolRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
userId string
schoolId string
userId string
}
func (r ApiDeleteUserFromSchoolRequest) Execute() (*http.Response, error) {
@@ -576,26 +576,26 @@ func (r ApiDeleteUserFromSchoolRequest) Execute() (*http.Response, error) {
/*
DeleteUserFromSchool Unassign user from a school
@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
@param userId key: id or username of the user to unassign from school
@return ApiDeleteUserFromSchoolRequest
@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
@param userId key: id or username of the user to unassign from school
@return ApiDeleteUserFromSchoolRequest
*/
func (a *EducationSchoolApiService) DeleteUserFromSchool(ctx context.Context, schoolId string, userId string) ApiDeleteUserFromSchoolRequest {
return ApiDeleteUserFromSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
userId: userId,
ctx: ctx,
schoolId: schoolId,
userId: userId,
}
}
// Execute executes the request
func (a *EducationSchoolApiService) DeleteUserFromSchoolExecute(r ApiDeleteUserFromSchoolRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.DeleteUserFromSchool")
@@ -650,14 +650,14 @@ func (a *EducationSchoolApiService) DeleteUserFromSchoolExecute(r ApiDeleteUserF
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -665,9 +665,9 @@ func (a *EducationSchoolApiService) DeleteUserFromSchoolExecute(r ApiDeleteUserF
}
type ApiGetSchoolRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
schoolId string
}
func (r ApiGetSchoolRequest) Execute() (*EducationSchool, *http.Response, error) {
@@ -677,27 +677,26 @@ func (r ApiGetSchoolRequest) Execute() (*EducationSchool, *http.Response, error)
/*
GetSchool Get the properties of a specific school
@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 ApiGetSchoolRequest
@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 ApiGetSchoolRequest
*/
func (a *EducationSchoolApiService) GetSchool(ctx context.Context, schoolId string) ApiGetSchoolRequest {
return ApiGetSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
//
// @return EducationSchool
// @return EducationSchool
func (a *EducationSchoolApiService) GetSchoolExecute(r ApiGetSchoolRequest) (*EducationSchool, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationSchool
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationSchool
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.GetSchool")
@@ -751,14 +750,14 @@ func (a *EducationSchoolApiService) GetSchoolExecute(r ApiGetSchoolRequest) (*Ed
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -775,9 +774,9 @@ func (a *EducationSchoolApiService) GetSchoolExecute(r ApiGetSchoolRequest) (*Ed
}
type ApiListSchoolClassesRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
schoolId string
}
func (r ApiListSchoolClassesRequest) Execute() (*CollectionOfEducationClass, *http.Response, error) {
@@ -787,27 +786,26 @@ func (r ApiListSchoolClassesRequest) Execute() (*CollectionOfEducationClass, *ht
/*
ListSchoolClasses Get the educationClass resources owned by an educationSchool
@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 ApiListSchoolClassesRequest
@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 ApiListSchoolClassesRequest
*/
func (a *EducationSchoolApiService) ListSchoolClasses(ctx context.Context, schoolId string) ApiListSchoolClassesRequest {
return ApiListSchoolClassesRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
//
// @return CollectionOfEducationClass
// @return CollectionOfEducationClass
func (a *EducationSchoolApiService) ListSchoolClassesExecute(r ApiListSchoolClassesRequest) (*CollectionOfEducationClass, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationClass
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationClass
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.ListSchoolClasses")
@@ -861,14 +859,14 @@ func (a *EducationSchoolApiService) ListSchoolClassesExecute(r ApiListSchoolClas
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -885,9 +883,9 @@ func (a *EducationSchoolApiService) ListSchoolClassesExecute(r ApiListSchoolClas
}
type ApiListSchoolUsersRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
schoolId string
}
func (r ApiListSchoolUsersRequest) Execute() (*CollectionOfEducationUser, *http.Response, error) {
@@ -897,27 +895,26 @@ func (r ApiListSchoolUsersRequest) Execute() (*CollectionOfEducationUser, *http.
/*
ListSchoolUsers Get the educationUser resources associated with an educationSchool
@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 ApiListSchoolUsersRequest
@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 ApiListSchoolUsersRequest
*/
func (a *EducationSchoolApiService) ListSchoolUsers(ctx context.Context, schoolId string) ApiListSchoolUsersRequest {
return ApiListSchoolUsersRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
//
// @return CollectionOfEducationUser
// @return CollectionOfEducationUser
func (a *EducationSchoolApiService) ListSchoolUsersExecute(r ApiListSchoolUsersRequest) (*CollectionOfEducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.ListSchoolUsers")
@@ -971,14 +968,14 @@ func (a *EducationSchoolApiService) ListSchoolUsersExecute(r ApiListSchoolUsersR
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -995,7 +992,7 @@ func (a *EducationSchoolApiService) ListSchoolUsersExecute(r ApiListSchoolUsersR
}
type ApiListSchoolsRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationSchoolApiService
}
@@ -1006,25 +1003,24 @@ func (r ApiListSchoolsRequest) Execute() (*CollectionOfSchools, *http.Response,
/*
ListSchools Get a list of schools and their properties
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSchoolsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSchoolsRequest
*/
func (a *EducationSchoolApiService) ListSchools(ctx context.Context) ApiListSchoolsRequest {
return ApiListSchoolsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfSchools
// @return CollectionOfSchools
func (a *EducationSchoolApiService) ListSchoolsExecute(r ApiListSchoolsRequest) (*CollectionOfSchools, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfSchools
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfSchools
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.ListSchools")
@@ -1077,14 +1073,14 @@ func (a *EducationSchoolApiService) ListSchoolsExecute(r ApiListSchoolsRequest)
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -1101,9 +1097,9 @@ func (a *EducationSchoolApiService) ListSchoolsExecute(r ApiListSchoolsRequest)
}
type ApiUpdateSchoolRequest struct {
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
ctx context.Context
ApiService *EducationSchoolApiService
schoolId string
educationSchool *EducationSchool
}
@@ -1120,27 +1116,26 @@ func (r ApiUpdateSchoolRequest) Execute() (*EducationSchool, *http.Response, err
/*
UpdateSchool Update properties of a school
@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 ApiUpdateSchoolRequest
@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 ApiUpdateSchoolRequest
*/
func (a *EducationSchoolApiService) UpdateSchool(ctx context.Context, schoolId string) ApiUpdateSchoolRequest {
return ApiUpdateSchoolRequest{
ApiService: a,
ctx: ctx,
schoolId: schoolId,
ctx: ctx,
schoolId: schoolId,
}
}
// Execute executes the request
//
// @return EducationSchool
// @return EducationSchool
func (a *EducationSchoolApiService) UpdateSchoolExecute(r ApiUpdateSchoolRequest) (*EducationSchool, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationSchool
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationSchool
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationSchoolApiService.UpdateSchool")
@@ -1199,14 +1194,14 @@ func (a *EducationSchoolApiService) UpdateSchoolExecute(r ApiUpdateSchoolRequest
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ import (
"strings"
)
// EducationUserApiService EducationUserApi service
type EducationUserApiService service
type ApiCreateEducationUserRequest struct {
ctx context.Context
ApiService *EducationUserApiService
ctx context.Context
ApiService *EducationUserApiService
educationUser *EducationUser
}
@@ -41,25 +42,24 @@ func (r ApiCreateEducationUserRequest) Execute() (*EducationUser, *http.Response
/*
CreateEducationUser Add new education user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateEducationUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateEducationUserRequest
*/
func (a *EducationUserApiService) CreateEducationUser(ctx context.Context) ApiCreateEducationUserRequest {
return ApiCreateEducationUserRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return EducationUser
// @return EducationUser
func (a *EducationUserApiService) CreateEducationUserExecute(r ApiCreateEducationUserRequest) (*EducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationUser
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationUserApiService.CreateEducationUser")
@@ -117,14 +117,14 @@ func (a *EducationUserApiService) CreateEducationUserExecute(r ApiCreateEducatio
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -141,9 +141,9 @@ func (a *EducationUserApiService) CreateEducationUserExecute(r ApiCreateEducatio
}
type ApiDeleteEducationUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationUserApiService
userId string
userId string
}
func (r ApiDeleteEducationUserRequest) Execute() (*http.Response, error) {
@@ -153,24 +153,24 @@ func (r ApiDeleteEducationUserRequest) Execute() (*http.Response, error) {
/*
DeleteEducationUser Delete educationUser
@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
@return ApiDeleteEducationUserRequest
@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
@return ApiDeleteEducationUserRequest
*/
func (a *EducationUserApiService) DeleteEducationUser(ctx context.Context, userId string) ApiDeleteEducationUserRequest {
return ApiDeleteEducationUserRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
func (a *EducationUserApiService) DeleteEducationUserExecute(r ApiDeleteEducationUserRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationUserApiService.DeleteEducationUser")
@@ -224,14 +224,14 @@ func (a *EducationUserApiService) DeleteEducationUserExecute(r ApiDeleteEducatio
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -239,10 +239,10 @@ func (a *EducationUserApiService) DeleteEducationUserExecute(r ApiDeleteEducatio
}
type ApiGetEducationUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationUserApiService
userId string
expand *[]string
userId string
expand *[]string
}
// Expand related entities
@@ -258,27 +258,26 @@ func (r ApiGetEducationUserRequest) Execute() (*EducationUser, *http.Response, e
/*
GetEducationUser Get properties of educationUser
@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
@return ApiGetEducationUserRequest
@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
@return ApiGetEducationUserRequest
*/
func (a *EducationUserApiService) GetEducationUser(ctx context.Context, userId string) ApiGetEducationUserRequest {
return ApiGetEducationUserRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
//
// @return EducationUser
// @return EducationUser
func (a *EducationUserApiService) GetEducationUserExecute(r ApiGetEducationUserRequest) (*EducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationUser
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationUserApiService.GetEducationUser")
@@ -335,14 +334,14 @@ func (a *EducationUserApiService) GetEducationUserExecute(r ApiGetEducationUserR
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -359,10 +358,10 @@ func (a *EducationUserApiService) GetEducationUserExecute(r ApiGetEducationUserR
}
type ApiListEducationUsersRequest struct {
ctx context.Context
ctx context.Context
ApiService *EducationUserApiService
orderby *[]string
expand *[]string
orderby *[]string
expand *[]string
}
// Order items by property values
@@ -384,25 +383,24 @@ func (r ApiListEducationUsersRequest) Execute() (*CollectionOfEducationUser, *ht
/*
ListEducationUsers Get entities from education users
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListEducationUsersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListEducationUsersRequest
*/
func (a *EducationUserApiService) ListEducationUsers(ctx context.Context) ApiListEducationUsersRequest {
return ApiListEducationUsersRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfEducationUser
// @return CollectionOfEducationUser
func (a *EducationUserApiService) ListEducationUsersExecute(r ApiListEducationUsersRequest) (*CollectionOfEducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfEducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationUserApiService.ListEducationUsers")
@@ -461,14 +459,14 @@ func (a *EducationUserApiService) ListEducationUsersExecute(r ApiListEducationUs
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -485,9 +483,9 @@ func (a *EducationUserApiService) ListEducationUsersExecute(r ApiListEducationUs
}
type ApiUpdateEducationUserRequest struct {
ctx context.Context
ApiService *EducationUserApiService
userId string
ctx context.Context
ApiService *EducationUserApiService
userId string
educationUser *EducationUser
}
@@ -504,27 +502,26 @@ func (r ApiUpdateEducationUserRequest) Execute() (*EducationUser, *http.Response
/*
UpdateEducationUser Update properties of educationUser
@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
@return ApiUpdateEducationUserRequest
@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
@return ApiUpdateEducationUserRequest
*/
func (a *EducationUserApiService) UpdateEducationUser(ctx context.Context, userId string) ApiUpdateEducationUserRequest {
return ApiUpdateEducationUserRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
//
// @return EducationUser
// @return EducationUser
func (a *EducationUserApiService) UpdateEducationUserExecute(r ApiUpdateEducationUserRequest) (*EducationUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationUser
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *EducationUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationUserApiService.UpdateEducationUser")
@@ -583,14 +580,14 @@ func (a *EducationUserApiService) UpdateEducationUserExecute(r ApiUpdateEducatio
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// GroupApiService GroupApi service
type GroupApiService service
type ApiAddMemberRequest struct {
ctx context.Context
ApiService *GroupApiService
groupId string
ctx context.Context
ApiService *GroupApiService
groupId string
memberReference *MemberReference
}
@@ -42,24 +43,24 @@ func (r ApiAddMemberRequest) Execute() (*http.Response, error) {
/*
AddMember Add a member to a group
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@return ApiAddMemberRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@return ApiAddMemberRequest
*/
func (a *GroupApiService) AddMember(ctx context.Context, groupId string) ApiAddMemberRequest {
return ApiAddMemberRequest{
ApiService: a,
ctx: ctx,
groupId: groupId,
ctx: ctx,
groupId: groupId,
}
}
// Execute executes the request
func (a *GroupApiService) AddMemberExecute(r ApiAddMemberRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupApiService.AddMember")
@@ -118,14 +119,14 @@ func (a *GroupApiService) AddMemberExecute(r ApiAddMemberRequest) (*http.Respons
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -133,10 +134,10 @@ func (a *GroupApiService) AddMemberExecute(r ApiAddMemberRequest) (*http.Respons
}
type ApiDeleteGroupRequest struct {
ctx context.Context
ctx context.Context
ApiService *GroupApiService
groupId string
ifMatch *string
groupId string
ifMatch *string
}
// ETag
@@ -152,24 +153,24 @@ func (r ApiDeleteGroupRequest) Execute() (*http.Response, error) {
/*
DeleteGroup Delete entity from groups
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@return ApiDeleteGroupRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@return ApiDeleteGroupRequest
*/
func (a *GroupApiService) DeleteGroup(ctx context.Context, groupId string) ApiDeleteGroupRequest {
return ApiDeleteGroupRequest{
ApiService: a,
ctx: ctx,
groupId: groupId,
ctx: ctx,
groupId: groupId,
}
}
// Execute executes the request
func (a *GroupApiService) DeleteGroupExecute(r ApiDeleteGroupRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupApiService.DeleteGroup")
@@ -226,14 +227,14 @@ func (a *GroupApiService) DeleteGroupExecute(r ApiDeleteGroupRequest) (*http.Res
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -241,11 +242,11 @@ func (a *GroupApiService) DeleteGroupExecute(r ApiDeleteGroupRequest) (*http.Res
}
type ApiDeleteMemberRequest struct {
ctx context.Context
ApiService *GroupApiService
groupId string
ctx context.Context
ApiService *GroupApiService
groupId string
directoryObjectId string
ifMatch *string
ifMatch *string
}
// ETag
@@ -261,16 +262,16 @@ func (r ApiDeleteMemberRequest) Execute() (*http.Response, error) {
/*
DeleteMember Delete member from a group
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@param directoryObjectId key: id of group member to remove
@return ApiDeleteMemberRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@param directoryObjectId key: id of group member to remove
@return ApiDeleteMemberRequest
*/
func (a *GroupApiService) DeleteMember(ctx context.Context, groupId string, directoryObjectId string) ApiDeleteMemberRequest {
return ApiDeleteMemberRequest{
ApiService: a,
ctx: ctx,
groupId: groupId,
ApiService: a,
ctx: ctx,
groupId: groupId,
directoryObjectId: directoryObjectId,
}
}
@@ -278,9 +279,9 @@ func (a *GroupApiService) DeleteMember(ctx context.Context, groupId string, dire
// Execute executes the request
func (a *GroupApiService) DeleteMemberExecute(r ApiDeleteMemberRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupApiService.DeleteMember")
@@ -338,14 +339,14 @@ func (a *GroupApiService) DeleteMemberExecute(r ApiDeleteMemberRequest) (*http.R
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -353,11 +354,11 @@ func (a *GroupApiService) DeleteMemberExecute(r ApiDeleteMemberRequest) (*http.R
}
type ApiGetGroupRequest struct {
ctx context.Context
ctx context.Context
ApiService *GroupApiService
groupId string
select_ *[]string
expand *[]string
groupId string
select_ *[]string
expand *[]string
}
// Select properties to be returned
@@ -379,27 +380,26 @@ func (r ApiGetGroupRequest) Execute() (*Group, *http.Response, error) {
/*
GetGroup Get entity from groups by key
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id or name of group
@return ApiGetGroupRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id or name of group
@return ApiGetGroupRequest
*/
func (a *GroupApiService) GetGroup(ctx context.Context, groupId string) ApiGetGroupRequest {
return ApiGetGroupRequest{
ApiService: a,
ctx: ctx,
groupId: groupId,
ctx: ctx,
groupId: groupId,
}
}
// Execute executes the request
//
// @return Group
// @return Group
func (a *GroupApiService) GetGroupExecute(r ApiGetGroupRequest) (*Group, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Group
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupApiService.GetGroup")
@@ -459,14 +459,14 @@ func (a *GroupApiService) GetGroupExecute(r ApiGetGroupRequest) (*Group, *http.R
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -483,9 +483,9 @@ func (a *GroupApiService) GetGroupExecute(r ApiGetGroupRequest) (*Group, *http.R
}
type ApiListMembersRequest struct {
ctx context.Context
ctx context.Context
ApiService *GroupApiService
groupId string
groupId string
}
func (r ApiListMembersRequest) Execute() (*CollectionOfUsers, *http.Response, error) {
@@ -495,27 +495,26 @@ func (r ApiListMembersRequest) Execute() (*CollectionOfUsers, *http.Response, er
/*
ListMembers Get a list of the group's direct members
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id or name of group
@return ApiListMembersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id or name of group
@return ApiListMembersRequest
*/
func (a *GroupApiService) ListMembers(ctx context.Context, groupId string) ApiListMembersRequest {
return ApiListMembersRequest{
ApiService: a,
ctx: ctx,
groupId: groupId,
ctx: ctx,
groupId: groupId,
}
}
// Execute executes the request
//
// @return CollectionOfUsers
// @return CollectionOfUsers
func (a *GroupApiService) ListMembersExecute(r ApiListMembersRequest) (*CollectionOfUsers, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfUsers
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfUsers
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupApiService.ListMembers")
@@ -569,14 +568,14 @@ func (a *GroupApiService) ListMembersExecute(r ApiListMembersRequest) (*Collecti
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -593,10 +592,10 @@ func (a *GroupApiService) ListMembersExecute(r ApiListMembersRequest) (*Collecti
}
type ApiUpdateGroupRequest struct {
ctx context.Context
ctx context.Context
ApiService *GroupApiService
groupId string
group *Group
groupId string
group *Group
}
// New property values
@@ -612,24 +611,24 @@ func (r ApiUpdateGroupRequest) Execute() (*http.Response, error) {
/*
UpdateGroup Update entity in groups
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@return ApiUpdateGroupRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param groupId key: id of group
@return ApiUpdateGroupRequest
*/
func (a *GroupApiService) UpdateGroup(ctx context.Context, groupId string) ApiUpdateGroupRequest {
return ApiUpdateGroupRequest{
ApiService: a,
ctx: ctx,
groupId: groupId,
ctx: ctx,
groupId: groupId,
}
}
// Execute executes the request
func (a *GroupApiService) UpdateGroupExecute(r ApiUpdateGroupRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupApiService.UpdateGroup")
@@ -688,14 +687,14 @@ func (a *GroupApiService) UpdateGroupExecute(r ApiUpdateGroupRequest) (*http.Res
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,13 +18,14 @@ import (
"net/url"
)
// GroupsApiService GroupsApi service
type GroupsApiService service
type ApiCreateGroupRequest struct {
ctx context.Context
ctx context.Context
ApiService *GroupsApiService
group *Group
group *Group
}
// New entity
@@ -40,25 +41,24 @@ func (r ApiCreateGroupRequest) Execute() (*Group, *http.Response, error) {
/*
CreateGroup Add new entity to groups
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateGroupRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateGroupRequest
*/
func (a *GroupsApiService) CreateGroup(ctx context.Context) ApiCreateGroupRequest {
return ApiCreateGroupRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return Group
// @return Group
func (a *GroupsApiService) CreateGroupExecute(r ApiCreateGroupRequest) (*Group, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Group
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.CreateGroup")
@@ -116,14 +116,14 @@ func (a *GroupsApiService) CreateGroupExecute(r ApiCreateGroupRequest) (*Group,
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -140,12 +140,12 @@ func (a *GroupsApiService) CreateGroupExecute(r ApiCreateGroupRequest) (*Group,
}
type ApiListGroupsRequest struct {
ctx context.Context
ctx context.Context
ApiService *GroupsApiService
search *string
orderby *[]string
select_ *[]string
expand *[]string
search *string
orderby *[]string
select_ *[]string
expand *[]string
}
// Search items by search phrases
@@ -179,25 +179,24 @@ func (r ApiListGroupsRequest) Execute() (*CollectionOfGroup, *http.Response, err
/*
ListGroups Get entities from groups
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListGroupsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListGroupsRequest
*/
func (a *GroupsApiService) ListGroups(ctx context.Context) ApiListGroupsRequest {
return ApiListGroupsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfGroup
// @return CollectionOfGroup
func (a *GroupsApiService) ListGroupsExecute(r ApiListGroupsRequest) (*CollectionOfGroup, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfGroup
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.ListGroups")
@@ -262,14 +261,14 @@ func (a *GroupsApiService) ListGroupsExecute(r ApiListGroupsRequest) (*Collectio
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,12 +18,13 @@ import (
"net/url"
)
// MeChangepasswordApiService MeChangepasswordApi service
type MeChangepasswordApiService service
type ApiChangeOwnPasswordRequest struct {
ctx context.Context
ApiService *MeChangepasswordApiService
ctx context.Context
ApiService *MeChangepasswordApiService
passwordChange *PasswordChange
}
@@ -40,22 +41,22 @@ func (r ApiChangeOwnPasswordRequest) Execute() (*http.Response, error) {
/*
ChangeOwnPassword Change your own password
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiChangeOwnPasswordRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiChangeOwnPasswordRequest
*/
func (a *MeChangepasswordApiService) ChangeOwnPassword(ctx context.Context) ApiChangeOwnPasswordRequest {
return ApiChangeOwnPasswordRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MeChangepasswordApiService) ChangeOwnPasswordExecute(r ApiChangeOwnPasswordRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeChangepasswordApiService.ChangeOwnPassword")
@@ -113,14 +114,14 @@ func (a *MeChangepasswordApiService) ChangeOwnPasswordExecute(r ApiChangeOwnPass
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,11 +18,12 @@ import (
"net/url"
)
// MeDriveApiService MeDriveApi service
type MeDriveApiService service
type ApiGetHomeRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDriveApiService
}
@@ -33,25 +34,24 @@ func (r ApiGetHomeRequest) Execute() (*Drive, *http.Response, error) {
/*
GetHome Get personal space for user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetHomeRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetHomeRequest
*/
func (a *MeDriveApiService) GetHome(ctx context.Context) ApiGetHomeRequest {
return ApiGetHomeRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return Drive
// @return Drive
func (a *MeDriveApiService) GetHomeExecute(r ApiGetHomeRequest) (*Drive, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *Drive
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDriveApiService.GetHome")
@@ -104,14 +104,14 @@ func (a *MeDriveApiService) GetHomeExecute(r ApiGetHomeRequest) (*Drive, *http.R
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -128,7 +128,7 @@ func (a *MeDriveApiService) GetHomeExecute(r ApiGetHomeRequest) (*Drive, *http.R
}
type ApiListSharedByMeRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDriveApiService
}
@@ -141,25 +141,25 @@ ListSharedByMe Get a list of driveItem objects shared by the current user.
The `driveItems` returned from the `sharedByMe` method always include the `permissions` relation that indicates they are shared items.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSharedByMeRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSharedByMeRequest
*/
func (a *MeDriveApiService) ListSharedByMe(ctx context.Context) ApiListSharedByMeRequest {
return ApiListSharedByMeRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDriveItems1
// @return CollectionOfDriveItems1
func (a *MeDriveApiService) ListSharedByMeExecute(r ApiListSharedByMeRequest) (*CollectionOfDriveItems1, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDriveItems1
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDriveItems1
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDriveApiService.ListSharedByMe")
@@ -212,14 +212,14 @@ func (a *MeDriveApiService) ListSharedByMeExecute(r ApiListSharedByMeRequest) (*
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -236,7 +236,7 @@ func (a *MeDriveApiService) ListSharedByMeExecute(r ApiListSharedByMeRequest) (*
}
type ApiListSharedWithMeRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDriveApiService
}
@@ -249,25 +249,25 @@ ListSharedWithMe Get a list of driveItem objects shared with the owner of a driv
The `driveItems` returned from the `sharedWithMe` method always include the `remoteItem` facet that indicates they are items from a different drive.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSharedWithMeRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSharedWithMeRequest
*/
func (a *MeDriveApiService) ListSharedWithMe(ctx context.Context) ApiListSharedWithMeRequest {
return ApiListSharedWithMeRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDriveItems1
// @return CollectionOfDriveItems1
func (a *MeDriveApiService) ListSharedWithMeExecute(r ApiListSharedWithMeRequest) (*CollectionOfDriveItems1, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDriveItems1
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDriveItems1
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDriveApiService.ListSharedWithMe")
@@ -320,14 +320,14 @@ func (a *MeDriveApiService) ListSharedWithMeExecute(r ApiListSharedWithMeRequest
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,11 +18,12 @@ import (
"net/url"
)
// MeDriveRootApiService MeDriveRootApi service
type MeDriveRootApiService service
type ApiHomeGetRootRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDriveRootApiService
}
@@ -33,25 +34,24 @@ func (r ApiHomeGetRootRequest) Execute() (*DriveItem, *http.Response, error) {
/*
HomeGetRoot Get root from personal space
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHomeGetRootRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHomeGetRootRequest
*/
func (a *MeDriveRootApiService) HomeGetRoot(ctx context.Context) ApiHomeGetRootRequest {
return ApiHomeGetRootRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return DriveItem
// @return DriveItem
func (a *MeDriveRootApiService) HomeGetRootExecute(r ApiHomeGetRootRequest) (*DriveItem, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *DriveItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDriveRootApiService.HomeGetRoot")
@@ -104,14 +104,14 @@ func (a *MeDriveRootApiService) HomeGetRootExecute(r ApiHomeGetRootRequest) (*Dr
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,11 +18,12 @@ import (
"net/url"
)
// MeDriveRootChildrenApiService MeDriveRootChildrenApi service
type MeDriveRootChildrenApiService service
type ApiHomeGetChildrenRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDriveRootChildrenApiService
}
@@ -33,25 +34,24 @@ func (r ApiHomeGetChildrenRequest) Execute() (*CollectionOfDriveItems, *http.Res
/*
HomeGetChildren Get children from drive
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHomeGetChildrenRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHomeGetChildrenRequest
*/
func (a *MeDriveRootChildrenApiService) HomeGetChildren(ctx context.Context) ApiHomeGetChildrenRequest {
return ApiHomeGetChildrenRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDriveItems
// @return CollectionOfDriveItems
func (a *MeDriveRootChildrenApiService) HomeGetChildrenExecute(r ApiHomeGetChildrenRequest) (*CollectionOfDriveItems, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDriveItems
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDriveItems
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDriveRootChildrenApiService.HomeGetChildren")
@@ -104,14 +104,14 @@ func (a *MeDriveRootChildrenApiService) HomeGetChildrenExecute(r ApiHomeGetChild
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,14 +18,15 @@ import (
"net/url"
)
// MeDrivesApiService MeDrivesApi service
type MeDrivesApiService service
type ApiListMyDrivesRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDrivesApiService
orderby *string
filter *string
orderby *string
filter *string
}
// The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
@@ -47,25 +48,24 @@ func (r ApiListMyDrivesRequest) Execute() (*CollectionOfDrives, *http.Response,
/*
ListMyDrives Get all drives where the current user is a regular member of
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListMyDrivesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListMyDrivesRequest
*/
func (a *MeDrivesApiService) ListMyDrives(ctx context.Context) ApiListMyDrivesRequest {
return ApiListMyDrivesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDrives
// @return CollectionOfDrives
func (a *MeDrivesApiService) ListMyDrivesExecute(r ApiListMyDrivesRequest) (*CollectionOfDrives, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDrivesApiService.ListMyDrives")
@@ -124,14 +124,14 @@ func (a *MeDrivesApiService) ListMyDrivesExecute(r ApiListMyDrivesRequest) (*Col
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -148,10 +148,10 @@ func (a *MeDrivesApiService) ListMyDrivesExecute(r ApiListMyDrivesRequest) (*Col
}
type ApiListMyDrivesBetaRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeDrivesApiService
orderby *string
filter *string
orderby *string
filter *string
}
// The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
@@ -173,25 +173,24 @@ func (r ApiListMyDrivesBetaRequest) Execute() (*CollectionOfDrives, *http.Respon
/*
ListMyDrivesBeta Alias for '/v1.0/drives', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListMyDrivesBetaRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListMyDrivesBetaRequest
*/
func (a *MeDrivesApiService) ListMyDrivesBeta(ctx context.Context) ApiListMyDrivesBetaRequest {
return ApiListMyDrivesBetaRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfDrives
// @return CollectionOfDrives
func (a *MeDrivesApiService) ListMyDrivesBetaExecute(r ApiListMyDrivesBetaRequest) (*CollectionOfDrives, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfDrives
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeDrivesApiService.ListMyDrivesBeta")
@@ -250,14 +249,14 @@ func (a *MeDrivesApiService) ListMyDrivesBetaExecute(r ApiListMyDrivesBetaReques
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,13 +18,14 @@ import (
"net/url"
)
// MeUserApiService MeUserApi service
type MeUserApiService service
type ApiGetOwnUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeUserApiService
expand *[]string
expand *[]string
}
// Expand related entities
@@ -40,25 +41,24 @@ func (r ApiGetOwnUserRequest) Execute() (*User, *http.Response, error) {
/*
GetOwnUser Get current user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOwnUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOwnUserRequest
*/
func (a *MeUserApiService) GetOwnUser(ctx context.Context) ApiGetOwnUserRequest {
return ApiGetOwnUserRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return User
// @return User
func (a *MeUserApiService) GetOwnUserExecute(r ApiGetOwnUserRequest) (*User, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeUserApiService.GetOwnUser")
@@ -114,14 +114,14 @@ func (a *MeUserApiService) GetOwnUserExecute(r ApiGetOwnUserRequest) (*User, *ht
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -138,7 +138,7 @@ func (a *MeUserApiService) GetOwnUserExecute(r ApiGetOwnUserRequest) (*User, *ht
}
type ApiUpdateOwnUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *MeUserApiService
userUpdate *UserUpdate
}
@@ -156,25 +156,24 @@ func (r ApiUpdateOwnUserRequest) Execute() (*User, *http.Response, error) {
/*
UpdateOwnUser Update the current user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateOwnUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateOwnUserRequest
*/
func (a *MeUserApiService) UpdateOwnUser(ctx context.Context) ApiUpdateOwnUserRequest {
return ApiUpdateOwnUserRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return User
// @return User
func (a *MeUserApiService) UpdateOwnUserExecute(r ApiUpdateOwnUserRequest) (*User, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeUserApiService.UpdateOwnUser")
@@ -229,14 +228,14 @@ func (a *MeUserApiService) UpdateOwnUserExecute(r ApiUpdateOwnUserRequest) (*Use
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// RoleManagementApiService RoleManagementApi service
type RoleManagementApiService service
type ApiGetPermissionRoleDefinitionRequest struct {
ctx context.Context
ctx context.Context
ApiService *RoleManagementApiService
roleId string
roleId string
}
func (r ApiGetPermissionRoleDefinitionRequest) Execute() (*UnifiedRoleDefinition, *http.Response, error) {
@@ -37,27 +38,27 @@ GetPermissionRoleDefinition Get unifiedRoleDefinition
Read the properties and relationships of a `unifiedRoleDefinition` object.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param roleId key: id of roleDefinition
@return ApiGetPermissionRoleDefinitionRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param roleId key: id of roleDefinition
@return ApiGetPermissionRoleDefinitionRequest
*/
func (a *RoleManagementApiService) GetPermissionRoleDefinition(ctx context.Context, roleId string) ApiGetPermissionRoleDefinitionRequest {
return ApiGetPermissionRoleDefinitionRequest{
ApiService: a,
ctx: ctx,
roleId: roleId,
ctx: ctx,
roleId: roleId,
}
}
// Execute executes the request
//
// @return UnifiedRoleDefinition
// @return UnifiedRoleDefinition
func (a *RoleManagementApiService) GetPermissionRoleDefinitionExecute(r ApiGetPermissionRoleDefinitionRequest) (*UnifiedRoleDefinition, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *UnifiedRoleDefinition
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *UnifiedRoleDefinition
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleManagementApiService.GetPermissionRoleDefinition")
@@ -111,14 +112,14 @@ func (a *RoleManagementApiService) GetPermissionRoleDefinitionExecute(r ApiGetPe
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -135,7 +136,7 @@ func (a *RoleManagementApiService) GetPermissionRoleDefinitionExecute(r ApiGetPe
}
type ApiListPermissionRoleDefinitionsRequest struct {
ctx context.Context
ctx context.Context
ApiService *RoleManagementApiService
}
@@ -148,25 +149,25 @@ ListPermissionRoleDefinitions List roleDefinitions
Get a list of `unifiedRoleDefinition` objects for the permissions provider. This list determines the roles that can be selected when creating sharing invites.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListPermissionRoleDefinitionsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListPermissionRoleDefinitionsRequest
*/
func (a *RoleManagementApiService) ListPermissionRoleDefinitions(ctx context.Context) ApiListPermissionRoleDefinitionsRequest {
return ApiListPermissionRoleDefinitionsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return UnifiedRoleDefinition
// @return UnifiedRoleDefinition
func (a *RoleManagementApiService) ListPermissionRoleDefinitionsExecute(r ApiListPermissionRoleDefinitionsRequest) (*UnifiedRoleDefinition, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *UnifiedRoleDefinition
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *UnifiedRoleDefinition
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleManagementApiService.ListPermissionRoleDefinitions")
@@ -219,14 +220,14 @@ func (a *RoleManagementApiService) ListPermissionRoleDefinitionsExecute(r ApiLis
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,12 +18,13 @@ import (
"net/url"
)
// TagsApiService TagsApi service
type TagsApiService service
type ApiAssignTagsRequest struct {
ctx context.Context
ApiService *TagsApiService
ctx context.Context
ApiService *TagsApiService
tagAssignment *TagAssignment
}
@@ -39,22 +40,22 @@ func (r ApiAssignTagsRequest) Execute() (*http.Response, error) {
/*
AssignTags Assign tags to a resource
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAssignTagsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAssignTagsRequest
*/
func (a *TagsApiService) AssignTags(ctx context.Context) ApiAssignTagsRequest {
return ApiAssignTagsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *TagsApiService) AssignTagsExecute(r ApiAssignTagsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.AssignTags")
@@ -109,14 +110,14 @@ func (a *TagsApiService) AssignTagsExecute(r ApiAssignTagsRequest) (*http.Respon
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -124,7 +125,7 @@ func (a *TagsApiService) AssignTagsExecute(r ApiAssignTagsRequest) (*http.Respon
}
type ApiGetTagsRequest struct {
ctx context.Context
ctx context.Context
ApiService *TagsApiService
}
@@ -135,25 +136,24 @@ func (r ApiGetTagsRequest) Execute() (*CollectionOfTags, *http.Response, error)
/*
GetTags Get all known tags
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetTagsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetTagsRequest
*/
func (a *TagsApiService) GetTags(ctx context.Context) ApiGetTagsRequest {
return ApiGetTagsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfTags
// @return CollectionOfTags
func (a *TagsApiService) GetTagsExecute(r ApiGetTagsRequest) (*CollectionOfTags, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfTags
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfTags
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GetTags")
@@ -206,14 +206,14 @@ func (a *TagsApiService) GetTagsExecute(r ApiGetTagsRequest) (*CollectionOfTags,
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -230,8 +230,8 @@ func (a *TagsApiService) GetTagsExecute(r ApiGetTagsRequest) (*CollectionOfTags,
}
type ApiUnassignTagsRequest struct {
ctx context.Context
ApiService *TagsApiService
ctx context.Context
ApiService *TagsApiService
tagUnassignment *TagUnassignment
}
@@ -247,22 +247,22 @@ func (r ApiUnassignTagsRequest) Execute() (*http.Response, error) {
/*
UnassignTags Unassign tags from a resource
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUnassignTagsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUnassignTagsRequest
*/
func (a *TagsApiService) UnassignTags(ctx context.Context) ApiUnassignTagsRequest {
return ApiUnassignTagsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *TagsApiService) UnassignTagsExecute(r ApiUnassignTagsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.UnassignTags")
@@ -317,14 +317,14 @@ func (a *TagsApiService) UnassignTagsExecute(r ApiUnassignTagsRequest) (*http.Re
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,15 @@ import (
"strings"
)
// UserApiService UserApi service
type UserApiService service
type ApiDeleteUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *UserApiService
userId string
ifMatch *string
userId string
ifMatch *string
}
// ETag
@@ -42,24 +43,24 @@ func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
/*
DeleteUser Delete entity from users
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id or name of user
@return ApiDeleteUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id or name of user
@return ApiDeleteUserRequest
*/
func (a *UserApiService) DeleteUser(ctx context.Context, userId string) ApiDeleteUserRequest {
return ApiDeleteUserRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
func (a *UserApiService) DeleteUserExecute(r ApiDeleteUserRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.DeleteUser")
@@ -116,14 +117,14 @@ func (a *UserApiService) DeleteUserExecute(r ApiDeleteUserRequest) (*http.Respon
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -131,9 +132,9 @@ func (a *UserApiService) DeleteUserExecute(r ApiDeleteUserRequest) (*http.Respon
}
type ApiExportPersonalDataRequest struct {
ctx context.Context
ApiService *UserApiService
userId string
ctx context.Context
ApiService *UserApiService
userId string
exportPersonalDataRequest *ExportPersonalDataRequest
}
@@ -150,24 +151,24 @@ func (r ApiExportPersonalDataRequest) Execute() (*http.Response, error) {
/*
ExportPersonalData export personal data of a user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id or name of user
@return ApiExportPersonalDataRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id or name of user
@return ApiExportPersonalDataRequest
*/
func (a *UserApiService) ExportPersonalData(ctx context.Context, userId string) ApiExportPersonalDataRequest {
return ApiExportPersonalDataRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
func (a *UserApiService) ExportPersonalDataExecute(r ApiExportPersonalDataRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.ExportPersonalData")
@@ -223,14 +224,14 @@ func (a *UserApiService) ExportPersonalDataExecute(r ApiExportPersonalDataReques
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -238,11 +239,11 @@ func (a *UserApiService) ExportPersonalDataExecute(r ApiExportPersonalDataReques
}
type ApiGetUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *UserApiService
userId string
select_ *[]string
expand *[]string
userId string
select_ *[]string
expand *[]string
}
// Select properties to be returned
@@ -264,27 +265,26 @@ func (r ApiGetUserRequest) Execute() (*User, *http.Response, error) {
/*
GetUser Get entity from users by key
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id or name of user
@return ApiGetUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id or name of user
@return ApiGetUserRequest
*/
func (a *UserApiService) GetUser(ctx context.Context, userId string) ApiGetUserRequest {
return ApiGetUserRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
//
// @return User
// @return User
func (a *UserApiService) GetUserExecute(r ApiGetUserRequest) (*User, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.GetUser")
@@ -344,14 +344,14 @@ func (a *UserApiService) GetUserExecute(r ApiGetUserRequest) (*User, *http.Respo
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -368,9 +368,9 @@ func (a *UserApiService) GetUserExecute(r ApiGetUserRequest) (*User, *http.Respo
}
type ApiUpdateUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *UserApiService
userId string
userId string
userUpdate *UserUpdate
}
@@ -387,27 +387,26 @@ func (r ApiUpdateUserRequest) Execute() (*User, *http.Response, error) {
/*
UpdateUser Update entity in users
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@return ApiUpdateUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@return ApiUpdateUserRequest
*/
func (a *UserApiService) UpdateUser(ctx context.Context, userId string) ApiUpdateUserRequest {
return ApiUpdateUserRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
//
// @return User
// @return User
func (a *UserApiService) UpdateUserExecute(r ApiUpdateUserRequest) (*User, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.UpdateUser")
@@ -466,14 +465,14 @@ func (a *UserApiService) UpdateUserExecute(r ApiUpdateUserRequest) (*User, *http
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,14 @@ import (
"strings"
)
// UserAppRoleAssignmentApiService UserAppRoleAssignmentApi service
type UserAppRoleAssignmentApiService service
type ApiUserCreateAppRoleAssignmentsRequest struct {
ctx context.Context
ApiService *UserAppRoleAssignmentApiService
userId string
ctx context.Context
ApiService *UserAppRoleAssignmentApiService
userId string
appRoleAssignment *AppRoleAssignment
}
@@ -47,27 +48,27 @@ Use this API to assign a global role to a user. To grant an app role assignment
* `resourceId`: The `id` of the resource `servicePrincipal` or `application` that has defined the app role.
* `appRoleId`: The `id` of the `appRole` (defined on the resource service principal or application) to assign to the user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@return ApiUserCreateAppRoleAssignmentsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@return ApiUserCreateAppRoleAssignmentsRequest
*/
func (a *UserAppRoleAssignmentApiService) UserCreateAppRoleAssignments(ctx context.Context, userId string) ApiUserCreateAppRoleAssignmentsRequest {
return ApiUserCreateAppRoleAssignmentsRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
//
// @return AppRoleAssignment
// @return AppRoleAssignment
func (a *UserAppRoleAssignmentApiService) UserCreateAppRoleAssignmentsExecute(r ApiUserCreateAppRoleAssignmentsRequest) (*AppRoleAssignment, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *AppRoleAssignment
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *AppRoleAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAppRoleAssignmentApiService.UserCreateAppRoleAssignments")
@@ -126,14 +127,14 @@ func (a *UserAppRoleAssignmentApiService) UserCreateAppRoleAssignmentsExecute(r
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -150,11 +151,11 @@ func (a *UserAppRoleAssignmentApiService) UserCreateAppRoleAssignmentsExecute(r
}
type ApiUserDeleteAppRoleAssignmentsRequest struct {
ctx context.Context
ApiService *UserAppRoleAssignmentApiService
userId string
ctx context.Context
ApiService *UserAppRoleAssignmentApiService
userId string
appRoleAssignmentId string
ifMatch *string
ifMatch *string
}
// ETag
@@ -170,16 +171,16 @@ func (r ApiUserDeleteAppRoleAssignmentsRequest) Execute() (*http.Response, error
/*
UserDeleteAppRoleAssignments Delete the appRoleAssignment from a user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@param appRoleAssignmentId key: id of appRoleAssignment. This is the concatenated {user-id}:{appRole-id} separated by a colon.
@return ApiUserDeleteAppRoleAssignmentsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@param appRoleAssignmentId key: id of appRoleAssignment. This is the concatenated {user-id}:{appRole-id} separated by a colon.
@return ApiUserDeleteAppRoleAssignmentsRequest
*/
func (a *UserAppRoleAssignmentApiService) UserDeleteAppRoleAssignments(ctx context.Context, userId string, appRoleAssignmentId string) ApiUserDeleteAppRoleAssignmentsRequest {
return ApiUserDeleteAppRoleAssignmentsRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ApiService: a,
ctx: ctx,
userId: userId,
appRoleAssignmentId: appRoleAssignmentId,
}
}
@@ -187,9 +188,9 @@ func (a *UserAppRoleAssignmentApiService) UserDeleteAppRoleAssignments(ctx conte
// Execute executes the request
func (a *UserAppRoleAssignmentApiService) UserDeleteAppRoleAssignmentsExecute(r ApiUserDeleteAppRoleAssignmentsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAppRoleAssignmentApiService.UserDeleteAppRoleAssignments")
@@ -247,14 +248,14 @@ func (a *UserAppRoleAssignmentApiService) UserDeleteAppRoleAssignmentsExecute(r
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
@@ -262,9 +263,9 @@ func (a *UserAppRoleAssignmentApiService) UserDeleteAppRoleAssignmentsExecute(r
}
type ApiUserListAppRoleAssignmentsRequest struct {
ctx context.Context
ctx context.Context
ApiService *UserAppRoleAssignmentApiService
userId string
userId string
}
func (r ApiUserListAppRoleAssignmentsRequest) Execute() (*CollectionOfAppRoleAssignments, *http.Response, error) {
@@ -276,27 +277,26 @@ UserListAppRoleAssignments Get appRoleAssignments from a user
Represents the global roles a user has been granted for an application.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@return ApiUserListAppRoleAssignmentsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId key: id of user
@return ApiUserListAppRoleAssignmentsRequest
*/
func (a *UserAppRoleAssignmentApiService) UserListAppRoleAssignments(ctx context.Context, userId string) ApiUserListAppRoleAssignmentsRequest {
return ApiUserListAppRoleAssignmentsRequest{
ApiService: a,
ctx: ctx,
userId: userId,
ctx: ctx,
userId: userId,
}
}
// Execute executes the request
//
// @return CollectionOfAppRoleAssignments
// @return CollectionOfAppRoleAssignments
func (a *UserAppRoleAssignmentApiService) UserListAppRoleAssignmentsExecute(r ApiUserListAppRoleAssignmentsRequest) (*CollectionOfAppRoleAssignments, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfAppRoleAssignments
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfAppRoleAssignments
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAppRoleAssignmentApiService.UserListAppRoleAssignments")
@@ -350,14 +350,14 @@ func (a *UserAppRoleAssignmentApiService) UserListAppRoleAssignmentsExecute(r Ap
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,13 +18,14 @@ import (
"net/url"
)
// UsersApiService UsersApi service
type UsersApiService service
type ApiCreateUserRequest struct {
ctx context.Context
ctx context.Context
ApiService *UsersApiService
user *User
user *User
}
// New entity
@@ -40,25 +41,24 @@ func (r ApiCreateUserRequest) Execute() (*User, *http.Response, error) {
/*
CreateUser Add new entity to users
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateUserRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateUserRequest
*/
func (a *UsersApiService) CreateUser(ctx context.Context) ApiCreateUserRequest {
return ApiCreateUserRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return User
// @return User
func (a *UsersApiService) CreateUserExecute(r ApiCreateUserRequest) (*User, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.CreateUser")
@@ -116,14 +116,14 @@ func (a *UsersApiService) CreateUserExecute(r ApiCreateUserRequest) (*User, *htt
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -140,13 +140,13 @@ func (a *UsersApiService) CreateUserExecute(r ApiCreateUserRequest) (*User, *htt
}
type ApiListUsersRequest struct {
ctx context.Context
ctx context.Context
ApiService *UsersApiService
search *string
filter *string
orderby *[]string
select_ *[]string
expand *[]string
search *string
filter *string
orderby *[]string
select_ *[]string
expand *[]string
}
// Search items by search phrases
@@ -186,25 +186,24 @@ func (r ApiListUsersRequest) Execute() (*CollectionOfUser, *http.Response, error
/*
ListUsers Get entities from users
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListUsersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListUsersRequest
*/
func (a *UsersApiService) ListUsers(ctx context.Context) ApiListUsersRequest {
return ApiListUsersRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
//
// @return CollectionOfUser
// @return CollectionOfUser
func (a *UsersApiService) ListUsersExecute(r ApiListUsersRequest) (*CollectionOfUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfUser
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CollectionOfUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.ListUsers")
@@ -272,14 +271,14 @@ func (a *UsersApiService) ListUsersExecute(r ApiListUsersRequest) (*CollectionOf
body: localVarBody,
error: localVarHTTPResponse.Status,
}
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
var v OdataError
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -31,16 +31,17 @@ import (
"strings"
"time"
"unicode/utf8"
)
var (
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
)
// APIClient manages communication with the Libre Graph API API vv1.0.4
// APIClient manages communication with the Libre Graph API API vv1.0.5
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
@@ -193,15 +194,19 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
return nil
}
func parameterValueToString(obj interface{}, key string) string {
func parameterValueToString( obj interface{}, key string ) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
}
return fmt.Sprintf("%v", obj)
}
var param, ok = obj.(MappedNullable)
var param,ok = obj.(MappedNullable)
if !ok {
return ""
}
dataMap, err := param.ToMap()
dataMap,err := param.ToMap()
if err != nil {
return ""
}
@@ -217,85 +222,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
value = "null"
} else {
switch v.Kind() {
case reflect.Invalid:
value = "invalid"
case reflect.Invalid:
value = "invalid"
case reflect.Struct:
if t, ok := obj.(MappedNullable); ok {
dataMap, err := t.ToMap()
if err != nil {
case reflect.Struct:
if t,ok := obj.(MappedNullable); ok {
dataMap,err := t.ToMap()
if err != nil {
return
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
return
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
return
}
if t, ok := obj.(time.Time); ok {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
return
}
value = v.Type().String() + " value"
case reflect.Slice:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
var lenIndValue = indValue.Len()
for i := 0; i < lenIndValue; i++ {
var arrayValue = indValue.Index(i)
var keyPrefixForCollectionType = keyPrefix
if style == "deepObject" {
keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
if t, ok := obj.(time.Time); ok {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
return
}
value = v.Type().String() + " value"
case reflect.Slice:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
var lenIndValue = indValue.Len()
for i:=0;i<lenIndValue;i++ {
var arrayValue = indValue.Index(i)
var keyPrefixForCollectionType = keyPrefix
if style == "deepObject" {
keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
}
return
case reflect.Map:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
iter := indValue.MapRange()
for iter.Next() {
k, v := iter.Key(), iter.Value()
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
}
return
case reflect.Interface:
fallthrough
case reflect.Ptr:
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
return
case reflect.Map:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
iter := indValue.MapRange()
for iter.Next() {
k,v := iter.Key(), iter.Value()
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
}
return
case reflect.Int, reflect.Int8, reflect.Int16,
reflect.Int32, reflect.Int64:
value = strconv.FormatInt(v.Int(), 10)
case reflect.Uint, reflect.Uint8, reflect.Uint16,
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
value = strconv.FormatUint(v.Uint(), 10)
case reflect.Float32, reflect.Float64:
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
case reflect.Bool:
value = strconv.FormatBool(v.Bool())
case reflect.String:
value = v.String()
default:
value = v.Type().String() + " value"
case reflect.Interface:
fallthrough
case reflect.Ptr:
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
return
case reflect.Int, reflect.Int8, reflect.Int16,
reflect.Int32, reflect.Int64:
value = strconv.FormatInt(v.Int(), 10)
case reflect.Uint, reflect.Uint8, reflect.Uint16,
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
value = strconv.FormatUint(v.Uint(), 10)
case reflect.Float32, reflect.Float64:
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
case reflect.Bool:
value = strconv.FormatBool(v.Bool())
case reflect.String:
value = v.String()
default:
value = v.Type().String() + " value"
}
}
switch valuesMap := headerOrQueryParams.(type) {
case url.Values:
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
} else {
valuesMap.Add(keyPrefix, value)
}
break
case map[string]string:
valuesMap[keyPrefix] = value
break
case url.Values:
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value)
} else {
valuesMap.Add(keyPrefix, value)
}
break
case map[string]string:
valuesMap[keyPrefix] = value
break
}
}
@@ -340,9 +345,9 @@ func (c *APIClient) GetConfig() *Configuration {
}
type formFile struct {
fileBytes []byte
fileName string
formFileName string
fileBytes []byte
fileName string
formFileName string
}
// prepareRequest build the request
@@ -396,11 +401,11 @@ func (c *APIClient) prepareRequest(
w.Boundary()
part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
if err != nil {
return nil, err
return nil, err
}
_, err = part.Write(formFile.fileBytes)
if err != nil {
return nil, err
return nil, err
}
}
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -68,9 +68,9 @@ type ServerVariable struct {
// ServerConfiguration stores the information about a server
type ServerConfiguration struct {
URL string
URL string
Description string
Variables map[string]ServerVariable
Variables map[string]ServerVariable
}
// ServerConfigurations stores multiple ServerConfiguration items
@@ -91,20 +91,17 @@ type Configuration struct {
// NewConfiguration returns a new Configuration object
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: ServerConfigurations{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: ServerConfigurations{
{
URL: "https://ocis.ocis.rolling.owncloud.works/graph",
Description: "ownCloud Infinite Scale Rolling Release",
},
{
URL: "https://localhost:9200/graph",
Description: "ownCloud Infinite Scale Development Setup",
URL: "https://localhost:9200/graph",
Description: "OpenCloud Development Setup",
},
},
OperationServers: map[string]ServerConfigurations{},
OperationServers: map[string]ServerConfigurations{
},
}
return cfg
}
@@ -14,7 +14,7 @@ if [ "$git_host" = "" ]; then
fi
if [ "$git_user_id" = "" ]; then
git_user_id="owncloud"
git_user_id="opencloud-eu"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -22,8 +22,8 @@ var _ MappedNullable = &Activity{}
// Activity Represents activity.
type Activity struct {
// Activity ID.
Id string `json:"id"`
Times ActivityTimes `json:"times"`
Id string `json:"id"`
Times ActivityTimes `json:"times"`
Template ActivityTemplate `json:"template"`
}
@@ -122,7 +122,7 @@ func (o *Activity) SetTemplate(v ActivityTemplate) {
}
func (o Activity) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -152,10 +152,10 @@ func (o *Activity) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -211,3 +211,5 @@ func (v *NullableActivity) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -104,7 +104,7 @@ func (o *ActivityTemplate) SetVariables(v map[string]interface{}) {
}
func (o ActivityTemplate) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -133,10 +133,10 @@ func (o *ActivityTemplate) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -192,3 +192,5 @@ func (v *NullableActivityTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,10 +11,10 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"fmt"
"time"
"bytes"
"fmt"
)
// checks if the ActivityTimes type satisfies the MappedNullable interface at compile time
@@ -71,7 +71,7 @@ func (o *ActivityTimes) SetRecordedTime(v time.Time) {
}
func (o ActivityTimes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -97,10 +97,10 @@ func (o *ActivityTimes) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -156,3 +156,5 @@ func (v *NullableActivityTimes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -115,7 +115,6 @@ func (o *AppRole) HasDescription() bool {
func (o *AppRole) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *AppRole) SetDescriptionNil() {
o.Description.Set(nil)
@@ -158,7 +157,6 @@ func (o *AppRole) HasDisplayName() bool {
func (o *AppRole) SetDisplayName(v string) {
o.DisplayName.Set(&v)
}
// SetDisplayNameNil sets the value for DisplayName to be an explicit nil
func (o *AppRole) SetDisplayNameNil() {
o.DisplayName.Set(nil)
@@ -194,7 +192,7 @@ func (o *AppRole) SetId(v string) {
}
func (o AppRole) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -229,10 +227,10 @@ func (o *AppRole) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -288,3 +286,5 @@ func (v *NullableAppRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,10 +11,10 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"fmt"
"time"
"bytes"
"fmt"
)
// checks if the AppRoleAssignment type satisfies the MappedNullable interface at compile time
@@ -23,7 +23,7 @@ var _ MappedNullable = &AppRoleAssignment{}
// AppRoleAssignment struct for AppRoleAssignment
type AppRoleAssignment struct {
// The unique identifier for the object. 12345678-9abc-def0-1234-56789abcde. The value of the ID property is often, but not exclusively, in the form of a GUID. The value should be treated as an opaque identifier and not based in being a GUID. Null values are not allowed. Read-only.
Id *string `json:"id,omitempty"`
Id *string `json:"id,omitempty"`
DeletedDateTime *time.Time `json:"deletedDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// The identifier (id) for the app role which is assigned to the user. Required on create.
AppRoleId string `json:"appRoleId" validate:"regexp=^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"`
@@ -183,7 +183,6 @@ func (o *AppRoleAssignment) HasCreatedDateTime() bool {
func (o *AppRoleAssignment) SetCreatedDateTime(v time.Time) {
o.CreatedDateTime.Set(&v)
}
// SetCreatedDateTimeNil sets the value for CreatedDateTime to be an explicit nil
func (o *AppRoleAssignment) SetCreatedDateTimeNil() {
o.CreatedDateTime.Set(nil)
@@ -226,7 +225,6 @@ func (o *AppRoleAssignment) HasPrincipalDisplayName() bool {
func (o *AppRoleAssignment) SetPrincipalDisplayName(v string) {
o.PrincipalDisplayName.Set(&v)
}
// SetPrincipalDisplayNameNil sets the value for PrincipalDisplayName to be an explicit nil
func (o *AppRoleAssignment) SetPrincipalDisplayNameNil() {
o.PrincipalDisplayName.Set(nil)
@@ -295,7 +293,6 @@ func (o *AppRoleAssignment) HasPrincipalType() bool {
func (o *AppRoleAssignment) SetPrincipalType(v string) {
o.PrincipalType.Set(&v)
}
// SetPrincipalTypeNil sets the value for PrincipalType to be an explicit nil
func (o *AppRoleAssignment) SetPrincipalTypeNil() {
o.PrincipalType.Set(nil)
@@ -338,7 +335,6 @@ func (o *AppRoleAssignment) HasResourceDisplayName() bool {
func (o *AppRoleAssignment) SetResourceDisplayName(v string) {
o.ResourceDisplayName.Set(&v)
}
// SetResourceDisplayNameNil sets the value for ResourceDisplayName to be an explicit nil
func (o *AppRoleAssignment) SetResourceDisplayNameNil() {
o.ResourceDisplayName.Set(nil)
@@ -376,7 +372,7 @@ func (o *AppRoleAssignment) SetResourceId(v string) {
}
func (o AppRoleAssignment) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -424,10 +420,10 @@ func (o *AppRoleAssignment) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -483,3 +479,5 @@ func (v *NullableAppRoleAssignment) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -137,7 +137,6 @@ func (o *Application) HasDisplayName() bool {
func (o *Application) SetDisplayName(v string) {
o.DisplayName.Set(&v)
}
// SetDisplayNameNil sets the value for DisplayName to be an explicit nil
func (o *Application) SetDisplayNameNil() {
o.DisplayName.Set(nil)
@@ -149,7 +148,7 @@ func (o *Application) UnsetDisplayName() {
}
func (o Application) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -181,10 +180,10 @@ func (o *Application) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -240,3 +239,5 @@ func (v *NullableApplication) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -17,7 +17,7 @@ import (
// checks if the Audio type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Audio{}
// Audio The Audio resource groups audio-related properties on an item into a single structure. If a DriveItem has a non-null audio facet, the item represents an audio file. The properties of the Audio resource are populated by extracting metadata from the file.
// Audio The Audio resource groups audio-related properties on an item into a single structure. If a DriveItem has a non-null audio facet, the item represents an audio file. The properties of the Audio resource are populated by extracting metadata from the file.
type Audio struct {
// The title of the album for this audio file.
Album *string `json:"album,omitempty"`
@@ -583,7 +583,7 @@ func (o *Audio) SetYear(v int32) {
}
func (o Audio) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -678,3 +678,5 @@ func (v *NullableAudio) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *ClassMemberReference) SetOdataId(v string) {
}
func (o ClassMemberReference) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableClassMemberReference) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *ClassReference) SetOdataId(v string) {
}
func (o ClassReference) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableClassReference) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *ClassTeacherReference) SetOdataId(v string) {
}
func (o ClassTeacherReference) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableClassTeacherReference) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfActivities) SetValue(v []Activity) {
}
func (o CollectionOfActivities) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfActivities) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CollectionOfAppRoleAssignments{}
// CollectionOfAppRoleAssignments struct for CollectionOfAppRoleAssignments
type CollectionOfAppRoleAssignments struct {
Value []AppRoleAssignment `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
Value []AppRoleAssignment `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}
// NewCollectionOfAppRoleAssignments instantiates a new CollectionOfAppRoleAssignments object
@@ -105,7 +105,7 @@ func (o *CollectionOfAppRoleAssignments) SetOdataNextLink(v string) {
}
func (o CollectionOfAppRoleAssignments) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -158,3 +158,5 @@ func (v *NullableCollectionOfAppRoleAssignments) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfApplications) SetValue(v []Application) {
}
func (o CollectionOfApplications) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfApplications) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfClass) SetValue(v []EducationClass) {
}
func (o CollectionOfClass) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfClass) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CollectionOfDriveItems{}
// CollectionOfDriveItems struct for CollectionOfDriveItems
type CollectionOfDriveItems struct {
Value []DriveItem `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
Value []DriveItem `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}
// NewCollectionOfDriveItems instantiates a new CollectionOfDriveItems object
@@ -105,7 +105,7 @@ func (o *CollectionOfDriveItems) SetOdataNextLink(v string) {
}
func (o CollectionOfDriveItems) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -158,3 +158,5 @@ func (v *NullableCollectionOfDriveItems) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfDriveItems1) SetValue(v []DriveItem) {
}
func (o CollectionOfDriveItems1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfDriveItems1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &CollectionOfDrives{}
// CollectionOfDrives struct for CollectionOfDrives
type CollectionOfDrives struct {
Value []Drive `json:"value,omitempty"`
Value []Drive `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}
@@ -105,7 +105,7 @@ func (o *CollectionOfDrives) SetOdataNextLink(v string) {
}
func (o CollectionOfDrives) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -158,3 +158,5 @@ func (v *NullableCollectionOfDrives) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfDrives1) SetValue(v []Drive) {
}
func (o CollectionOfDrives1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfDrives1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfEducationClass) SetValue(v []EducationClass) {
}
func (o CollectionOfEducationClass) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfEducationClass) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfEducationUser) SetValue(v []EducationUser) {
}
func (o CollectionOfEducationUser) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfEducationUser) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &CollectionOfGroup{}
// CollectionOfGroup struct for CollectionOfGroup
type CollectionOfGroup struct {
Value []Group `json:"value,omitempty"`
Value []Group `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}
@@ -105,7 +105,7 @@ func (o *CollectionOfGroup) SetOdataNextLink(v string) {
}
func (o CollectionOfGroup) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -158,3 +158,5 @@ func (v *NullableCollectionOfGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfPermissions) SetValue(v []Permission) {
}
func (o CollectionOfPermissions) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfPermissions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &CollectionOfPermissionsWithAllowedValues{}
type CollectionOfPermissionsWithAllowedValues struct {
// A list of role definitions that can be chosen for the resource.
LibreGraphPermissionsRolesAllowedValues []UnifiedRoleDefinition `json:"@libre.graph.permissions.roles.allowedValues,omitempty"`
// A list of actions that can be chosen for a custom role. Following the CS3 API we can represent the CS3 permissions by mapping them to driveItem properties or relations like this: | [CS3 ResourcePermission](https://cs3org.github.io/cs3apis/#cs3.storage.provider.v1beta1.ResourcePermissions) | action | comment | | ------------------------------------------------------------------------------------------------------------ | ------ | ------- | | `stat` | `libre.graph/driveItem/basic/read` | `basic` because it does not include versions or trashed items | | `get_quota` | `libre.graph/driveItem/quota/read` | read only the `quota` property | | `get_path` | `libre.graph/driveItem/path/read` | read only the `path` property | | `move` | `libre.graph/driveItem/path/update` | allows updating the `path` property of a CS3 resource | | `delete` | `libre.graph/driveItem/standard/delete` | `standard` because deleting is a common update operation | | `list_container` | `libre.graph/driveItem/children/read` | | | `create_container` | `libre.graph/driveItem/children/create` | | | `initiate_file_download` | `libre.graph/driveItem/content/read` | `content` is the property read when initiating a download | | `initiate_file_upload` | `libre.graph/driveItem/upload/create` | `uploads` are a separate property. postprocessing creates the `content` | | `add_grant` | `libre.graph/driveItem/permissions/create` | | | `list_grant` | `libre.graph/driveItem/permissions/read` | | | `update_grant` | `libre.graph/driveItem/permissions/update` | | | `remove_grant` | `libre.graph/driveItem/permissions/delete` | | | `deny_grant` | `libre.graph/driveItem/permissions/deny` | uses a non CRUD action `deny` | | `list_file_versions` | `libre.graph/driveItem/versions/read` | `versions` is a `driveItemVersion` collection | | `restore_file_version` | `libre.graph/driveItem/versions/update` | the only `update` action is restore | | `list_recycle` | `libre.graph/driveItem/deleted/read` | reading a driveItem `deleted` property implies listing | | `restore_recycle_item` | `libre.graph/driveItem/deleted/update` | the only `update` action is restore | | `purge_recycle` | `libre.graph/driveItem/deleted/delete` | allows purging deleted `driveItems` |
LibreGraphPermissionsActionsAllowedValues []string `json:"@libre.graph.permissions.actions.allowedValues,omitempty"`
Value []Permission `json:"value,omitempty"`
// A list of actions that can be chosen for a custom role. Following the CS3 API we can represent the CS3 permissions by mapping them to driveItem properties or relations like this: | [CS3 ResourcePermission](https://cs3org.github.io/cs3apis/#cs3.storage.provider.v1beta1.ResourcePermissions) | action | comment | | ------------------------------------------------------------------------------------------------------------ | ------ | ------- | | `stat` | `libre.graph/driveItem/basic/read` | `basic` because it does not include versions or trashed items | | `get_quota` | `libre.graph/driveItem/quota/read` | read only the `quota` property | | `get_path` | `libre.graph/driveItem/path/read` | read only the `path` property | | `move` | `libre.graph/driveItem/path/update` | allows updating the `path` property of a CS3 resource | | `delete` | `libre.graph/driveItem/standard/delete` | `standard` because deleting is a common update operation | | `list_container` | `libre.graph/driveItem/children/read` | | | `create_container` | `libre.graph/driveItem/children/create` | | | `initiate_file_download` | `libre.graph/driveItem/content/read` | `content` is the property read when initiating a download | | `initiate_file_upload` | `libre.graph/driveItem/upload/create` | `uploads` are a separate property. postprocessing creates the `content` | | `add_grant` | `libre.graph/driveItem/permissions/create` | | | `list_grant` | `libre.graph/driveItem/permissions/read` | | | `update_grant` | `libre.graph/driveItem/permissions/update` | | | `remove_grant` | `libre.graph/driveItem/permissions/delete` | | | `deny_grant` | `libre.graph/driveItem/permissions/deny` | uses a non CRUD action `deny` | | `list_file_versions` | `libre.graph/driveItem/versions/read` | `versions` is a `driveItemVersion` collection | | `restore_file_version` | `libre.graph/driveItem/versions/update` | the only `update` action is restore | | `list_recycle` | `libre.graph/driveItem/deleted/read` | reading a driveItem `deleted` property implies listing | | `restore_recycle_item` | `libre.graph/driveItem/deleted/update` | the only `update` action is restore | | `purge_recycle` | `libre.graph/driveItem/deleted/delete` | allows purging deleted `driveItems` |
LibreGraphPermissionsActionsAllowedValues []string `json:"@libre.graph.permissions.actions.allowedValues,omitempty"`
Value []Permission `json:"value,omitempty"`
}
// NewCollectionOfPermissionsWithAllowedValues instantiates a new CollectionOfPermissionsWithAllowedValues object
@@ -140,7 +140,7 @@ func (o *CollectionOfPermissionsWithAllowedValues) SetValue(v []Permission) {
}
func (o CollectionOfPermissionsWithAllowedValues) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -196,3 +196,5 @@ func (v *NullableCollectionOfPermissionsWithAllowedValues) UnmarshalJSON(src []b
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfSchools) SetValue(v []EducationSchool) {
}
func (o CollectionOfSchools) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfSchools) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfTags) SetValue(v []string) {
}
func (o CollectionOfTags) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfTags) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &CollectionOfUser{}
// CollectionOfUser struct for CollectionOfUser
type CollectionOfUser struct {
Value []User `json:"value,omitempty"`
Value []User `json:"value,omitempty"`
OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}
@@ -105,7 +105,7 @@ func (o *CollectionOfUser) SetOdataNextLink(v string) {
}
func (o CollectionOfUser) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -158,3 +158,5 @@ func (v *NullableCollectionOfUser) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *CollectionOfUsers) SetValue(v []User) {
}
func (o CollectionOfUsers) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableCollectionOfUsers) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -73,7 +73,7 @@ func (o *Deleted) SetState(v string) {
}
func (o Deleted) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -123,3 +123,5 @@ func (v *NullableDeleted) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,10 +11,10 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"fmt"
"time"
"bytes"
"fmt"
)
// checks if the Drive type satisfies the MappedNullable interface at compile time
@@ -23,31 +23,31 @@ var _ MappedNullable = &Drive{}
// Drive The drive represents a space on the storage.
type Drive struct {
// The unique identifier for this drive.
Id *string `json:"id,omitempty"`
Id *string `json:"id,omitempty"`
CreatedBy *IdentitySet `json:"createdBy,omitempty"`
// Date and time of item creation. Read-only.
CreatedDateTime *time.Time `json:"createdDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// Provides a user-visible description of the item. Optional.
Description *string `json:"description,omitempty"`
// ETag for the item. Read-only.
ETag *string `json:"eTag,omitempty"`
ETag *string `json:"eTag,omitempty"`
LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
// Date and time the item was last modified. Read-only.
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// The name of the item. Read-write.
Name string `json:"name"`
Name string `json:"name"`
ParentReference *ItemReference `json:"parentReference,omitempty"`
// URL that displays the resource in the browser. Read-only.
WebUrl *string `json:"webUrl,omitempty"`
// Describes the type of drive represented by this resource. Values are \"personal\" for users home spaces, \"project\", \"virtual\" or \"share\". Read-only.
DriveType *string `json:"driveType,omitempty"`
// The drive alias can be used in clients to make the urls user friendly. Example: 'personal/einstein'. This will be used to resolve to the correct driveID.
DriveAlias *string `json:"driveAlias,omitempty"`
Owner *IdentitySet `json:"owner,omitempty"`
Quota *Quota `json:"quota,omitempty"`
DriveAlias *string `json:"driveAlias,omitempty"`
Owner *IdentitySet `json:"owner,omitempty"`
Quota *Quota `json:"quota,omitempty"`
// All items contained in the drive. Read-only. Nullable.
Items []DriveItem `json:"items,omitempty"`
Root *DriveItem `json:"root,omitempty"`
Root *DriveItem `json:"root,omitempty"`
// A collection of special drive resources.
Special []DriveItem `json:"special,omitempty"`
}
@@ -609,7 +609,7 @@ func (o *Drive) SetSpecial(v []DriveItem) {
}
func (o Drive) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -683,10 +683,10 @@ func (o *Drive) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -742,3 +742,5 @@ func (v *NullableDrive) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,40 +21,40 @@ var _ MappedNullable = &DriveItem{}
// DriveItem Represents a resource inside a drive. Read-only.
type DriveItem struct {
// Read-only.
Id *string `json:"id,omitempty"`
Id *string `json:"id,omitempty"`
CreatedBy *IdentitySet `json:"createdBy,omitempty"`
// Date and time of item creation. Read-only.
CreatedDateTime *time.Time `json:"createdDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// Provides a user-visible description of the item. Optional.
Description *string `json:"description,omitempty"`
// ETag for the item. Read-only.
ETag *string `json:"eTag,omitempty"`
ETag *string `json:"eTag,omitempty"`
LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
// Date and time the item was last modified. Read-only.
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// The name of the item. Read-write.
Name *string `json:"name,omitempty"`
Name *string `json:"name,omitempty"`
ParentReference *ItemReference `json:"parentReference,omitempty"`
// URL that displays the resource in the browser. Read-only.
WebUrl *string `json:"webUrl,omitempty"`
// The content stream, if the item represents a file.
Content *string `json:"content,omitempty"`
// An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.
CTag *string `json:"cTag,omitempty"`
Deleted *Deleted `json:"deleted,omitempty"`
File *OpenGraphFile `json:"file,omitempty"`
CTag *string `json:"cTag,omitempty"`
Deleted *Deleted `json:"deleted,omitempty"`
File *OpenGraphFile `json:"file,omitempty"`
FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
Folder *Folder `json:"folder,omitempty"`
Image *Image `json:"image,omitempty"`
Photo *Photo `json:"photo,omitempty"`
Location *GeoCoordinates `json:"location,omitempty"`
Folder *Folder `json:"folder,omitempty"`
Image *Image `json:"image,omitempty"`
Photo *Photo `json:"photo,omitempty"`
Location *GeoCoordinates `json:"location,omitempty"`
// Collection containing ThumbnailSet objects associated with the item. Read-only. Nullable.
Thumbnails []ThumbnailSet `json:"thumbnails,omitempty"`
// If this property is non-null, it indicates that the driveItem is the top-most driveItem in the drive.
Root map[string]interface{} `json:"root,omitempty"`
Trash *Trash `json:"trash,omitempty"`
SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
RemoteItem *RemoteItem `json:"remoteItem,omitempty"`
Root map[string]interface{} `json:"root,omitempty"`
Trash *Trash `json:"trash,omitempty"`
SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
RemoteItem *RemoteItem `json:"remoteItem,omitempty"`
// Size of the item in bytes. Read-only.
Size *int64 `json:"size,omitempty"`
// WebDAV compatible URL for the item. Read-only.
@@ -63,8 +63,8 @@ type DriveItem struct {
Children []DriveItem `json:"children,omitempty"`
// The set of permissions for the item. Read-only. Nullable.
Permissions []Permission `json:"permissions,omitempty"`
Audio *Audio `json:"audio,omitempty"`
Video *Video `json:"video,omitempty"`
Audio *Audio `json:"audio,omitempty"`
Video *Video `json:"video,omitempty"`
// Indicates if the item is synchronized with the underlying storage provider. Read-only.
ClientSynchronize *bool `json:"@client.synchronize,omitempty"`
// Properties or facets (see UI.Facet) annotated with this term will not be rendered if the annotation evaluates to true. Users can set this to hide permissions.
@@ -1113,7 +1113,7 @@ func (o *DriveItem) SetUIHidden(v bool) {
}
func (o DriveItem) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1256,3 +1256,5 @@ func (v *NullableDriveItem) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -209,7 +209,7 @@ func (o *DriveItemCreateLink) SetLibreGraphQuickLink(v bool) {
}
func (o DriveItemCreateLink) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,3 +271,5 @@ func (v *NullableDriveItemCreateLink) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -176,7 +176,7 @@ func (o *DriveItemInvite) SetExpirationDateTime(v time.Time) {
}
func (o DriveItemInvite) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -235,3 +235,5 @@ func (v *NullableDriveItemInvite) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -17,7 +17,7 @@ import (
// checks if the DriveRecipient type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DriveRecipient{}
// DriveRecipient Represents a person, group, or other recipient to share a drive item with using the invite action. When using invite to add permissions, the `driveRecipient` object would specify the `email`, `alias`, or `objectId` of the recipient. Only one of these values is required; multiple values are not accepted.
// DriveRecipient Represents a person, group, or other recipient to share a drive item with using the invite action. When using invite to add permissions, the `driveRecipient` object would specify the `email`, `alias`, or `objectId` of the recipient. Only one of these values is required; multiple values are not accepted.
type DriveRecipient struct {
// The unique identifier for the recipient in the directory.
ObjectId *string `json:"objectId,omitempty"`
@@ -111,7 +111,7 @@ func (o *DriveRecipient) SetLibreGraphRecipientType(v string) {
}
func (o DriveRecipient) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,3 +164,5 @@ func (v *NullableDriveRecipient) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,31 +21,31 @@ var _ MappedNullable = &DriveUpdate{}
// DriveUpdate The drive represents an update to a space on the storage.
type DriveUpdate struct {
// The unique identifier for this drive.
Id *string `json:"id,omitempty"`
Id *string `json:"id,omitempty"`
CreatedBy *IdentitySet `json:"createdBy,omitempty"`
// Date and time of item creation. Read-only.
CreatedDateTime *time.Time `json:"createdDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// Provides a user-visible description of the item. Optional.
Description *string `json:"description,omitempty"`
// ETag for the item. Read-only.
ETag *string `json:"eTag,omitempty"`
ETag *string `json:"eTag,omitempty"`
LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
// Date and time the item was last modified. Read-only.
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?([Zz]|[+-][0-9][0-9]:[0-9][0-9])$"`
// The name of the item. Read-write.
Name *string `json:"name,omitempty"`
Name *string `json:"name,omitempty"`
ParentReference *ItemReference `json:"parentReference,omitempty"`
// URL that displays the resource in the browser. Read-only.
WebUrl *string `json:"webUrl,omitempty"`
// Describes the type of drive represented by this resource. Values are \"personal\" for users home spaces, \"project\", \"virtual\" or \"share\". Read-only.
DriveType *string `json:"driveType,omitempty"`
// The drive alias can be used in clients to make the urls user friendly. Example: 'personal/einstein'. This will be used to resolve to the correct driveID.
DriveAlias *string `json:"driveAlias,omitempty"`
Owner *IdentitySet `json:"owner,omitempty"`
Quota *Quota `json:"quota,omitempty"`
DriveAlias *string `json:"driveAlias,omitempty"`
Owner *IdentitySet `json:"owner,omitempty"`
Quota *Quota `json:"quota,omitempty"`
// All items contained in the drive. Read-only. Nullable.
Items []DriveItem `json:"items,omitempty"`
Root *DriveItem `json:"root,omitempty"`
Root *DriveItem `json:"root,omitempty"`
// A collection of special drive resources.
Special []DriveItem `json:"special,omitempty"`
}
@@ -612,7 +612,7 @@ func (o *DriveUpdate) SetSpecial(v []DriveItem) {
}
func (o DriveUpdate) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -710,3 +710,5 @@ func (v *NullableDriveUpdate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -267,7 +267,7 @@ func (o *EducationClass) SetExternalId(v string) {
}
func (o EducationClass) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,10 +310,10 @@ func (o *EducationClass) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -369,3 +369,5 @@ func (v *NullableEducationClass) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -175,7 +175,6 @@ func (o *EducationSchool) HasTerminationDate() bool {
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)
@@ -187,7 +186,7 @@ func (o *EducationSchool) UnsetTerminationDate() {
}
func (o EducationSchool) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -246,3 +245,5 @@ func (v *NullableEducationSchool) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -27,16 +27,16 @@ type EducationUser struct {
DisplayName *string `json:"displayName,omitempty"`
// A collection of drives available for this user. Read-only.
Drives []Drive `json:"drives,omitempty"`
Drive *Drive `json:"drive,omitempty"`
Drive *Drive `json:"drive,omitempty"`
// Identities associated with this account.
Identities []ObjectIdentity `json:"identities,omitempty"`
// The SMTP address for the user, for example, 'jeff@contoso.onowncloud.com'. Returned by default.
// The SMTP address for the user, for example, 'jeff@contoso.opencloud.com'. Returned by default.
Mail *string `json:"mail,omitempty"`
// Groups that this user is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand.
MemberOf []Group `json:"memberOf,omitempty"`
// Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only.
OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"`
PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"`
PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
// The user's surname (family name or last name). Returned by default.
Surname *string `json:"surname,omitempty"`
// The user's givenName. Returned by default.
@@ -513,7 +513,7 @@ func (o *EducationUser) SetUserType(v string) {
}
func (o EducationUser) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -602,3 +602,5 @@ func (v *NullableEducationUser) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *EducationUserReference) SetOdataId(v string) {
}
func (o EducationUserReference) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableEducationUserReference) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -73,7 +73,7 @@ func (o *ExportPersonalDataRequest) SetStorageLocation(v string) {
}
func (o ExportPersonalDataRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -123,3 +123,5 @@ func (v *NullableExportPersonalDataRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -142,7 +142,7 @@ func (o *FileSystemInfo) SetLastModifiedDateTime(v time.Time) {
}
func (o FileSystemInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -198,3 +198,5 @@ func (v *NullableFileSystemInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &Folder{}
// Folder Folder metadata, if the item is a folder. Read-only.
type Folder struct {
// Number of children contained immediately within this container.
ChildCount *int32 `json:"childCount,omitempty"`
View *FolderView `json:"view,omitempty"`
ChildCount *int32 `json:"childCount,omitempty"`
View *FolderView `json:"view,omitempty"`
}
// NewFolder instantiates a new Folder object
@@ -106,7 +106,7 @@ func (o *Folder) SetView(v FolderView) {
}
func (o Folder) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -159,3 +159,5 @@ func (v *NullableFolder) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -141,7 +141,7 @@ func (o *FolderView) SetViewType(v string) {
}
func (o FolderView) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -197,3 +197,5 @@ func (v *NullableFolderView) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -17,7 +17,7 @@ import (
// checks if the GeoCoordinates type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GeoCoordinates{}
// GeoCoordinates The GeoCoordinates resource provides geographic coordinates and elevation of a location based on metadata contained within the file. If a DriveItem has a non-null location facet, the item represents a file with a known location associated with it.
// GeoCoordinates The GeoCoordinates resource provides geographic coordinates and elevation of a location based on metadata contained within the file. If a DriveItem has a non-null location facet, the item represents a file with a known location associated with it.
type GeoCoordinates struct {
// The altitude (height), in feet, above sea level for the item. Read-only.
Altitude *float64 `json:"altitude,omitempty"`
@@ -141,7 +141,7 @@ func (o *GeoCoordinates) SetLongitude(v float64) {
}
func (o GeoCoordinates) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -197,3 +197,5 @@ func (v *NullableGeoCoordinates) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -243,7 +243,7 @@ func (o *Group) SetMembersodataBind(v []string) {
}
func (o Group) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -308,3 +308,5 @@ func (v *NullableGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -175,7 +175,7 @@ func (o *Hashes) SetSha256Hash(v string) {
}
func (o Hashes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -234,3 +234,5 @@ func (v *NullableHashes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -138,7 +138,7 @@ func (o *Identity) SetLibreGraphUserType(v string) {
}
func (o Identity) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -170,10 +170,10 @@ func (o *Identity) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -229,3 +229,5 @@ func (v *NullableIdentity) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &IdentitySet{}
// IdentitySet Optional. User account.
type IdentitySet struct {
Application *Identity `json:"application,omitempty"`
Device *Identity `json:"device,omitempty"`
User *Identity `json:"user,omitempty"`
Group *Identity `json:"group,omitempty"`
Device *Identity `json:"device,omitempty"`
User *Identity `json:"user,omitempty"`
Group *Identity `json:"group,omitempty"`
}
// NewIdentitySet instantiates a new IdentitySet object
@@ -171,7 +171,7 @@ func (o *IdentitySet) SetGroup(v Identity) {
}
func (o IdentitySet) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -230,3 +230,5 @@ func (v *NullableIdentitySet) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -107,7 +107,7 @@ func (o *Image) SetWidth(v int32) {
}
func (o Image) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -160,3 +160,5 @@ func (v *NullableImage) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -209,7 +209,7 @@ func (o *ItemReference) SetPath(v string) {
}
func (o ItemReference) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,3 +271,5 @@ func (v *NullableItemReference) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -72,7 +72,7 @@ func (o *MemberReference) SetOdataId(v string) {
}
func (o MemberReference) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableMemberReference) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -107,7 +107,7 @@ func (o *ObjectIdentity) SetIssuerAssignedId(v string) {
}
func (o ObjectIdentity) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -160,3 +160,5 @@ func (v *NullableObjectIdentity) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -69,7 +69,7 @@ func (o *OdataError) SetError(v OdataErrorMain) {
}
func (o OdataError) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -95,10 +95,10 @@ func (o *OdataError) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -154,3 +154,5 @@ func (v *NullableOdataError) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -21,9 +21,9 @@ var _ MappedNullable = &OdataErrorDetail{}
// OdataErrorDetail struct for OdataErrorDetail
type OdataErrorDetail struct {
Code string `json:"code"`
Message string `json:"message"`
Target *string `json:"target,omitempty"`
Code string `json:"code"`
Message string `json:"message"`
Target *string `json:"target,omitempty"`
}
type _OdataErrorDetail OdataErrorDetail
@@ -128,7 +128,7 @@ func (o *OdataErrorDetail) SetTarget(v string) {
}
func (o OdataErrorDetail) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -159,10 +159,10 @@ func (o *OdataErrorDetail) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -218,3 +218,5 @@ func (v *NullableOdataErrorDetail) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -21,9 +21,9 @@ var _ MappedNullable = &OdataErrorMain{}
// OdataErrorMain struct for OdataErrorMain
type OdataErrorMain struct {
Code string `json:"code"`
Message string `json:"message"`
Target *string `json:"target,omitempty"`
Code string `json:"code"`
Message string `json:"message"`
Target *string `json:"target,omitempty"`
Details []OdataErrorDetail `json:"details,omitempty"`
// The structure of this object is service-specific
Innererror map[string]interface{} `json:"innererror,omitempty"`
@@ -195,7 +195,7 @@ func (o *OdataErrorMain) SetInnererror(v map[string]interface{}) {
}
func (o OdataErrorMain) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -232,10 +232,10 @@ func (o *OdataErrorMain) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -291,3 +291,5 @@ func (v *NullableOdataErrorMain) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ var _ MappedNullable = &OpenGraphFile{}
type OpenGraphFile struct {
Hashes *Hashes `json:"hashes,omitempty"`
// The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded. Read-only.
MimeType *string `json:"mimeType,omitempty"`
ProcessingMetadata *bool `json:"processingMetadata,omitempty"`
MimeType *string `json:"mimeType,omitempty"`
ProcessingMetadata *bool `json:"processingMetadata,omitempty"`
}
// NewOpenGraphFile instantiates a new OpenGraphFile object
@@ -139,7 +139,7 @@ func (o *OpenGraphFile) SetProcessingMetadata(v bool) {
}
func (o OpenGraphFile) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -195,3 +195,5 @@ func (v *NullableOpenGraphFile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -11,8 +11,8 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"bytes"
"fmt"
)
@@ -22,7 +22,7 @@ var _ MappedNullable = &PasswordChange{}
// PasswordChange struct for PasswordChange
type PasswordChange struct {
CurrentPassword string `json:"currentPassword"`
NewPassword string `json:"newPassword"`
NewPassword string `json:"newPassword"`
}
type _PasswordChange PasswordChange
@@ -95,7 +95,7 @@ func (o *PasswordChange) SetNewPassword(v string) {
}
func (o PasswordChange) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -123,10 +123,10 @@ func (o *PasswordChange) UnmarshalJSON(data []byte) (err error) {
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
return err;
}
for _, requiredProperty := range requiredProperties {
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
@@ -182,3 +182,5 @@ func (v *NullablePasswordChange) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -111,7 +111,7 @@ func (o *PasswordProfile) SetPassword(v string) {
}
func (o PasswordProfile) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,3 +164,5 @@ func (v *NullablePasswordProfile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,25 +18,25 @@ import (
// checks if the Permission type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Permission{}
// Permission The Permission resource provides information about a sharing permission granted for a DriveItem resource. ### Remarks The Permission resource uses *facets* to provide information about the kind of permission represented by the resource. Permissions with a `link` facet represent sharing links created on the item. Sharing links contain a unique token that provides access to the item for anyone with the link. Permissions with a `invitation` facet represent permissions added by inviting specific users or groups to have access to the file.
// Permission The Permission resource provides information about a sharing permission granted for a DriveItem resource. ### Remarks The Permission resource uses *facets* to provide information about the kind of permission represented by the resource. Permissions with a `link` facet represent sharing links created on the item. Sharing links contain a unique token that provides access to the item for anyone with the link. Permissions with a `invitation` facet represent permissions added by inviting specific users or groups to have access to the file.
type Permission struct {
// The unique identifier of the permission among all permissions on the item. Read-only.
Id *string `json:"id,omitempty"`
// Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only.
// Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only.
HasPassword *bool `json:"hasPassword,omitempty"`
// An optional expiration date which limits the permission in time.
ExpirationDateTime NullableTime `json:"expirationDateTime,omitempty"`
// An optional creation date. Libregraph only.
CreatedDateTime NullableTime `json:"createdDateTime,omitempty"`
GrantedToV2 *SharePointIdentitySet `json:"grantedToV2,omitempty"`
Link *SharingLink `json:"link,omitempty"`
Roles []string `json:"roles,omitempty"`
CreatedDateTime NullableTime `json:"createdDateTime,omitempty"`
GrantedToV2 *SharePointIdentitySet `json:"grantedToV2,omitempty"`
Link *SharingLink `json:"link,omitempty"`
Roles []string `json:"roles,omitempty"`
// For link type permissions, the details of the identity to whom permission was granted. This could be used to grant access to a an external user that can be identified by email, aka guest accounts.
// Deprecated
GrantedToIdentities []IdentitySet `json:"grantedToIdentities,omitempty"`
// Use this to create a permission with custom actions.
LibreGraphPermissionsActions []string `json:"@libre.graph.permissions.actions,omitempty"`
Invitation *SharingInvitation `json:"invitation,omitempty"`
LibreGraphPermissionsActions []string `json:"@libre.graph.permissions.actions,omitempty"`
Invitation *SharingInvitation `json:"invitation,omitempty"`
}
// NewPermission instantiates a new Permission object
@@ -152,7 +152,6 @@ func (o *Permission) HasExpirationDateTime() bool {
func (o *Permission) SetExpirationDateTime(v time.Time) {
o.ExpirationDateTime.Set(&v)
}
// SetExpirationDateTimeNil sets the value for ExpirationDateTime to be an explicit nil
func (o *Permission) SetExpirationDateTimeNil() {
o.ExpirationDateTime.Set(nil)
@@ -195,7 +194,6 @@ func (o *Permission) HasCreatedDateTime() bool {
func (o *Permission) SetCreatedDateTime(v time.Time) {
o.CreatedDateTime.Set(&v)
}
// SetCreatedDateTimeNil sets the value for CreatedDateTime to be an explicit nil
func (o *Permission) SetCreatedDateTimeNil() {
o.CreatedDateTime.Set(nil)
@@ -402,7 +400,7 @@ func (o *Permission) SetInvitation(v SharingInvitation) {
}
func (o Permission) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -479,3 +477,5 @@ func (v *NullablePermission) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,7 +18,7 @@ import (
// checks if the Photo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Photo{}
// Photo The photo resource provides photo and camera properties, for example, EXIF metadata, on a driveItem.
// Photo The photo resource provides photo and camera properties, for example, EXIF metadata, on a driveItem.
type Photo struct {
// Camera manufacturer. Read-only.
CameraMake *string `json:"cameraMake,omitempty"`
@@ -346,7 +346,7 @@ func (o *Photo) SetTakenDateTime(v time.Time) {
}
func (o Photo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -420,3 +420,5 @@ func (v *NullablePhoto) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -209,7 +209,7 @@ func (o *Quota) SetUsed(v int64) {
}
func (o Quota) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,3 +271,5 @@ func (v *NullableQuota) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,10 +22,10 @@ var _ MappedNullable = &RemoteItem{}
type RemoteItem struct {
CreatedBy *IdentitySet `json:"createdBy,omitempty"`
// Date and time of item creation. Read-only.
CreatedDateTime *time.Time `json:"createdDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$"`
File *OpenGraphFile `json:"file,omitempty"`
FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
Folder *Folder `json:"folder,omitempty"`
CreatedDateTime *time.Time `json:"createdDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$"`
File *OpenGraphFile `json:"file,omitempty"`
FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
Folder *Folder `json:"folder,omitempty"`
// The drive alias can be used in clients to make the urls user friendly. Example: 'personal/einstein'. This will be used to resolve to the correct driveID.
DriveAlias *string `json:"driveAlias,omitempty"`
// The relative path of the item in relation to its drive root.
@@ -33,8 +33,8 @@ type RemoteItem struct {
// Unique identifier for the drive root of this item. Read-only.
RootId *string `json:"rootId,omitempty"`
// Unique identifier for the remote item in its drive. Read-only.
Id *string `json:"id,omitempty"`
Image *Image `json:"image,omitempty"`
Id *string `json:"id,omitempty"`
Image *Image `json:"image,omitempty"`
LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
// Date and time the item was last modified. Read-only.
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$"`
@@ -43,12 +43,12 @@ type RemoteItem struct {
// ETag for the item. Read-only.
ETag *string `json:"eTag,omitempty"`
// An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.
CTag *string `json:"cTag,omitempty"`
CTag *string `json:"cTag,omitempty"`
ParentReference *ItemReference `json:"parentReference,omitempty"`
// The set of permissions for the item. Read-only. Nullable.
Permissions []Permission `json:"permissions,omitempty"`
// Size of the remote item. Read-only.
Size *int64 `json:"size,omitempty"`
Size *int64 `json:"size,omitempty"`
SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
// DAV compatible URL for the item.
WebDavUrl *string `json:"webDavUrl,omitempty"`
@@ -746,7 +746,7 @@ func (o *RemoteItem) SetWebUrl(v string) {
}
func (o RemoteItem) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -856,3 +856,5 @@ func (v *NullableRemoteItem) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &SharePointIdentitySet{}
// SharePointIdentitySet This resource is used to represent a set of identities associated with various events for an item, such as created by or last modified by.
type SharePointIdentitySet struct {
User *Identity `json:"user,omitempty"`
User *Identity `json:"user,omitempty"`
Group *Identity `json:"group,omitempty"`
}
@@ -105,7 +105,7 @@ func (o *SharePointIdentitySet) SetGroup(v Identity) {
}
func (o SharePointIdentitySet) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -158,3 +158,5 @@ func (v *NullableSharePointIdentitySet) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -17,7 +17,7 @@ import (
// checks if the SharingInvitation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SharingInvitation{}
// SharingInvitation invitation-related data items
// SharingInvitation invitation-related data items
type SharingInvitation struct {
InvitedBy *IdentitySet `json:"invitedBy,omitempty"`
}
@@ -72,7 +72,7 @@ func (o *SharingInvitation) SetInvitedBy(v IdentitySet) {
}
func (o SharingInvitation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -122,3 +122,5 @@ func (v *NullableSharingInvitation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -17,7 +17,7 @@ import (
// checks if the SharingLink type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SharingLink{}
// SharingLink The `SharingLink` resource groups link-related data items into a single structure. If a `permission` resource has a non-null `sharingLink` facet, the permission represents a sharing link (as opposed to permissions granted to a person or group).
// SharingLink The `SharingLink` resource groups link-related data items into a single structure. If a `permission` resource has a non-null `sharingLink` facet, the permission represents a sharing link (as opposed to permissions granted to a person or group).
type SharingLink struct {
Type *SharingLinkType `json:"type,omitempty"`
// If `true` then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item.
@@ -208,7 +208,7 @@ func (o *SharingLink) SetLibreGraphQuickLink(v bool) {
}
func (o SharingLink) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -270,3 +270,5 @@ func (v *NullableSharingLink) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -17,7 +17,7 @@ import (
// checks if the SharingLinkPassword type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SharingLinkPassword{}
// SharingLinkPassword The sharing link password which should be set.
// SharingLinkPassword The sharing link password which should be set.
type SharingLinkPassword struct {
// Password. It may require a password policy.
Password *string `json:"password,omitempty"`
@@ -73,7 +73,7 @@ func (o *SharingLinkPassword) SetPassword(v string) {
}
func (o SharingLinkPassword) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -123,3 +123,5 @@ func (v *NullableSharingLinkPassword) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,16 +15,16 @@ import (
"fmt"
)
// SharingLinkType The type of the link created. | Value | Display name | Description | | -------------- | ----------------- | --------------------------------------------------------------- | | internal | Internal | Creates an internal link without any permissions. | | view | View | Creates a read-only link to the driveItem. | | upload | Upload | Creates a read-write link to the folder driveItem. | | edit | Edit | Creates a read-write link to the driveItem. | | createOnly | File Drop | Creates an upload-only link to the folder driveItem. | | blocksDownload | Secure View | Creates a read-only link that blocks download to the driveItem. |
// SharingLinkType The type of the link created. | Value | Display name | Description | | -------------- | ----------------- | --------------------------------------------------------------- | | internal | Internal | Creates an internal link without any permissions. | | view | View | Creates a read-only link to the driveItem. | | upload | Upload | Creates a read-write link to the folder driveItem. | | edit | Edit | Creates a read-write link to the driveItem. | | createOnly | File Drop | Creates an upload-only link to the folder driveItem. | | blocksDownload | Secure View | Creates a read-only link that blocks download to the driveItem. |
type SharingLinkType string
// List of sharingLinkType
const (
INTERNAL SharingLinkType = "internal"
VIEW SharingLinkType = "view"
UPLOAD SharingLinkType = "upload"
EDIT SharingLinkType = "edit"
CREATE_ONLY SharingLinkType = "createOnly"
INTERNAL SharingLinkType = "internal"
VIEW SharingLinkType = "view"
UPLOAD SharingLinkType = "upload"
EDIT SharingLinkType = "edit"
CREATE_ONLY SharingLinkType = "createOnly"
BLOCKS_DOWNLOAD SharingLinkType = "blocksDownload"
)
@@ -116,3 +116,4 @@ func (v *NullableSharingLinkType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -74,7 +74,7 @@ func (o *SignInActivity) SetLastSuccessfulSignInDateTime(v time.Time) {
}
func (o SignInActivity) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -124,3 +124,5 @@ func (v *NullableSignInActivity) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
@@ -3,7 +3,7 @@ Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
API version: v1.0.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -73,7 +73,7 @@ func (o *SpecialFolder) SetName(v string) {
}
func (o SpecialFolder) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -123,3 +123,5 @@ func (v *NullableSpecialFolder) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

Some files were not shown because too many files have changed in this diff Show More