api

package
v0.2404.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {

	// API Services
	TasksApi *TasksApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Aspose.Tasks Cloud API Reference API v3.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *models.Configuration) (client *APIClient, err error)

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

func (*APIClient) NewContextWithToken

func (c *APIClient) NewContextWithToken(ctx context.Context) (ctxWithToken context.Context, err error)

create context with token

type FormParamContainer

type FormParamContainer struct {
	// contains filtered or unexported fields
}

func NewFileFormParamContainer

func NewFileFormParamContainer(name string, file []byte) (result FormParamContainer)

type TasksApiErrorResponse

type TasksApiErrorResponse struct {
	// Response for Api error.
	RequestId string `json:"RequestId,omitempty"`

	// Response for Api error.
	Error_ *models.ModelError `json:"Error,omitempty"`
}

TasksApiErrorResponse Provides access to error body and request id on returned errors.

func (TasksApiErrorResponse) Error

func (e TasksApiErrorResponse) Error() string

Error returns non-empty string if there was an error.

type TasksApiService

type TasksApiService service

func CreateTasksApi

func CreateTasksApi(config *models.Configuration) (tasksApi *TasksApiService, ctxWithToken context.Context, err error)

func (*TasksApiService) CopyFile

func (a *TasksApiService) CopyFile(ctx context.Context, localVarOptionals *requests.CopyFileOpts) (*http.Response, error)

TasksApiService Copy file

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.CopyFileOpts - Request parameters:
  • @param "SrcPath" (string) - Source file path e.g. '/folder/file.ext'
  • @param "DestPath" (string) - Destination file path
  • @param "SrcStorageName" (optional.String) - Source storage name
  • @param "DestStorageName" (optional.String) - Destination storage name
  • @param "VersionId" (optional.String) - File version ID to copy

func (*TasksApiService) CopyFolder

func (a *TasksApiService) CopyFolder(ctx context.Context, localVarOptionals *requests.CopyFolderOpts) (*http.Response, error)

TasksApiService Copy folder

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.CopyFolderOpts - Request parameters:
  • @param "SrcPath" (string) - Source folder path e.g. '/src'
  • @param "DestPath" (string) - Destination folder path e.g. '/dst'
  • @param "SrcStorageName" (optional.String) - Source storage name
  • @param "DestStorageName" (optional.String) - Destination storage name

func (*TasksApiService) CreateFolder

func (a *TasksApiService) CreateFolder(ctx context.Context, localVarOptionals *requests.CreateFolderOpts) (*http.Response, error)

TasksApiService Create the folder

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.CreateFolderOpts - Request parameters:
  • @param "Path" (string) - Folder path to create e.g. 'folder_1/folder_2/'
  • @param "StorageName" (optional.String) - Storage name

func (*TasksApiService) CreateNewProject

func (a *TasksApiService) CreateNewProject(ctx context.Context, localVarOptionals *requests.CreateNewProjectOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Creates new project in Project Server\\Project Online instance.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.CreateNewProjectOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "SiteUrl" (string) - The URL of PWA (Project Web Access) API of Project Online.
  • @param "UserName" (optional.String) - The user name for the sharepoint site.
  • @param "SaveOptions" (optional.Interface of ProjectServerSaveOptionsDto) - Dispensable save options for Project Server\\Project Online.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.
  • @param "XProjectOnlineToken" (optional.String) - Authorization token (SPOIDCRL) for SharePoint's PWA (Project Web Access). For example, in c# it can be retrieved using SharePointOnlineCredentials class from Microsoft.SharePoint.Client.Runtime assembly
  • @param "XSharepointPassword" (optional.String) - The password for the SharePoint site.

@return models.AsposeResponse

func (*TasksApiService) CreateTableTextStyle added in v0.2404.0

func (a *TasksApiService) CreateTableTextStyle(ctx context.Context, localVarOptionals *requests.CreateTableTextStyleOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Create table text style in specified view.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.CreateTableTextStyleOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ViewUid" (int32) - Uid of the view.
  • @param "TableTextStyle" (TableTextStyle) - A DTO of TableTextStyle to create
  • @param "FileName" (optional.String) - File name to save changes to.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) DeleteAssignment

func (a *TasksApiService) DeleteAssignment(ctx context.Context, localVarOptionals *requests.DeleteAssignmentOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Deletes a project assignment with all references to it.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteAssignmentOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "AssignmentUid" (int32) - assignment Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.AsposeResponse

func (*TasksApiService) DeleteCalendar

func (a *TasksApiService) DeleteCalendar(ctx context.Context, localVarOptionals *requests.DeleteCalendarOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Deletes a project calendar

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteCalendarOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar's Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.AsposeResponse

func (*TasksApiService) DeleteCalendarException

func (a *TasksApiService) DeleteCalendarException(ctx context.Context, localVarOptionals *requests.DeleteCalendarExceptionOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Deletes calendar exception from calendar exceptions collection.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteCalendarExceptionOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar Uid
  • @param "Index" (int32) - Index of the calendar exception. See CalendarException.Index property.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) DeleteExtendedAttributeByIndex

func (a *TasksApiService) DeleteExtendedAttributeByIndex(ctx context.Context, localVarOptionals *requests.DeleteExtendedAttributeByIndexOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Delete a project extended attribute.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteExtendedAttributeByIndexOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Index" (int32) - Index (See ExtendedAttributeItem.Index property) or FieldId of the extended attribute.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) DeleteFile

func (a *TasksApiService) DeleteFile(ctx context.Context, localVarOptionals *requests.DeleteFileOpts) (*http.Response, error)

TasksApiService Delete file

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteFileOpts - Request parameters:
  • @param "Path" (string) - File path e.g. '/folder/file.ext'
  • @param "StorageName" (optional.String) - Storage name
  • @param "VersionId" (optional.String) - File version ID to delete

func (*TasksApiService) DeleteFolder

func (a *TasksApiService) DeleteFolder(ctx context.Context, localVarOptionals *requests.DeleteFolderOpts) (*http.Response, error)

TasksApiService Delete folder

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteFolderOpts - Request parameters:
  • @param "Path" (string) - Folder path e.g. '/folder'
  • @param "StorageName" (optional.String) - Storage name
  • @param "Recursive" (optional.Bool) - Enable to delete folders, subfolders and files

func (*TasksApiService) DeleteOutlineCodeByIndex

func (a *TasksApiService) DeleteOutlineCodeByIndex(ctx context.Context, localVarOptionals *requests.DeleteOutlineCodeByIndexOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Deletes a project outline code

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteOutlineCodeByIndexOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Index" (int32) - Index of the outline code. See OutlineCodeItem.Index property.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) DeleteResource

func (a *TasksApiService) DeleteResource(ctx context.Context, localVarOptionals *requests.DeleteResourceOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Deletes a project resource with all references to it

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteResourceOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ResourceUid" (int32) - Resource Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.AsposeResponse

func (*TasksApiService) DeleteTableTextStyle added in v0.2404.0

func (a *TasksApiService) DeleteTableTextStyle(ctx context.Context, localVarOptionals *requests.DeleteTableTextStyleOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Delete specified table text style from specified view.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteTableTextStyleOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ViewUid" (int32) - Uid of the view.
  • @param "RowUid" (int32) - Uid of the row.
  • @param "Field" (optional.String) - Specifies exact field of the row
  • @param "FileName" (optional.String) - File name to save changes to.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) DeleteTask

func (a *TasksApiService) DeleteTask(ctx context.Context, localVarOptionals *requests.DeleteTaskOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Deletes a project task with all references to it and rebuilds tasks tree.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteTaskOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.AsposeResponse

func (a *TasksApiService) DeleteTaskLink(ctx context.Context, localVarOptionals *requests.DeleteTaskLinkOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Delete task link.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DeleteTaskLinkOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Index" (int32) - Index of the task link object. See TaskLink.Index property.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.AsposeResponse

func (*TasksApiService) DownloadFile

func (a *TasksApiService) DownloadFile(ctx context.Context, localVarOptionals *requests.DownloadFileOpts) ([]byte, *http.Response, error)

TasksApiService Download file

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.DownloadFileOpts - Request parameters:
  • @param "Path" (string) - File path e.g. '/folder/file.ext'
  • @param "StorageName" (optional.String) - Storage name
  • @param "VersionId" (optional.String) - File version ID to download

@return []byte

func (*TasksApiService) GetAllTableTextStyles added in v0.2404.0

func (a *TasksApiService) GetAllTableTextStyles(ctx context.Context, localVarOptionals *requests.GetAllTableTextStylesOpts) (models.TableTextStylesResponse, *http.Response, error)

TasksApiService Read all table text styles from specified view.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetAllTableTextStylesOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ViewUid" (int32) - Uid of the view.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TableTextStylesResponse

func (*TasksApiService) GetAssignment

func (a *TasksApiService) GetAssignment(ctx context.Context, localVarOptionals *requests.GetAssignmentOpts) (models.AssignmentResponse, *http.Response, error)

TasksApiService Read project assignment with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetAssignmentOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "AssignmentUid" (int32) - Assignment Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AssignmentResponse

func (*TasksApiService) GetAssignmentTimephasedData

func (a *TasksApiService) GetAssignmentTimephasedData(ctx context.Context, localVarOptionals *requests.GetAssignmentTimephasedDataOpts) (models.TimephasedDataResponse, *http.Response, error)

TasksApiService Get timescaled data for an assignment with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetAssignmentTimephasedDataOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "AssignmentUid" (int32) - Uid of assignment to get timephased data for.
  • @param "Type_" (optional.String) - Type of timephased data to get.
  • @param "StartDate" (*custom.TimeWithoutTZ) - Start date.
  • @param "EndDate" (*custom.TimeWithoutTZ) - End date.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.

@return models.TimephasedDataResponse

func (*TasksApiService) GetAssignments

TasksApiService Get project's assignment items.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetAssignmentsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AssignmentItemsResponse

func (*TasksApiService) GetCalendar

func (a *TasksApiService) GetCalendar(ctx context.Context, localVarOptionals *requests.GetCalendarOpts) (models.CalendarResponse, *http.Response, error)

TasksApiService Get a project's calendar with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetCalendarOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar's Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.CalendarResponse

func (*TasksApiService) GetCalendarExceptions

TasksApiService Get a list of calendar's exceptions.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetCalendarExceptionsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar's Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.CalendarExceptionsResponse

func (*TasksApiService) GetCalendarWorkWeeks

TasksApiService Gets the collection of work weeks of the specified calendar.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetCalendarWorkWeeksOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.CalendarWorkWeeksResponse

func (*TasksApiService) GetCalendars

TasksApiService Read project calendar items.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetCalendarsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.CalendarItemsResponse

func (*TasksApiService) GetCriticalPath

func (a *TasksApiService) GetCriticalPath(ctx context.Context, localVarOptionals *requests.GetCriticalPathOpts) (models.TaskItemsResponse, *http.Response, error)

TasksApiService Returns the list of the tasks which must be completed on time for a project to finish on schedule. Each task of the project is represented as a task item here, which is light-weighted task representation of the project task..

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetCriticalPathOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskItemsResponse

func (*TasksApiService) GetDiscUsage

func (a *TasksApiService) GetDiscUsage(ctx context.Context, localVarOptionals *requests.GetDiscUsageOpts) (models.DiscUsage, *http.Response, error)

TasksApiService Get disc usage

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetDiscUsageOpts - Request parameters:
  • @param "StorageName" (optional.String) - Storage name

@return models.DiscUsage

func (*TasksApiService) GetDocumentProperties

TasksApiService Get a collection of a project's document properties.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetDocumentPropertiesOpts - Request parameters:
  • @param "Name" (string) - The document name.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.DocumentPropertiesResponse

func (*TasksApiService) GetDocumentProperty

TasksApiService Get a document property by name.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetDocumentPropertyOpts - Request parameters:
  • @param "Name" (string) - The document name.
  • @param "PropertyName" (string) - The property name.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.DocumentPropertyResponse

func (*TasksApiService) GetExtendedAttributeByIndex

func (a *TasksApiService) GetExtendedAttributeByIndex(ctx context.Context, localVarOptionals *requests.GetExtendedAttributeByIndexOpts) (models.ExtendedAttributeResponse, *http.Response, error)

TasksApiService Get a project extended attribute definition with the specified index.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetExtendedAttributeByIndexOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Index" (int32) - Index (See ExtendedAttributeItem.Index property) or FieldId of the extended attribute.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ExtendedAttributeResponse

func (*TasksApiService) GetExtendedAttributes

TasksApiService Get a project's extended attributes.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetExtendedAttributesOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ExtendedAttributeItemsResponse

func (*TasksApiService) GetFileVersions

func (a *TasksApiService) GetFileVersions(ctx context.Context, localVarOptionals *requests.GetFileVersionsOpts) (models.FileVersions, *http.Response, error)

TasksApiService Get file versions

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetFileVersionsOpts - Request parameters:
  • @param "Path" (string) - File path e.g. '/file.ext'
  • @param "StorageName" (optional.String) - Storage name

@return models.FileVersions

func (*TasksApiService) GetFilesList

func (a *TasksApiService) GetFilesList(ctx context.Context, localVarOptionals *requests.GetFilesListOpts) (models.FilesList, *http.Response, error)

TasksApiService Get all files and folders within a folder

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetFilesListOpts - Request parameters:
  • @param "Path" (string) - Folder path e.g. '/folder'
  • @param "StorageName" (optional.String) - Storage name

@return models.FilesList

func (*TasksApiService) GetOutlineCodeByIndex

func (a *TasksApiService) GetOutlineCodeByIndex(ctx context.Context, localVarOptionals *requests.GetOutlineCodeByIndexOpts) (models.OutlineCodeResponse, *http.Response, error)

TasksApiService Get outline code by index.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetOutlineCodeByIndexOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Index" (int32) - Index of the outline code. See OutlineCodeItem.Index property.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.OutlineCodeResponse

func (*TasksApiService) GetOutlineCodes

TasksApiService Get a project's outline codes.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetOutlineCodesOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.OutlineCodeItemsResponse

func (*TasksApiService) GetPageCount

func (a *TasksApiService) GetPageCount(ctx context.Context, localVarOptionals *requests.GetPageCountOpts) (models.PageCountResponse, *http.Response, error)

TasksApiService Returns page count for the project to be rendered using given Timescale and PresentationFormat or specified PageSize.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetPageCountOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "PageSize" (optional.String) - PageSize to get page count for.
  • @param "PresentationFormat" (optional.String) - PresentationFormat to get page count for.
  • @param "Timescale" (optional.String) - Timescale to get page count for.
  • @param "StartDate" (*custom.TimeWithoutTZ) - Start date to get page count for.
  • @param "EndDate" (*custom.TimeWithoutTZ) - End date to get page count for.
  • @param "Folder" (optional.String) - The document folder
  • @param "Storage" (optional.String) - The document storage.

@return models.PageCountResponse

func (*TasksApiService) GetPrimaveraTaskProperties added in v0.2212.0

TasksApiService Get primavera properties for a task with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetPrimaveraTaskPropertiesOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Uid of task to get primavera properties for.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.

@return models.PrimaveraTaskPropertiesResponse

func (*TasksApiService) GetProjectIds

func (a *TasksApiService) GetProjectIds(ctx context.Context, localVarOptionals *requests.GetProjectIdsOpts) (models.ProjectIdsResponse, *http.Response, error)

TasksApiService Get Uids of projects contained in the file.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetProjectIdsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ProjectIdsResponse

func (*TasksApiService) GetProjectList

func (a *TasksApiService) GetProjectList(ctx context.Context, localVarOptionals *requests.GetProjectListOpts) (models.ProjectListResponse, *http.Response, error)

TasksApiService Gets the list of published projects in the current Project Online account.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetProjectListOpts - Request parameters:
  • @param "SiteUrl" (string) - The URL of PWA (Project Web Access) API of Project Online.
  • @param "UserName" (optional.String) - The user name for the sharepoint site.
  • @param "XProjectOnlineToken" (optional.String) - Authorization token (SPOIDCRL) for SharePoint's PWA (Project Web Access). For example, in c# it can be retrieved using SharePointOnlineCredentials class from Microsoft.SharePoint.Client.Runtime assembly
  • @param "XSharepointPassword" (optional.String) - The password for the SharePoint site.

@return models.ProjectListResponse

func (*TasksApiService) GetReportPdf

func (a *TasksApiService) GetReportPdf(ctx context.Context, localVarOptionals *requests.GetReportPdfOpts) ([]byte, *http.Response, error)

TasksApiService Returns created report in PDF format.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetReportPdfOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Type_" (string) - A type of the project's graphical report.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return []byte

func (*TasksApiService) GetResource

func (a *TasksApiService) GetResource(ctx context.Context, localVarOptionals *requests.GetResourceOpts) (models.ResourceResponse, *http.Response, error)

TasksApiService Get project resource.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetResourceOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ResourceUid" (int32) - Resource Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ResourceResponse

func (*TasksApiService) GetResourceAssignments

func (a *TasksApiService) GetResourceAssignments(ctx context.Context, localVarOptionals *requests.GetResourceAssignmentsOpts) (models.AssignmentsResponse, *http.Response, error)

TasksApiService Get resource's assignments.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetResourceAssignmentsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ResourceUid" (int32) - Resource Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AssignmentsResponse

func (*TasksApiService) GetResourceTimephasedData

func (a *TasksApiService) GetResourceTimephasedData(ctx context.Context, localVarOptionals *requests.GetResourceTimephasedDataOpts) (models.TimephasedDataResponse, *http.Response, error)

TasksApiService Get timescaled data for a resource with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetResourceTimephasedDataOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ResourceUid" (int32) - Uid of resource to get timephased data for.
  • @param "Type_" (optional.String) - Type of timephased data to get.
  • @param "StartDate" (*custom.TimeWithoutTZ) - Start date.
  • @param "EndDate" (*custom.TimeWithoutTZ) - End date.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.

@return models.TimephasedDataResponse

func (*TasksApiService) GetResources

TasksApiService Get a project's resources.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetResourcesOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ResourceItemsResponse

func (*TasksApiService) GetRiskAnalysisReport

func (a *TasksApiService) GetRiskAnalysisReport(ctx context.Context, localVarOptionals *requests.GetRiskAnalysisReportOpts) ([]byte, *http.Response, error)

TasksApiService Performs a risk analysys using Monte Carlo simulation and creates a risk analysis report.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetRiskAnalysisReportOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - The uid of the task for which this risk will be applied in Monte Carlo simulation.
  • @param "DistributionType" (optional.String) - Gets or sets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDistributionType.Normal.
  • @param "Optimistic" (optional.Int32) - The percentage of the most likely task duration which can happen in the best possible project scenario. The default value is 75, which means that if the estimated specified task duration is 4 days then the optimistic duration will be 3 days.
  • @param "Pessimistic" (optional.Int32) - The percentage of the most likely task duration which can happen in the worst possible project scenario. The default value is 125, which means that if the estimated specified task duration is 4 days then the pessimistic duration will be 5 days.
  • @param "ConfidenceLevel" (optional.String) - Gets or sets the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates. The default value is CL99.
  • @param "Iterations" (optional.Int32) - The number of iterations to use in Monte Carlo simulation. The default value is 100.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The folder storage.
  • @param "FileName" (optional.String) - The resulting report fileName.

@return []byte

func (*TasksApiService) GetTableTextStyle added in v0.2404.0

func (a *TasksApiService) GetTableTextStyle(ctx context.Context, localVarOptionals *requests.GetTableTextStyleOpts) (models.TableTextStyleResponse, *http.Response, error)

TasksApiService Read specified table text style from specified view.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTableTextStyleOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ViewUid" (int32) - Uid of the view.
  • @param "RowUid" (int32) - Uid of the row.
  • @param "Field" (optional.String) - Specifies exact field of the row
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TableTextStyleResponse

func (*TasksApiService) GetTask

func (a *TasksApiService) GetTask(ctx context.Context, localVarOptionals *requests.GetTaskOpts) (models.TaskResponse, *http.Response, error)

TasksApiService Read project task.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskResponse

func (*TasksApiService) GetTaskAssignments

func (a *TasksApiService) GetTaskAssignments(ctx context.Context, localVarOptionals *requests.GetTaskAssignmentsOpts) (models.AssignmentsResponse, *http.Response, error)

TasksApiService Get task assignments.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskAssignmentsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AssignmentsResponse

func (*TasksApiService) GetTaskDocument

func (a *TasksApiService) GetTaskDocument(ctx context.Context, localVarOptionals *requests.GetTaskDocumentOpts) ([]byte, *http.Response, error)

TasksApiService Get a project document.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskDocumentOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return []byte

func (*TasksApiService) GetTaskDocumentWithFormat

func (a *TasksApiService) GetTaskDocumentWithFormat(ctx context.Context, localVarOptionals *requests.GetTaskDocumentWithFormatOpts) ([]byte, *http.Response, error)

TasksApiService Get a project document in the specified format

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskDocumentWithFormatOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Format" (string) - The format of the resulting file.
  • @param "ReturnAsZipArchive" (optional.Bool) - If parameter is true, HTML resources are included as separate files and returned along with the resulting html file as a zip package.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return []byte

func (a *TasksApiService) GetTaskLinks(ctx context.Context, localVarOptionals *requests.GetTaskLinksOpts) (models.TaskLinksResponse, *http.Response, error)

TasksApiService Get tasks' links of a project.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskLinksOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskLinksResponse

func (*TasksApiService) GetTaskRecurringInfo

func (a *TasksApiService) GetTaskRecurringInfo(ctx context.Context, localVarOptionals *requests.GetTaskRecurringInfoOpts) (models.RecurringInfoResponse, *http.Response, error)

TasksApiService Get recurring info for a task with the specified Uid

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskRecurringInfoOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task Uid
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.RecurringInfoResponse

func (*TasksApiService) GetTaskTimephasedData

func (a *TasksApiService) GetTaskTimephasedData(ctx context.Context, localVarOptionals *requests.GetTaskTimephasedDataOpts) (models.TimephasedDataResponse, *http.Response, error)

TasksApiService Get timescaled data for a task with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTaskTimephasedDataOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Uid of task to get timephased data for.
  • @param "Type_" (optional.String) - Type of timephased data to get.
  • @param "StartDate" (*custom.TimeWithoutTZ) - Start date.
  • @param "EndDate" (*custom.TimeWithoutTZ) - End date.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.

@return models.TimephasedDataResponse

func (*TasksApiService) GetTasks

func (a *TasksApiService) GetTasks(ctx context.Context, localVarOptionals *requests.GetTasksOpts) (models.TaskItemsResponse, *http.Response, error)

TasksApiService Get a project's tasks.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetTasksOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskItemsResponse

func (*TasksApiService) GetVbaProject

func (a *TasksApiService) GetVbaProject(ctx context.Context, localVarOptionals *requests.GetVbaProjectOpts) (models.VbaProjectResponse, *http.Response, error)

TasksApiService Returns VBA project.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetVbaProjectOpts - Request parameters:
  • @param "Name" (string) - The name of the file
  • @param "Folder" (optional.String) - The folder storage
  • @param "Storage" (optional.String) - The document storage.

@return models.VbaProjectResponse

func (*TasksApiService) GetViews added in v0.2404.0

func (a *TasksApiService) GetViews(ctx context.Context, localVarOptionals *requests.GetViewsOpts) (models.ViewsResponse, *http.Response, error)

TasksApiService Read all project views.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetViewsOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ViewsResponse

func (*TasksApiService) GetWbsDefinition

func (a *TasksApiService) GetWbsDefinition(ctx context.Context, localVarOptionals *requests.GetWbsDefinitionOpts) (models.WbsDefinitionResponse, *http.Response, error)

TasksApiService Get a project's WBS Definition.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.GetWbsDefinitionOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.WbsDefinitionResponse

func (*TasksApiService) MoveFile

func (a *TasksApiService) MoveFile(ctx context.Context, localVarOptionals *requests.MoveFileOpts) (*http.Response, error)

TasksApiService Move file

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.MoveFileOpts - Request parameters:
  • @param "SrcPath" (string) - Source file path e.g. '/src.ext'
  • @param "DestPath" (string) - Destination file path e.g. '/dest.ext'
  • @param "SrcStorageName" (optional.String) - Source storage name
  • @param "DestStorageName" (optional.String) - Destination storage name
  • @param "VersionId" (optional.String) - File version ID to move

func (*TasksApiService) MoveFolder

func (a *TasksApiService) MoveFolder(ctx context.Context, localVarOptionals *requests.MoveFolderOpts) (*http.Response, error)

TasksApiService Move folder

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.MoveFolderOpts - Request parameters:
  • @param "SrcPath" (string) - Folder path to move e.g. '/folder'
  • @param "DestPath" (string) - Destination folder path to move to e.g '/dst'
  • @param "SrcStorageName" (optional.String) - Source storage name
  • @param "DestStorageName" (optional.String) - Destination storage name

func (*TasksApiService) ObjectExists

func (a *TasksApiService) ObjectExists(ctx context.Context, localVarOptionals *requests.ObjectExistsOpts) (models.ObjectExist, *http.Response, error)

TasksApiService Check if file or folder exists

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.ObjectExistsOpts - Request parameters:
  • @param "Path" (string) - File or folder path e.g. '/file.ext' or '/folder'
  • @param "StorageName" (optional.String) - Storage name
  • @param "VersionId" (optional.String) - File version ID

@return models.ObjectExist

func (*TasksApiService) PostAssignment

TasksApiService Adds a new assignment to a project and returns assignment item in a response.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostAssignmentOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - The unique id of the task to be assigned.
  • @param "ResourceUid" (int32) - The unique id of the resource to be assigned.
  • @param "Units" (optional.Float64) - The units for the new assignment. If not specified, 'cost' value is used.
  • @param "Cost" (optional.Float32) - The cost for a new assignment. If not specified, default value is used.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AssignmentItemResponse

func (*TasksApiService) PostCalendar

func (a *TasksApiService) PostCalendar(ctx context.Context, localVarOptionals *requests.PostCalendarOpts) (models.CalendarItemResponse, *http.Response, error)

TasksApiService Adds a new calendar to project file.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostCalendarOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Calendar" (Calendar) - Calendar DTO
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.CalendarItemResponse

func (*TasksApiService) PostCalendarException

func (a *TasksApiService) PostCalendarException(ctx context.Context, localVarOptionals *requests.PostCalendarExceptionOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Adds a new calendar exception to a calendar.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostCalendarExceptionOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar's Uid
  • @param "CalendarException" (CalendarException) - CalendarException DTO
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) PostDocumentProperty

func (a *TasksApiService) PostDocumentProperty(ctx context.Context, localVarOptionals *requests.PostDocumentPropertyOpts) (models.DocumentPropertyResponse, *http.Response, error)

TasksApiService Set/create document property.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostDocumentPropertyOpts - Request parameters:
  • @param "Name" (string) - The document name.
  • @param "PropertyName" (string) - The property name.
  • @param "Property" (DocumentProperty) - DocumentProperty with new property value.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Filename" (optional.String) - Name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.DocumentPropertyResponse

func (*TasksApiService) PostResource

func (a *TasksApiService) PostResource(ctx context.Context, localVarOptionals *requests.PostResourceOpts) (models.ResourceItemResponse, *http.Response, error)

TasksApiService Add a new resource to a project.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostResourceOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ResourceName" (optional.String) - The name of the new resource. The default value is an empty string
  • @param "BeforeResourceId" (optional.Int32) - The id of the resource to insert the new resource before. The default value is the id of the last resource in a project file.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ResourceItemResponse

func (*TasksApiService) PostTask

func (a *TasksApiService) PostTask(ctx context.Context, localVarOptionals *requests.PostTaskOpts) (models.TaskItemResponse, *http.Response, error)

TasksApiService Add a new task to a project.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostTaskOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskName" (optional.String) - The name of the new task. The default value is an empty string
  • @param "BeforeTaskId" (optional.Int32) - The id of the task to insert the new task before. The default value is the id of the last task in a project file.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskItemResponse

func (*TasksApiService) PostTaskDocumentWithFormat

func (a *TasksApiService) PostTaskDocumentWithFormat(ctx context.Context, localVarOptionals *requests.PostTaskDocumentWithFormatOpts) ([]byte, *http.Response, error)

TasksApiService Get a project document in the specified format and with the specified save options

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostTaskDocumentWithFormatOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Format" (string) - The format of the resulting file.
  • @param "SaveOptions" (interface{}) - Instance of inheritor of SaveOptions class which contains format-specific settings for saving a project.
  • @param "ReturnAsZipArchive" (optional.Bool) - If parameter is true, HTML resources are included as separate files and returned along with the resulting html file as a zip package.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return []byte

func (a *TasksApiService) PostTaskLink(ctx context.Context, localVarOptionals *requests.PostTaskLinkOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Adds a new task link to a project.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostTaskLinkOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskLink" (TaskLink) - The TaskLink object representation that should be added.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.AsposeResponse

func (*TasksApiService) PostTaskRecurringInfo

func (a *TasksApiService) PostTaskRecurringInfo(ctx context.Context, localVarOptionals *requests.PostTaskRecurringInfoOpts) (models.TaskItemResponse, *http.Response, error)

TasksApiService Adds a new recurring task.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostTaskRecurringInfoOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ParentTaskUid" (int32) - The Uid of parent task for the created recurring task
  • @param "TaskName" (string) - Name of the task to create.
  • @param "RecurringInfo" (RecurringInfo) - DTO which defines task's recurring info.
  • @param "CalendarName" (string) - Name of the project's calendar to use for recurring task's scheduling.
  • @param "FileName" (optional.String) - File name to save changes to.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskItemResponse

func (*TasksApiService) PostTasks

func (a *TasksApiService) PostTasks(ctx context.Context, localVarOptionals *requests.PostTasksOpts) (models.TaskItemsResponse, *http.Response, error)

TasksApiService Create multiple tasks by single request.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PostTasksOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Requests" ([]TaskCreationRequest) - Requests to create tasks.
  • @param "FileName" (optional.String) - The name of the project document to save changes to.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.TaskItemsResponse

func (*TasksApiService) PutAssignment

func (a *TasksApiService) PutAssignment(ctx context.Context, localVarOptionals *requests.PutAssignmentOpts) (models.AssignmentResponse, *http.Response, error)

TasksApiService Updates resources assignment with the specified Uid.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutAssignmentOpts - Request parameters:
  • @param "Name" (string) - The file name
  • @param "AssignmentUid" (int32) - Assignment UID
  • @param "Assignment" (ResourceAssignment) - Assignment DTO
  • @param "Mode" (optional.String) - Project's calculation mode
  • @param "Recalculate" (optional.Bool) - boolean value
  • @param "Storage" (optional.String) - The document storage
  • @param "Folder" (optional.String) - The document storage
  • @param "FileName" (optional.String) - The filename to save Changes

@return models.AssignmentResponse

func (*TasksApiService) PutCalendar

func (a *TasksApiService) PutCalendar(ctx context.Context, localVarOptionals *requests.PutCalendarOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Edits an existing project calendar.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutCalendarOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - The Uid of an existing calendar to edit.
  • @param "Calendar" (Calendar) - Modified calendar DTO
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) PutCalendarException

func (a *TasksApiService) PutCalendarException(ctx context.Context, localVarOptionals *requests.PutCalendarExceptionOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Updates calendar exception.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutCalendarExceptionOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "CalendarUid" (int32) - Calendar Uid
  • @param "Index" (int32) - Index of the calendar exception. See CalendarException.Index property.
  • @param "CalendarException" (CalendarException) - CalendarException DTO
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) PutDocumentProperty

TasksApiService Set/create document property.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutDocumentPropertyOpts - Request parameters:
  • @param "Name" (string) - The document name.
  • @param "PropertyName" (string) - The property name.
  • @param "Property" (DocumentProperty) - DocumentProperty with new property value.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Filename" (optional.String) - Name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.DocumentPropertyResponse

func (*TasksApiService) PutExtendedAttribute

TasksApiService Add a new extended attribute definition to a project or updates existing attribute definition (with the same FieldId).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutExtendedAttributeOpts - Request parameters:
  • @param "ExtendedAttribute" (ExtendedAttributeDefinition) - Definition of the extended attribute to add.
  • @param "Name" (string) - The name of the file.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.ExtendedAttributeItemResponse

func (*TasksApiService) PutImportProjectFromDb

func (a *TasksApiService) PutImportProjectFromDb(ctx context.Context, localVarOptionals *requests.PutImportProjectFromDbOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Imports project from database with the specified connection string and saves it to specified file with the specified format.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutImportProjectFromDbOpts - Request parameters:
  • @param "DatabaseType" (string) - The type of source database. The supported values are (Msp, Mpd, Primavera).
  • @param "ConnectionString" (string) - The connection string to the source database.
  • @param "ProjectUid" (string) - Uid of the project to import.
  • @param "Filename" (string) - The name of the resulting file.
  • @param "Format" (optional.String) - Format of the resulting file.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.
  • @param "DatabaseSchema" (optional.String) - Schema of Microsoft project database (if applicable)

@return models.AsposeResponse

func (*TasksApiService) PutImportProjectFromFile

func (a *TasksApiService) PutImportProjectFromFile(ctx context.Context, localVarOptionals *requests.PutImportProjectFromFileOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Imports project from primavera db formats (Primavera SQLite .db or Primavera xml) and saves it to specified file with the specified format.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutImportProjectFromFileOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ProjectUid" (string) - Uid of the project to import.
  • @param "Filename" (string) - The name of the resulting file.
  • @param "FileType" (optional.String) - The type of file to import. The supported values are (PrimaveraSqliteDb, PrimaveraXml).
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.
  • @param "OutputFileFormat" (optional.String) - The format of the resulting file.

@return models.AsposeResponse

func (*TasksApiService) PutImportProjectFromProjectOnline

func (a *TasksApiService) PutImportProjectFromProjectOnline(ctx context.Context, localVarOptionals *requests.PutImportProjectFromProjectOnlineOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Imports project from Project Online and saves it to specified file.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutImportProjectFromProjectOnlineOpts - Request parameters:
  • @param "Name" (string) - The name of the resulting file.
  • @param "Guid" (string) - Guid of the project to import.
  • @param "SiteUrl" (string) - The URL of PWA (Project Web Access) API of Project Online
  • @param "UserName" (optional.String) - The user name for the sharepoint site.
  • @param "Format" (optional.String) - Format of the resulting file.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.
  • @param "XProjectOnlineToken" (optional.String) - Authorization token (SPOIDCRL) for SharePoint's PWA (Project Web Access). For example, in c# it can be retrieved using SharePointOnlineCredentials class from Microsoft.SharePoint.Client.Runtime assembly
  • @param "XSharepointPassword" (optional.String) - The password for the SharePoint site.

@return models.AsposeResponse

func (*TasksApiService) PutMoveTask

func (a *TasksApiService) PutMoveTask(ctx context.Context, localVarOptionals *requests.PutMoveTaskOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Move one task to another parent task.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutMoveTaskOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Unique id of the task to be moved.
  • @param "ParentTaskUid" (int32) - Unique id of the new parent task.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) PutMoveTaskToSibling

func (a *TasksApiService) PutMoveTaskToSibling(ctx context.Context, localVarOptionals *requests.PutMoveTaskToSiblingOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Move a task to another position under the same parent and the same outline level

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutMoveTaskToSiblingOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task Unique Id.
  • @param "BeforeTaskUid" (int32) - Unique Id of the task after which the current task will be placed.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) PutRecalculateProject

TasksApiService Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutRecalculateProjectOpts - Request parameters:
  • @param "Name" (string) - The filename
  • @param "Mode" (optional.String) - Project's calculation mode
  • @param "Validate" (optional.Bool) - If true the validation of recalculation will be performed. What data is validated: At the moment only basic validation of task and task link date ranges is implemented. Task's date ranges (e.g. ActualStart - ActualFinish, EarlyStart - EarlyFinish, etc.) as well as Task Links dates will be checked against the date criteria that start date is less or equal than finish date.
  • @param "FileName" (optional.String) - The filename to save the changes
  • @param "Storage" (optional.String) - The document storage
  • @param "Folder" (optional.String) - The document folder

@return models.ProjectRecalculateResponse

func (*TasksApiService) PutRecalculateProjectResourceFields

func (a *TasksApiService) PutRecalculateProjectResourceFields(ctx context.Context, localVarOptionals *requests.PutRecalculateProjectResourceFieldsOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Recalculate project resource fields

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutRecalculateProjectResourceFieldsOpts - Request parameters:
  • @param "Name" (string) - The name of the file
  • @param "Storage" (optional.String) - The document storage
  • @param "Folder" (optional.String) - The document folder
  • @param "FileName" (optional.String) - The document fileName

@return models.AsposeResponse

func (*TasksApiService) PutRecalculateProjectUncompleteWorkToStartAfter

func (a *TasksApiService) PutRecalculateProjectUncompleteWorkToStartAfter(ctx context.Context, localVarOptionals *requests.PutRecalculateProjectUncompleteWorkToStartAfterOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Recalculate project uncomplete work

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutRecalculateProjectUncompleteWorkToStartAfterOpts - Request parameters:
  • @param "Name" (string) - The file name
  • @param "After" (time.Time) - DateTime (from System lib)
  • @param "Storage" (optional.String) - The document storage
  • @param "Folder" (optional.String) - The document folder
  • @param "FileName" (optional.String) - The filename to save the changes

@return models.AsposeResponse

func (*TasksApiService) PutRecalculateProjectWorkAsComplete

func (a *TasksApiService) PutRecalculateProjectWorkAsComplete(ctx context.Context, localVarOptionals *requests.PutRecalculateProjectWorkAsCompleteOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Recalculate project work as complete

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutRecalculateProjectWorkAsCompleteOpts - Request parameters:
  • @param "Name" (string) - The filename
  • @param "CompleteThrough" (time.Time) - DateTime (type from System lib)
  • @param "SetZeroOrHundredPercentCompleteOnly" (optional.Bool) - boolean value
  • @param "Storage" (optional.String) - The document storage
  • @param "Folder" (optional.String) - The document folder
  • @param "FileName" (optional.String) - The filename to save the changes

@return models.AsposeResponse

func (*TasksApiService) PutRenumberWbsCode

func (a *TasksApiService) PutRenumberWbsCode(ctx context.Context, localVarOptionals *requests.PutRenumberWbsCodeOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Renumber WBS code of passed tasks (if specified) or all project's tasks.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutRenumberWbsCodeOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUids" ([]int32) - Uids of task for WBS codes renumbering. If not specified, WBS codes for all tasks will be renumbered.
  • @param "Storage" (optional.String) - The document storage.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) PutResource

func (a *TasksApiService) PutResource(ctx context.Context, localVarOptionals *requests.PutResourceOpts) (models.ResourceResponse, *http.Response, error)

TasksApiService Updates resource with the specified Uid

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutResourceOpts - Request parameters:
  • @param "Name" (string) - The file name
  • @param "ResourceUid" (int32) - The Uid of a resource
  • @param "Resource" (Resource) - The representation of the modified resource
  • @param "Mode" (optional.String) - The calculation mode of a project
  • @param "Recalculate" (optional.Bool) - Specifies whether the project's recalculation should be performed
  • @param "Storage" (optional.String) - The document storage
  • @param "Folder" (optional.String) - The document storage
  • @param "FileName" (optional.String) - The filename to save Changes

@return models.ResourceResponse

func (*TasksApiService) PutTask

func (a *TasksApiService) PutTask(ctx context.Context, localVarOptionals *requests.PutTaskOpts) (models.TaskResponse, *http.Response, error)

TasksApiService Updates special task getting by task UID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutTaskOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task UID
  • @param "Task" (Task) - TaskDTO
  • @param "Mode" (optional.String) - CalculationModeDTO
  • @param "Recalculate" (optional.Bool) - boolean value
  • @param "Storage" (optional.String) - The document strorage
  • @param "Folder" (optional.String) - The document folder
  • @param "FileName" (optional.String) - The name of the file to save changes

@return models.TaskResponse

func (a *TasksApiService) PutTaskLink(ctx context.Context, localVarOptionals *requests.PutTaskLinkOpts) (models.TaskLinkResponse, *http.Response, error)

TasksApiService Updates existing task link.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutTaskLinkOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "Index" (int32) - Index of the task link object. See TaskLink.Index property.
  • @param "TaskLink" (TaskLink) - The representation of the modified TaskLink object.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.
  • @param "FileName" (optional.String) - The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.

@return models.TaskLinkResponse

func (*TasksApiService) PutTaskRecurringInfo

func (a *TasksApiService) PutTaskRecurringInfo(ctx context.Context, localVarOptionals *requests.PutTaskRecurringInfoOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Updates existing task's recurring info. Note that task should be already recurring.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.PutTaskRecurringInfoOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "TaskUid" (int32) - Task Uid.
  • @param "RecurringInfo" (RecurringInfo) - A modified DTO of task's recurring info.
  • @param "FileName" (optional.String) - File name to save changes to.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) StorageExists

func (a *TasksApiService) StorageExists(ctx context.Context, localVarOptionals *requests.StorageExistsOpts) (models.StorageExist, *http.Response, error)

TasksApiService Check if storage exists

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.StorageExistsOpts - Request parameters:
  • @param "StorageName" (string) - Storage name

@return models.StorageExist

func (*TasksApiService) UpdateProject

func (a *TasksApiService) UpdateProject(ctx context.Context, localVarOptionals *requests.UpdateProjectOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Updates existing project in Project Server\\Project Online instance. The existing project will be overwritten.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.UpdateProjectOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "SiteUrl" (string) - The URL of PWA (Project Web Access) API of Project Online.
  • @param "UserName" (optional.String) - The user name for the sharepoint site.
  • @param "SaveOptions" (optional.Interface of ProjectServerSaveOptionsDto) - Dispensable save options for Project Server\\Project Online.
  • @param "Folder" (optional.String) - The document folder.
  • @param "Storage" (optional.String) - The document storage.
  • @param "XProjectOnlineToken" (optional.String) - Authorization token (SPOIDCRL) for SharePoint's PWA (Project Web Access). For example, in c# it can be retrieved using SharePointOnlineCredentials class from Microsoft.SharePoint.Client.Runtime assembly
  • @param "XSharepointPassword" (optional.String) - The password for the SharePoint site.

@return models.AsposeResponse

func (*TasksApiService) UpdateTableTextStyle added in v0.2404.0

func (a *TasksApiService) UpdateTableTextStyle(ctx context.Context, localVarOptionals *requests.UpdateTableTextStyleOpts) (models.AsposeResponse, *http.Response, error)

TasksApiService Update table text style in specified view.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.UpdateTableTextStyleOpts - Request parameters:
  • @param "Name" (string) - The name of the file.
  • @param "ViewUid" (int32) - Uid of the view.
  • @param "TableTextStyle" (TableTextStyle) - A DTO of TableTextStyle to update
  • @param "FileName" (optional.String) - File name to save changes to.
  • @param "Storage" (optional.String) - The document storage.
  • @param "Folder" (optional.String) - The document folder.

@return models.AsposeResponse

func (*TasksApiService) UploadFile

func (a *TasksApiService) UploadFile(ctx context.Context, localVarOptionals *requests.UploadFileOpts) (models.FilesUploadResult, *http.Response, error)

TasksApiService Upload file

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param *requests.UploadFileOpts - Request parameters:
  • @param "Path" (string) - Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
  • @param "File" (*os.File) - File to upload
  • @param "StorageName" (optional.String) - Storage name

@return models.FilesUploadResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL